source: mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/iso_19144_1_classification_systems/cl_classifiedsurface.py @ 8457

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/iso_19144_1_classification_systems/cl_classifiedsurface.py@8457
Revision 8457, 3.6 KB checked in by mnagni, 7 years ago (diff)

Corrected an error in the generation of the classes "synchronize" method.

  • Property svn:mime-type set to text/plain
Line 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21from ea_model.iso_19123_2005_coverages.coverages.discrete_coverages.cv_discretesurfacecoverage import  CV_DiscreteSurfaceCoverage
22from ascore.utils import has_value, collectionProofHash
23
24'''
25Created on 10-Jul-2012 14:15:07
26
27@author: mnagni
28'''
29
30class CL_ClassifiedSurface(CV_DiscreteSurfaceCoverage):
31        '''
32                Represents a data entity defined in a UML diagram and supposed to
33                be persisted in a relational database.
34 
35                This class has been genererated automatically using the Apache Velocity project.
36        '''
37        '''
38                Please note that any access to the inner attributes should be done using
39                the given get/set methods and NOT accessing them directly.
40        '''
41        def __init__(self):
42                self._cv_discretesurfacecoverage = CV_DiscreteSurfaceCoverage()         
43
44                self.triangleSource = None
45                self.CRS = None
46                self.commonPointRule = None
47                self.polygonSource = None
48                self.rangeType = None
49                self.sequenceRule = None
50                self.tessellationGeometry = None
51                super(CL_ClassifiedSurface, self).__init__()
52        @property
53        def triangleSource(self):       
54                return self._cv_discretesurfacecoverage.triangleSource
55
56        @triangleSource.setter
57        def triangleSource(self, value):       
58                        self._cv_discretesurfacecoverage.triangleSource = value
59        @property
60        def domainExtent(self):
61                return self._cv_discretesurfacecoverage.domainExtent
62
63        @domainExtent.setter
64        def domainExtent(self, value): 
65                        self._cv_discretesurfacecoverage.domainExtent = value
66        @property
67        def CRS(self): 
68                return self._cv_discretesurfacecoverage.CRS
69
70        @CRS.setter
71        def CRS(self, value):   
72                        self._cv_discretesurfacecoverage.CRS = value
73        @property
74        def domainElement(self):       
75                return self._cv_discretesurfacecoverage.domainElement
76
77        @domainElement.setter
78        def domainElement(self, value):
79                        self._cv_discretesurfacecoverage.domainElement = value
80        @property
81        def commonPointRule(self):     
82                return self._cv_discretesurfacecoverage.commonPointRule
83
84        @commonPointRule.setter
85        def commonPointRule(self, value):       
86                        self._cv_discretesurfacecoverage.commonPointRule = value
87        @property
88        def polygonSource(self):       
89                return self._cv_discretesurfacecoverage.polygonSource
90
91        @polygonSource.setter
92        def polygonSource(self, value):
93                        self._cv_discretesurfacecoverage.polygonSource = value
94        @property
95        def rangeType(self):   
96                return self._cv_discretesurfacecoverage.rangeType
97
98        @rangeType.setter
99        def rangeType(self, value):     
100                        self._cv_discretesurfacecoverage.rangeType = value
101        @property
102        def element(self):     
103                return self._cv_discretesurfacecoverage.element
104
105        @element.setter
106        def element(self, value):       
107                        self._cv_discretesurfacecoverage.element = value
108        @property
109        def element(self):     
110                return self._cv_discretesurfacecoverage.element
111
112        @element.setter
113        def element(self, value):       
114                        self._cv_discretesurfacecoverage.element = value
115        @property
116        def rangeElement(self):
117                return self._cv_discretesurfacecoverage.rangeElement
118
119        @rangeElement.setter
120        def rangeElement(self, value): 
121                        self._cv_discretesurfacecoverage.rangeElement = value
122
123        def synchronize(self):
124                pass
125
126        def __key(self):
127                return (self.triangleSource, self.domainExtent, self.CRS, self.domainElement, self.commonPointRule, self.polygonSource, self.rangeType, self.element, self.element, self.rangeElement, self.sequenceRule, self.tessellationGeometry)
128
129        def __eq__(self, y):
130                if type(self) != type(y):
131                        return False
132                '''
133                Cannot compare classes which do not define a "__key" attribute
134                '''
135                if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
136                        return self.__key() == y.__key()
137                return id(self) == id(y)
138
139        def __hash__(self):
140                return collectionProofHash(self.__key())
Note: See TracBrowser for help on using the repository browser.