source: mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_tin.py @ 8457

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_tin.py
Revision 8457, 3.7 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_19107_2003_spatial_schema.geometry.coordinate_geometry.gm_triangulatedsurface import  GM_TriangulatedSurface
22from ascore.utils import has_value, collectionProofHash
23
24'''
25Created on 10-Jul-2012 14:15:05
26
27@author: mnagni
28'''
29
30class GM_Tin(GM_TriangulatedSurface):
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._gm_triangulatedsurface = GM_TriangulatedSurface()         
43
44                self.orientation = None
45                self.stopLines = []
46                self.CRS = None
47                self.proxy = None
48                self.primitive = None
49                self.breakLines = []
50                self.controlPoint = []
51                self.maxLength = None
52                super(GM_Tin, self).__init__()
53        @property
54        def containedPrimitive(self):   
55                return self._gm_triangulatedsurface.containedPrimitive
56
57        @containedPrimitive.setter
58        def containedPrimitive(self, value):   
59                        self._gm_triangulatedsurface.containedPrimitive = value
60        @property
61        def composite(self):   
62                return self._gm_triangulatedsurface.composite
63
64        @composite.setter
65        def composite(self, value):     
66                        self._gm_triangulatedsurface.composite = value
67        @property
68        def composite(self):   
69                return self._gm_triangulatedsurface.composite
70
71        @composite.setter
72        def composite(self, value):     
73                        self._gm_triangulatedsurface.composite = value
74        @property
75        def orientation(self): 
76                return self._gm_triangulatedsurface.orientation
77
78        @orientation.setter
79        def orientation(self, value):   
80                        self._gm_triangulatedsurface.orientation = value
81        @property
82        def containingPrimitive(self): 
83                return self._gm_triangulatedsurface.containingPrimitive
84
85        @containingPrimitive.setter
86        def containingPrimitive(self, value):   
87                        self._gm_triangulatedsurface.containingPrimitive = value
88        @property
89        def topology(self):     
90                return self._gm_triangulatedsurface.topology
91
92        @topology.setter
93        def topology(self, value):     
94                        self._gm_triangulatedsurface.topology = value
95        @property
96        def CRS(self): 
97                return self._gm_triangulatedsurface.CRS
98
99        @CRS.setter
100        def CRS(self, value):   
101                        self._gm_triangulatedsurface.CRS = value
102        @property
103        def patch(self):       
104                return self._gm_triangulatedsurface.patch
105
106        @patch.setter
107        def patch(self, value):
108                        self._gm_triangulatedsurface.patch = value
109        @property
110        def patch(self):       
111                return self._gm_triangulatedsurface.patch
112
113        @patch.setter
114        def patch(self, value):
115                        self._gm_triangulatedsurface.patch = value
116        @property
117        def proxy(self):       
118                return self._gm_triangulatedsurface.proxy
119
120        @proxy.setter
121        def proxy(self, value):
122                        self._gm_triangulatedsurface.proxy = value
123        @property
124        def primitive(self):   
125                return self._gm_triangulatedsurface.primitive
126
127        @primitive.setter
128        def primitive(self, value):     
129                        self._gm_triangulatedsurface.primitive = value
130        @property
131        def complex(self):     
132                return self._gm_triangulatedsurface.complex
133
134        @complex.setter
135        def complex(self, value):       
136                        self._gm_triangulatedsurface.complex = value
137
138        def synchronize(self):
139                pass
140
141        def __key(self):
142                return (self.containedPrimitive, self.composite, self.composite, self.orientation, self.containingPrimitive, self.topology, self.stopLines, self.CRS, self.patch, self.patch, self.proxy, self.primitive, self.complex, self.breakLines, self.controlPoint, self.maxLength)
143
144        def __eq__(self, y):
145                if type(self) != type(y):
146                        return False
147                '''
148                Cannot compare classes which do not define a "__key" attribute
149                '''
150                if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
151                        return self.__key() == y.__key()
152                return id(self) == id(y)
153
154        def __hash__(self):
155                return collectionProofHash(self.__key())
Note: See TracBrowser for help on using the repository browser.