source: mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_reference_systems/sc_verticalcrs.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_verticalcrs.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_19111_referencing_by_coordinates.coordinate_reference_systems.sc_singlecrs import  SC_SingleCRS
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:09
26
27@author: mnagni
28'''
29
30class SC_VerticalCRS(SC_SingleCRS):
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_singlecrs = SC_SingleCRS()     
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.directPosition = []
58        self.coordinateSystem = None
59        self._coordinateSystem_cs_verticalcs = None
60        self._coordinateSystem_cs_userdefinedcs = None
61        self._coordinateSystem_cs_cylindricalcs = None
62        self._coordinateSystem_cs_ellipsoidalcs = None
63        self._coordinateSystem_cs_sphericalcs = None
64        self._coordinateSystem_cs_affinecs = None
65        self._coordinateSystem_cs_linearcs = None
66        self._coordinateSystem_cs_polarcs = None
67        self._coordinateSystem_cs_cartesiancs = None
68        self.datum = 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.compoundCRS = []
75        self._coordOperationFrom_cc_passthroughoperation = []
76        self._coordOperationFrom_cc_concatenatedoperation = []
77        self._coordOperationFrom_cc_singleoperation = []
78        super(SC_VerticalCRS, self).__init__()
79
80    @property
81    def domainOfValidity(self): 
82        return self._sc_singlecrs.domainOfValidity
83
84    @domainOfValidity.setter
85    def domainOfValidity(self, value): 
86            self._sc_singlecrs.domainOfValidity = value
87
88    @property
89    def remarks(self): 
90        return self._sc_singlecrs.remarks
91
92    @remarks.setter
93    def remarks(self, value):   
94            self._sc_singlecrs.remarks = value
95
96    @property
97    def alias(self):   
98        return self._sc_singlecrs.alias
99
100    @alias.setter
101    def alias(self, value):     
102            self._sc_singlecrs.alias = value
103
104    @property
105    def scope(self):   
106        return self._sc_singlecrs.scope
107
108    @scope.setter
109    def scope(self, value):     
110            self._sc_singlecrs.scope = value
111
112    @property
113    def identifier(self):       
114        return self._sc_singlecrs.identifier
115
116    @identifier.setter
117    def identifier(self, value):       
118            self._sc_singlecrs.identifier = value
119
120    @property
121    def object(self):   
122        return self._sc_singlecrs.object
123
124    @object.setter
125    def object(self, value):   
126            self._sc_singlecrs.object = value
127
128    @property
129    def name(self):     
130        return self._sc_singlecrs.name
131
132    @name.setter
133    def name(self, value):     
134            self._sc_singlecrs.name = value
135
136    @property
137    def coordOperationTo(self): 
138        return self._sc_singlecrs.coordOperationTo
139
140    @coordOperationTo.setter
141    def coordOperationTo(self, value): 
142            self._sc_singlecrs.coordOperationTo = value
143
144    @property
145    def derivedCRS(self):       
146        return self._sc_singlecrs.derivedCRS
147
148    @derivedCRS.setter
149    def derivedCRS(self, value):       
150            self._sc_singlecrs.derivedCRS = value
151
152    @property
153    def directPosition(self):   
154        return self._sc_singlecrs.directPosition
155
156    @directPosition.setter
157    def directPosition(self, value):   
158            self._sc_singlecrs.directPosition = value
159
160    @property
161    def coordinateSystem(self): 
162        return self._sc_singlecrs.coordinateSystem
163
164    @coordinateSystem.setter
165    def coordinateSystem(self, value): 
166            self._sc_singlecrs.coordinateSystem = value
167
168    @property
169    def datum(self):   
170        return self._sc_singlecrs.datum
171
172    @datum.setter
173    def datum(self, value):     
174            self._sc_singlecrs.datum = value
175
176    @property
177    def grid(self):     
178        return self._sc_singlecrs.grid
179
180    @grid.setter
181    def grid(self, value):     
182            self._sc_singlecrs.grid = value
183
184    @property
185    def compoundCRS(self):     
186        return self._sc_singlecrs.compoundCRS
187
188    @compoundCRS.setter
189    def compoundCRS(self, value):       
190            self._sc_singlecrs.compoundCRS = value
191
192    @property
193    def coordOperationFrom(self):       
194        return self._sc_singlecrs.coordOperationFrom
195
196    @coordOperationFrom.setter
197    def coordOperationFrom(self, value):       
198            self._sc_singlecrs.coordOperationFrom = value
199
200    def __key(self):
201        return (self.domainOfValidity, self.remarks, self.alias, self.scope, self.identifier, self.object, self.name, self.coordOperationTo, self.derivedCRS, self.directPosition, self.coordinateSystem, self.coordinateSystem, self.datum, self.datum, self.grid, self.compoundCRS, self.coordOperationFrom)
202
203    def __eq__(self, y):
204        '''
205        Cannot compare classes which do not define a "__key" attribute
206        '''
207        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
208            return self.__key() == y.__key()
209        return id(self) == id(y)
210
211    def __hash__(self):
212        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.