source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/geometric_complex/gm_compositesolid.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_complex/gm_compositesolid.py@8091
Revision 8091, 5.2 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_primitive.gm_solid import  GM_Solid
22from ea_model.iso_19107_2003_spatial_schema.geometry.geometric_complex.gm_composite import  GM_Composite
23from ascore.utils import has_value
24
25'''
26Created on 16-Feb-2012 16:18:08
27
28@author: mnagni
29'''
30
31class GM_CompositeSolid(GM_Solid,GM_Composite):
32    '''
33        Represents a data entity defined in a UML diagram and supposed to
34        be persisted in a relational database.
35 
36        This class has been genererated automatically using the Apache Velocity project.
37    '''
38    '''
39        Please note that any access to the inner attributes should be done using
40        the given get/set methods and NOT accessing them directly.
41    '''
42    def __init__(self):
43        self._gm_composite = GM_Composite()     
44        self._gm_solid = GM_Solid()     
45
46        self._containedPrimitive_gm_orientableprimitive = []
47        self._containedPrimitive_gm_point = []
48        self._containedPrimitive_gm_solid = []
49        self.composite = []
50        self._composite_gm_compositecurve = []
51        self._composite_gm_compositesolid = []
52        self._composite_gm_compositesurface = []
53        self._composite_gm_compositepoint = []
54        self._containingPrimitive_gm_orientableprimitive = []
55        self._containingPrimitive_gm_point = []
56        self._containingPrimitive_gm_solid = []
57        self._element_gm_orientableprimitive = []
58        self._element_gm_point = []
59        self._element_gm_solid = []
60        self.generator = []
61        self._generator_gm_orientableprimitive = []
62        self._generator_gm_point = []
63        self._generator_gm_solid = []
64        self.topology = None
65        self._topology_tp_directedtopo = []
66        self._topology_tp_edge = []
67        self._topology_tp_node = []
68        self._topology_tp_solid = []
69        self._topology_tp_face = []
70        self._CRS_sc_singlecrs = None
71        self._CRS_sc_compoundcrs = None
72        self.subComplex = []
73        self.superComplex = []
74        self._proxy_gm_orientablesurface = None
75        self._proxy_gm_orientablecurve = None
76        self.complex = []
77        super(GM_CompositeSolid, self).__init__()
78
79    @property
80    def containedPrimitive(self):       
81        return self._gm_solid.containedPrimitive
82
83    @containedPrimitive.setter
84    def containedPrimitive(self, value):       
85            self._gm_solid.containedPrimitive = value
86
87    @property
88    def composite(self):       
89        return self._gm_solid.composite
90
91    @composite.setter
92    def composite(self, value): 
93            self._gm_solid.composite = value
94
95    @property
96    def composite(self):       
97        return self._gm_solid.composite
98
99    @composite.setter
100    def composite(self, value): 
101            self._gm_solid.composite = value
102
103    @property
104    def containingPrimitive(self):     
105        return self._gm_solid.containingPrimitive
106
107    @containingPrimitive.setter
108    def containingPrimitive(self, value):       
109            self._gm_solid.containingPrimitive = value
110
111    @property
112    def element(self): 
113        return self._gm_composite.element
114
115    @element.setter
116    def element(self, value):   
117            self._gm_composite.element = value
118
119    @property
120    def generator(self):       
121        return self._gm_composite.generator
122
123    @generator.setter
124    def generator(self, value): 
125            self._gm_composite.generator = value
126
127    @property
128    def topology(self): 
129        return self._gm_composite.topology
130
131    @topology.setter
132    def topology(self, value): 
133            self._gm_composite.topology = value
134
135    @property
136    def topology(self): 
137        return self._gm_solid.topology
138
139    @topology.setter
140    def topology(self, value): 
141            self._gm_solid.topology = value
142
143    @property
144    def CRS(self):     
145        return self._gm_composite.CRS
146
147    @CRS.setter
148    def CRS(self, value):       
149            self._gm_composite.CRS = value
150
151    @property
152    def subComplex(self):       
153        return self._gm_composite.subComplex
154
155    @subComplex.setter
156    def subComplex(self, value):       
157            self._gm_composite.subComplex = value
158
159    @property
160    def superComplex(self):     
161        return self._gm_composite.superComplex
162
163    @superComplex.setter
164    def superComplex(self, value):     
165            self._gm_composite.superComplex = value
166
167    @property
168    def proxy(self):   
169        return self._gm_solid.proxy
170
171    @proxy.setter
172    def proxy(self, value):     
173            self._gm_solid.proxy = value
174
175    @property
176    def complex(self): 
177        return self._gm_solid.complex
178
179    @complex.setter
180    def complex(self, value):   
181            self._gm_solid.complex = value
182
183    def __key(self):
184        return (self.containedPrimitive, self.composite, self.composite, self.containingPrimitive, self.element, self.generator, self.generator, self.topology, self.topology, self.CRS, self.subComplex, self.superComplex, self.proxy, self.complex)
185
186    def __eq__(self, y):
187        '''
188        Cannot compare classes which do not define a "__key" attribute
189        '''
190        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
191            return self.__key() == y.__key()
192        return id(self) == id(y)
193
194    def __hash__(self):
195        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.