source: mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_reference_systems/sc_derivedcrs.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_reference_systems/sc_derivedcrs.py@8091
Revision 8091, 9.8 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_19111_referencing_by_coordinates.coordinate_reference_systems.sc_generalderivedcrs import  SC_GeneralDerivedCRS
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:10
26
27@author: mnagni
28'''
29
30class SC_DerivedCRS(SC_GeneralDerivedCRS):
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._sc_generalderivedcrs = SC_GeneralDerivedCRS()     
43
44        self.domainOfValidity = None
45        self.remarks = None
46        self.alias = []
47        self.scope = []
48        self.identifier = []
49        self._object_gm_complex = []
50        self._object_gm_primitive = []
51        self._object_gm_aggregate = []
52        self.name = None
53        self._coordOperationTo_cc_passthroughoperation = []
54        self._coordOperationTo_cc_concatenatedoperation = []
55        self._coordOperationTo_cc_singleoperation = []
56        self.derivedCRS = []
57        self.conversion = None
58        self.directPosition = []
59        self.derivedCRSType = None
60        self._coordinateSystem_cs_verticalcs = None
61        self._coordinateSystem_cs_userdefinedcs = None
62        self._coordinateSystem_cs_cylindricalcs = None
63        self._coordinateSystem_cs_ellipsoidalcs = None
64        self._coordinateSystem_cs_sphericalcs = None
65        self._coordinateSystem_cs_affinecs = None
66        self._coordinateSystem_cs_linearcs = None
67        self._coordinateSystem_cs_polarcs = None
68        self._coordinateSystem_cs_cartesiancs = None
69        self._datum_cd_engineeringdatum = None
70        self._datum_cd_verticaldatum = None
71        self._datum_cd_geodeticdatum = None
72        self._datum_cd_imagedatum = None
73        self.grid = []
74        self._baseCRS_tm_temporalcrs = None
75        self._baseCRS_sc_imagecrs = None
76        self._baseCRS_sc_verticalcrs = None
77        self._baseCRS_sc_engineeringcrs = None
78        self._baseCRS_sc_geodeticcrs = None
79        self._baseCRS_sc_generalderivedcrs = None
80        self.compoundCRS = []
81        self._coordOperationFrom_cc_passthroughoperation = []
82        self._coordOperationFrom_cc_concatenatedoperation = []
83        self._coordOperationFrom_cc_singleoperation = []
84        super(SC_DerivedCRS, self).__init__()
85
86    @property
87    def domainOfValidity(self): 
88        return self._sc_generalderivedcrs.domainOfValidity
89
90    @domainOfValidity.setter
91    def domainOfValidity(self, value): 
92            self._sc_generalderivedcrs.domainOfValidity = value
93
94    @property
95    def remarks(self): 
96        return self._sc_generalderivedcrs.remarks
97
98    @remarks.setter
99    def remarks(self, value):   
100            self._sc_generalderivedcrs.remarks = value
101
102    @property
103    def alias(self):   
104        return self._sc_generalderivedcrs.alias
105
106    @alias.setter
107    def alias(self, value):     
108            self._sc_generalderivedcrs.alias = value
109
110    @property
111    def scope(self):   
112        return self._sc_generalderivedcrs.scope
113
114    @scope.setter
115    def scope(self, value):     
116            self._sc_generalderivedcrs.scope = value
117
118    @property
119    def identifier(self):       
120        return self._sc_generalderivedcrs.identifier
121
122    @identifier.setter
123    def identifier(self, value):       
124            self._sc_generalderivedcrs.identifier = value
125
126    @property
127    def object(self):   
128        return self._sc_generalderivedcrs.object
129
130    @object.setter
131    def object(self, value):   
132            self._sc_generalderivedcrs.object = value
133
134    @property
135    def name(self):     
136        return self._sc_generalderivedcrs.name
137
138    @name.setter
139    def name(self, value):     
140            self._sc_generalderivedcrs.name = value
141
142    @property
143    def coordOperationTo(self): 
144        return self._sc_generalderivedcrs.coordOperationTo
145
146    @coordOperationTo.setter
147    def coordOperationTo(self, value): 
148            self._sc_generalderivedcrs.coordOperationTo = value
149
150    @property
151    def derivedCRS(self):       
152        return self._sc_generalderivedcrs.derivedCRS
153
154    @derivedCRS.setter
155    def derivedCRS(self, value):       
156            self._sc_generalderivedcrs.derivedCRS = value
157
158    @property
159    def conversion(self):       
160        return self._sc_generalderivedcrs.conversion
161
162    @conversion.setter
163    def conversion(self, value):       
164            self._sc_generalderivedcrs.conversion = value
165
166    @property
167    def directPosition(self):   
168        return self._sc_generalderivedcrs.directPosition
169
170    @directPosition.setter
171    def directPosition(self, value):   
172            self._sc_generalderivedcrs.directPosition = value
173
174    @property
175    def coordinateSystem(self): 
176        return self._sc_generalderivedcrs.coordinateSystem
177
178    @coordinateSystem.setter
179    def coordinateSystem(self, value): 
180            self._sc_generalderivedcrs.coordinateSystem = value
181
182    @property
183    def datum(self):   
184        return self._sc_generalderivedcrs.datum
185
186    @datum.setter
187    def datum(self, value):     
188            self._sc_generalderivedcrs.datum = value
189
190    @property
191    def grid(self):     
192        return self._sc_generalderivedcrs.grid
193
194    @grid.setter
195    def grid(self, value):     
196            self._sc_generalderivedcrs.grid = value
197
198    @property
199    def baseCRS(self): 
200        if(has_value(self._baseCRS_tm_temporalcrs)):
201            return self._baseCRS_tm_temporalcrs
202        if(has_value(self._baseCRS_sc_imagecrs)):
203            return self._baseCRS_sc_imagecrs
204        if(has_value(self._baseCRS_sc_verticalcrs)):
205            return self._baseCRS_sc_verticalcrs
206        if(has_value(self._baseCRS_sc_engineeringcrs)):
207            return self._baseCRS_sc_engineeringcrs
208        if(has_value(self._baseCRS_sc_geodeticcrs)):
209            return self._baseCRS_sc_geodeticcrs
210        if(has_value(self._baseCRS_sc_generalderivedcrs)):
211            return self._baseCRS_sc_generalderivedcrs
212        return  None
213
214    @baseCRS.setter
215    def baseCRS(self, value):   
216        valueClass = "%s.%s" % (type(value).__module__,type(value).__name__)
217        if valueClass == "ea_model.iso_19111_referencing_by_coordinates.temporal_reference_systems.tm_temporalcrs.TM_TemporalCRS":
218            self._baseCRS_tm_temporalcrs = value
219            self._baseCRS_sc_imagecrs = None
220            self._baseCRS_sc_verticalcrs = None
221            self._baseCRS_sc_engineeringcrs = None
222            self._baseCRS_sc_geodeticcrs = None
223            self._baseCRS_sc_generalderivedcrs = None
224        if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_reference_systems.sc_imagecrs.SC_ImageCRS":
225            self._baseCRS_sc_imagecrs = value
226            self._baseCRS_tm_temporalcrs = None
227            self._baseCRS_sc_verticalcrs = None
228            self._baseCRS_sc_engineeringcrs = None
229            self._baseCRS_sc_geodeticcrs = None
230            self._baseCRS_sc_generalderivedcrs = None
231        if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_reference_systems.sc_verticalcrs.SC_VerticalCRS":
232            self._baseCRS_sc_verticalcrs = value
233            self._baseCRS_tm_temporalcrs = None
234            self._baseCRS_sc_imagecrs = None
235            self._baseCRS_sc_engineeringcrs = None
236            self._baseCRS_sc_geodeticcrs = None
237            self._baseCRS_sc_generalderivedcrs = None
238        if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_reference_systems.sc_engineeringcrs.SC_EngineeringCRS":
239            self._baseCRS_sc_engineeringcrs = value
240            self._baseCRS_tm_temporalcrs = None
241            self._baseCRS_sc_imagecrs = None
242            self._baseCRS_sc_verticalcrs = None
243            self._baseCRS_sc_geodeticcrs = None
244            self._baseCRS_sc_generalderivedcrs = None
245        if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_reference_systems.sc_geodeticcrs.SC_GeodeticCRS":
246            self._baseCRS_sc_geodeticcrs = value
247            self._baseCRS_tm_temporalcrs = None
248            self._baseCRS_sc_imagecrs = None
249            self._baseCRS_sc_verticalcrs = None
250            self._baseCRS_sc_engineeringcrs = None
251            self._baseCRS_sc_generalderivedcrs = None
252        if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_reference_systems.sc_generalderivedcrs.SC_GeneralDerivedCRS":
253            self._baseCRS_sc_generalderivedcrs = value
254            self._baseCRS_tm_temporalcrs = None
255            self._baseCRS_sc_imagecrs = None
256            self._baseCRS_sc_verticalcrs = None
257            self._baseCRS_sc_engineeringcrs = None
258            self._baseCRS_sc_geodeticcrs = None
259
260    @property
261    def compoundCRS(self):     
262        return self._sc_generalderivedcrs.compoundCRS
263
264    @compoundCRS.setter
265    def compoundCRS(self, value):       
266            self._sc_generalderivedcrs.compoundCRS = value
267
268    @property
269    def coordOperationFrom(self):       
270        return self._sc_generalderivedcrs.coordOperationFrom
271
272    @coordOperationFrom.setter
273    def coordOperationFrom(self, value):       
274            self._sc_generalderivedcrs.coordOperationFrom = value
275
276    def __key(self):
277        return (self.domainOfValidity, self.remarks, self.alias, self.scope, self.identifier, self.object, self.name, self.coordOperationTo, self.derivedCRS, self.conversion, self.directPosition, self.derivedCRSType, self.coordinateSystem, self.datum, self.grid, self.baseCRS, self.compoundCRS, self.coordOperationFrom)
278
279    def __eq__(self, y):
280        '''
281        Cannot compare classes which do not define a "__key" attribute
282        '''
283        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
284            return self.__key() == y.__key()
285        return id(self) == id(y)
286
287    def __hash__(self):
288        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.