source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/geometric_primitive/gm_ring.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/geometric_primitive/gm_ring.py@8091
Revision 8091, 5.7 KB checked in by mnagni, 8 years ago (diff)

The migration process now includes
1) deployment_data files
2) XML document hash
3) full Dojo support


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.geometric_complex.gm_compositecurve import  GM_CompositeCurve
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:07
26
27@author: mnagni
28'''
29
30class GM_Ring(GM_CompositeCurve):
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_compositecurve = GM_CompositeCurve()   
43
44        self._containedPrimitive_gm_orientableprimitive = []
45        self._containedPrimitive_gm_point = []
46        self._containedPrimitive_gm_solid = []
47        self._composite_gm_compositecurve = []
48        self._composite_gm_compositesolid = []
49        self._composite_gm_compositesurface = []
50        self._composite_gm_compositepoint = []
51        self.composite = []
52        self.orientation = None
53        self._containingPrimitive_gm_orientableprimitive = []
54        self._containingPrimitive_gm_point = []
55        self._containingPrimitive_gm_solid = []
56        self._element_gm_orientableprimitive = []
57        self._element_gm_point = []
58        self._element_gm_solid = []
59        self._generator_gm_compositecurve = []
60        self._generator_gm_curve = []
61        self.topology = None
62        self._topology_tp_directedtopo = []
63        self._topology_tp_edge = []
64        self._topology_tp_node = []
65        self._topology_tp_solid = []
66        self._topology_tp_face = []
67        self._CRS_sc_singlecrs = None
68        self._CRS_sc_compoundcrs = None
69        self.subComplex = []
70        self.superComplex = []
71        self._proxy_gm_orientablesurface = None
72        self._proxy_gm_orientablecurve = None
73        self._primitive_gm_orientableprimitive = None
74        self._primitive_gm_point = None
75        self._primitive_gm_solid = None
76        self.complex = []
77        super(GM_Ring, self).__init__()
78
79    @property
80    def containedPrimitive(self):       
81        return self._gm_compositecurve.containedPrimitive
82
83    @containedPrimitive.setter
84    def containedPrimitive(self, value):       
85            self._gm_compositecurve.containedPrimitive = value
86
87    @property
88    def composite(self):       
89        return self._gm_compositecurve.composite
90
91    @composite.setter
92    def composite(self, value): 
93            self._gm_compositecurve.composite = value
94
95    @property
96    def composite(self):       
97        return self._gm_compositecurve.composite
98
99    @composite.setter
100    def composite(self, value): 
101            self._gm_compositecurve.composite = value
102
103    @property
104    def orientation(self):     
105        return self._gm_compositecurve.orientation
106
107    @orientation.setter
108    def orientation(self, value):       
109            self._gm_compositecurve.orientation = value
110
111    @property
112    def containingPrimitive(self):     
113        return self._gm_compositecurve.containingPrimitive
114
115    @containingPrimitive.setter
116    def containingPrimitive(self, value):       
117            self._gm_compositecurve.containingPrimitive = value
118
119    @property
120    def element(self): 
121        return self._gm_compositecurve.element
122
123    @element.setter
124    def element(self, value):   
125            self._gm_compositecurve.element = value
126
127    @property
128    def generator(self):       
129        return self._gm_compositecurve.generator
130
131    @generator.setter
132    def generator(self, value): 
133            self._gm_compositecurve.generator = value
134
135    @property
136    def topology(self): 
137        return self._gm_compositecurve.topology
138
139    @topology.setter
140    def topology(self, value): 
141            self._gm_compositecurve.topology = value
142
143    @property
144    def topology(self): 
145        return self._gm_compositecurve.topology
146
147    @topology.setter
148    def topology(self, value): 
149            self._gm_compositecurve.topology = value
150
151    @property
152    def CRS(self):     
153        return self._gm_compositecurve.CRS
154
155    @CRS.setter
156    def CRS(self, value):       
157            self._gm_compositecurve.CRS = value
158
159    @property
160    def subComplex(self):       
161        return self._gm_compositecurve.subComplex
162
163    @subComplex.setter
164    def subComplex(self, value):       
165            self._gm_compositecurve.subComplex = value
166
167    @property
168    def superComplex(self):     
169        return self._gm_compositecurve.superComplex
170
171    @superComplex.setter
172    def superComplex(self, value):     
173            self._gm_compositecurve.superComplex = value
174
175    @property
176    def proxy(self):   
177        return self._gm_compositecurve.proxy
178
179    @proxy.setter
180    def proxy(self, value):     
181            self._gm_compositecurve.proxy = value
182
183    @property
184    def primitive(self):       
185        return self._gm_compositecurve.primitive
186
187    @primitive.setter
188    def primitive(self, value): 
189            self._gm_compositecurve.primitive = value
190
191    @property
192    def complex(self): 
193        return self._gm_compositecurve.complex
194
195    @complex.setter
196    def complex(self, value):   
197            self._gm_compositecurve.complex = value
198
199    def __key(self):
200        return (self.containedPrimitive, self.composite, self.composite, self.orientation, self.containingPrimitive, self.element, self.generator, self.topology, self.topology, self.CRS, self.subComplex, self.superComplex, self.proxy, self.primitive, self.complex)
201
202    def __eq__(self, y):
203        '''
204        Cannot compare classes which do not define a "__key" attribute
205        '''
206        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
207            return self.__key() == y.__key()
208        return id(self) == id(y)
209
210    def __hash__(self):
211        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.