1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | from ea_model.iso_19108_2006_temporal_schema.temporal_reference_system.tm_referencesystem import TM_ReferenceSystem |
---|
22 | from ea_model.iso_19111_referencing_by_coordinates.coordinate_reference_systems.sc_singlecrs import SC_SingleCRS |
---|
23 | from ascore.utils import has_value |
---|
24 | |
---|
25 | ''' |
---|
26 | Created on 16-Feb-2012 16:18:00 |
---|
27 | |
---|
28 | @author: mnagni |
---|
29 | ''' |
---|
30 | |
---|
31 | class TM_TemporalCRS(TM_ReferenceSystem,SC_SingleCRS): |
---|
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._sc_singlecrs = SC_SingleCRS() |
---|
44 | self._tm_referencesystem = TM_ReferenceSystem() |
---|
45 | |
---|
46 | self.domainOfValidity = None |
---|
47 | self.remarks = None |
---|
48 | self.alias = [] |
---|
49 | self.scope = [] |
---|
50 | self._object_gm_complex = [] |
---|
51 | self._object_gm_primitive = [] |
---|
52 | self._object_gm_aggregate = [] |
---|
53 | self.identifier = [] |
---|
54 | self.name = None |
---|
55 | self._coordOperationTo_cc_passthroughoperation = [] |
---|
56 | self._coordOperationTo_cc_concatenatedoperation = [] |
---|
57 | self._coordOperationTo_cc_singleoperation = [] |
---|
58 | self.derivedCRS = [] |
---|
59 | self.directPosition = [] |
---|
60 | self._position_tm_ordinalposition = [] |
---|
61 | self._position_tm_caldate = [] |
---|
62 | self._position_tm_coordinate = [] |
---|
63 | self._coordinateSystem_cs_verticalcs = None |
---|
64 | self._coordinateSystem_cs_userdefinedcs = None |
---|
65 | self._coordinateSystem_cs_cylindricalcs = None |
---|
66 | self._coordinateSystem_cs_ellipsoidalcs = None |
---|
67 | self._coordinateSystem_cs_sphericalcs = None |
---|
68 | self._coordinateSystem_cs_affinecs = None |
---|
69 | self._coordinateSystem_cs_linearcs = None |
---|
70 | self._coordinateSystem_cs_polarcs = None |
---|
71 | self._coordinateSystem_cs_cartesiancs = None |
---|
72 | self._datum_cd_engineeringdatum = None |
---|
73 | self._datum_cd_verticaldatum = None |
---|
74 | self._datum_cd_geodeticdatum = None |
---|
75 | self._datum_cd_imagedatum = None |
---|
76 | self.grid = [] |
---|
77 | self.compoundCRS = [] |
---|
78 | self._coordOperationFrom_cc_passthroughoperation = [] |
---|
79 | self._coordOperationFrom_cc_concatenatedoperation = [] |
---|
80 | self._coordOperationFrom_cc_singleoperation = [] |
---|
81 | super(TM_TemporalCRS, self).__init__() |
---|
82 | |
---|
83 | @property |
---|
84 | def domainOfValidity(self): |
---|
85 | return self._sc_singlecrs.domainOfValidity |
---|
86 | |
---|
87 | @domainOfValidity.setter |
---|
88 | def domainOfValidity(self, value): |
---|
89 | self._sc_singlecrs.domainOfValidity = value |
---|
90 | |
---|
91 | @property |
---|
92 | def remarks(self): |
---|
93 | return self._sc_singlecrs.remarks |
---|
94 | |
---|
95 | @remarks.setter |
---|
96 | def remarks(self, value): |
---|
97 | self._sc_singlecrs.remarks = value |
---|
98 | |
---|
99 | @property |
---|
100 | def alias(self): |
---|
101 | return self._sc_singlecrs.alias |
---|
102 | |
---|
103 | @alias.setter |
---|
104 | def alias(self, value): |
---|
105 | self._sc_singlecrs.alias = value |
---|
106 | |
---|
107 | @property |
---|
108 | def scope(self): |
---|
109 | return self._sc_singlecrs.scope |
---|
110 | |
---|
111 | @scope.setter |
---|
112 | def scope(self, value): |
---|
113 | self._sc_singlecrs.scope = value |
---|
114 | |
---|
115 | @property |
---|
116 | def object(self): |
---|
117 | return self._sc_singlecrs.object |
---|
118 | |
---|
119 | @object.setter |
---|
120 | def object(self, value): |
---|
121 | self._sc_singlecrs.object = value |
---|
122 | |
---|
123 | @property |
---|
124 | def identifier(self): |
---|
125 | return self._sc_singlecrs.identifier |
---|
126 | |
---|
127 | @identifier.setter |
---|
128 | def identifier(self, value): |
---|
129 | self._sc_singlecrs.identifier = value |
---|
130 | |
---|
131 | @property |
---|
132 | def name(self): |
---|
133 | return self._sc_singlecrs.name |
---|
134 | |
---|
135 | @name.setter |
---|
136 | def name(self, value): |
---|
137 | self._sc_singlecrs.name = value |
---|
138 | |
---|
139 | @property |
---|
140 | def coordOperationTo(self): |
---|
141 | return self._sc_singlecrs.coordOperationTo |
---|
142 | |
---|
143 | @coordOperationTo.setter |
---|
144 | def coordOperationTo(self, value): |
---|
145 | self._sc_singlecrs.coordOperationTo = value |
---|
146 | |
---|
147 | @property |
---|
148 | def derivedCRS(self): |
---|
149 | return self._sc_singlecrs.derivedCRS |
---|
150 | |
---|
151 | @derivedCRS.setter |
---|
152 | def derivedCRS(self, value): |
---|
153 | self._sc_singlecrs.derivedCRS = value |
---|
154 | |
---|
155 | @property |
---|
156 | def directPosition(self): |
---|
157 | return self._sc_singlecrs.directPosition |
---|
158 | |
---|
159 | @directPosition.setter |
---|
160 | def directPosition(self, value): |
---|
161 | self._sc_singlecrs.directPosition = value |
---|
162 | |
---|
163 | @property |
---|
164 | def position(self): |
---|
165 | return self._tm_referencesystem.position |
---|
166 | |
---|
167 | @position.setter |
---|
168 | def position(self, value): |
---|
169 | self._tm_referencesystem.position = value |
---|
170 | |
---|
171 | @property |
---|
172 | def coordinateSystem(self): |
---|
173 | return self._sc_singlecrs.coordinateSystem |
---|
174 | |
---|
175 | @coordinateSystem.setter |
---|
176 | def coordinateSystem(self, value): |
---|
177 | self._sc_singlecrs.coordinateSystem = value |
---|
178 | |
---|
179 | @property |
---|
180 | def datum(self): |
---|
181 | return self._sc_singlecrs.datum |
---|
182 | |
---|
183 | @datum.setter |
---|
184 | def datum(self, value): |
---|
185 | self._sc_singlecrs.datum = value |
---|
186 | |
---|
187 | @property |
---|
188 | def grid(self): |
---|
189 | return self._sc_singlecrs.grid |
---|
190 | |
---|
191 | @grid.setter |
---|
192 | def grid(self, value): |
---|
193 | self._sc_singlecrs.grid = value |
---|
194 | |
---|
195 | @property |
---|
196 | def compoundCRS(self): |
---|
197 | return self._sc_singlecrs.compoundCRS |
---|
198 | |
---|
199 | @compoundCRS.setter |
---|
200 | def compoundCRS(self, value): |
---|
201 | self._sc_singlecrs.compoundCRS = value |
---|
202 | |
---|
203 | @property |
---|
204 | def coordOperationFrom(self): |
---|
205 | return self._sc_singlecrs.coordOperationFrom |
---|
206 | |
---|
207 | @coordOperationFrom.setter |
---|
208 | def coordOperationFrom(self, value): |
---|
209 | self._sc_singlecrs.coordOperationFrom = value |
---|
210 | |
---|
211 | def __key(self): |
---|
212 | return (self.domainOfValidity, self.remarks, self.alias, self.scope, self.object, self.identifier, self.name, self.coordOperationTo, self.derivedCRS, self.directPosition, self.position, self.coordinateSystem, self.datum, self.grid, self.compoundCRS, self.coordOperationFrom) |
---|
213 | |
---|
214 | def __eq__(self, y): |
---|
215 | ''' |
---|
216 | Cannot compare classes which do not define a "__key" attribute |
---|
217 | ''' |
---|
218 | if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): |
---|
219 | return self.__key() == y.__key() |
---|
220 | return id(self) == id(y) |
---|
221 | |
---|
222 | def __hash__(self): |
---|
223 | return hash(self.__key()) |
---|