source: mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_observation/ceda_observation.py @ 8089

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_observation/ceda_observation.py@8089
Revision 8089, 8.8 KB checked in by mnagni, 8 years ago (diff)

Played with DOJO
New EA library
Addede CEDA_Process to the migration

Line 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21from ea_model.moles3_4.observation.mo_observation import  MO_Observation
22from ascore.utils import has_value
23
24'''
25Created on 14-Feb-2012 17:19:33
26
27@author: mnagni
28'''
29
30class CEDA_Observation(MO_Observation):
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._mo_observation = MO_Observation()         
43
44        self.resolution = None
45        self._geographicExtent_ex_boundingpolygon = []
46        self._geographicExtent_ex_geographicdescription = []
47        self._geographicExtent_ex_geographicboundingbox = []
48        self.relatedParty = []
49        self._permission_md_legalconstraints = None
50        self._permission_md_securityconstraints = None
51        self.resultTime = None
52        self.resultAccumulation = None
53        self._observedProperty_gf_associationrole = None
54        self._observedProperty_gf_attributetype = None
55        self._observedProperty_gf_operation = None
56        self.parameter = []
57        self.metadata = None
58        self.publicationState = None
59        self.identifier = []
60        self.dataLineage = None
61        self._phenomenonTime_tm_complex = None
62        self._phenomenonTime_tm_primitive = None
63        self.documentation = []
64        self._resultQuality_dq_completeness = []
65        self._resultQuality_qe_usability = []
66        self._resultQuality_dq_temporalaccuracy = []
67        self._resultQuality_dq_logicalconsistency = []
68        self._resultQuality_dq_thematicaccuracy = []
69        self._resultQuality_dq_positionalaccuracy = []
70        self.validTime = None
71        self._procedure_ceda_acquisition = None
72        self._procedure_ceda_processing = None
73        self._procedure_ceda_compositeprocess = None
74        self.result = None
75        self.verticalExtent = []
76        self.inSupportOf = None
77        self.internalReview = []
78        self.citation = []
79        self._featureOfInterest_mo_featureofinterest = None
80        self._featureOfInterest_sf_samplingfeature = None
81        self._featureOfInterest_gfi_domainfeature = None
82        self.status = None
83        self.keywords = []
84        self._relatedObservation_om_measurement = []
85        self._relatedObservation_om_complexobservation = []
86        self._relatedObservation_om_countobservation = []
87        self._relatedObservation_om_temporalobservation = []
88        self._relatedObservation_mo_observation = []
89        self._relatedObservation_om_geometryobservation = []
90        self._relatedObservation_om_truthobservation = []
91        self._relatedObservation_om_categoryobservation = []
92        self._relatedObservation_om_discretecoverageobservation = []
93        self.description = None
94        super(CEDA_Observation, self).__init__()
95
96    @property
97    def resolution(self):       
98        return self._mo_observation.resolution
99
100    @resolution.setter
101    def resolution(self, value):       
102            self._mo_observation.resolution = value
103
104    @property
105    def geographicExtent(self): 
106        return self._mo_observation.geographicExtent
107
108    @geographicExtent.setter
109    def geographicExtent(self, value): 
110            self._mo_observation.geographicExtent = value
111
112    @property
113    def relatedParty(self):     
114        return self._mo_observation.relatedParty
115
116    @relatedParty.setter
117    def relatedParty(self, value):     
118            self._mo_observation.relatedParty = value
119
120    @property
121    def permission(self):       
122        return self._mo_observation.permission
123
124    @permission.setter
125    def permission(self, value):       
126            self._mo_observation.permission = value
127
128    @property
129    def resultTime(self):       
130        return self._mo_observation.resultTime
131
132    @resultTime.setter
133    def resultTime(self, value):       
134            self._mo_observation.resultTime = value
135
136    @property
137    def resultAccumulation(self):       
138        return self._mo_observation.resultAccumulation
139
140    @resultAccumulation.setter
141    def resultAccumulation(self, value):       
142            self._mo_observation.resultAccumulation = value
143
144    @property
145    def observedProperty(self): 
146        return self._mo_observation.observedProperty
147
148    @observedProperty.setter
149    def observedProperty(self, value): 
150            self._mo_observation.observedProperty = value
151
152    @property
153    def parameter(self):       
154        return self._mo_observation.parameter
155
156    @parameter.setter
157    def parameter(self, value): 
158            self._mo_observation.parameter = value
159
160    @property
161    def metadata(self): 
162        return self._mo_observation.metadata
163
164    @metadata.setter
165    def metadata(self, value): 
166            self._mo_observation.metadata = value
167
168    @property
169    def publicationState(self): 
170        return self._mo_observation.publicationState
171
172    @publicationState.setter
173    def publicationState(self, value): 
174            self._mo_observation.publicationState = value
175
176    @property
177    def identifier(self):       
178        return self._mo_observation.identifier
179
180    @identifier.setter
181    def identifier(self, value):       
182            self._mo_observation.identifier = value
183
184    @property
185    def phenomenonTime(self):   
186        return self._mo_observation.phenomenonTime
187
188    @phenomenonTime.setter
189    def phenomenonTime(self, value):   
190            self._mo_observation.phenomenonTime = value
191
192    @property
193    def documentation(self):   
194        return self._mo_observation.documentation
195
196    @documentation.setter
197    def documentation(self, value):     
198            self._mo_observation.documentation = value
199
200    @property
201    def resultQuality(self):   
202        return self._mo_observation.resultQuality
203
204    @resultQuality.setter
205    def resultQuality(self, value):     
206            self._mo_observation.resultQuality = value
207
208    @property
209    def validTime(self):       
210        return self._mo_observation.validTime
211
212    @validTime.setter
213    def validTime(self, value): 
214            self._mo_observation.validTime = value
215
216    @property
217    def procedure(self):       
218        return self._mo_observation.procedure
219
220    @procedure.setter
221    def procedure(self, value): 
222            self._mo_observation.procedure = value
223
224    @property
225    def procedure(self):       
226        return self._mo_observation.procedure
227
228    @procedure.setter
229    def procedure(self, value): 
230            self._mo_observation.procedure = value
231
232    @property
233    def result(self):   
234        return self._mo_observation.result
235
236    @result.setter
237    def result(self, value):   
238            self._mo_observation.result = value
239
240    @property
241    def verticalExtent(self):   
242        return self._mo_observation.verticalExtent
243
244    @verticalExtent.setter
245    def verticalExtent(self, value):   
246            self._mo_observation.verticalExtent = value
247
248    @property
249    def inSupportOf(self):     
250        return self._mo_observation.inSupportOf
251
252    @inSupportOf.setter
253    def inSupportOf(self, value):       
254            self._mo_observation.inSupportOf = value
255
256    @property
257    def featureOfInterest(self):       
258        return self._mo_observation.featureOfInterest
259
260    @featureOfInterest.setter
261    def featureOfInterest(self, value): 
262            self._mo_observation.featureOfInterest = value
263
264    @property
265    def status(self):   
266        return self._mo_observation.status
267
268    @status.setter
269    def status(self, value):   
270            self._mo_observation.status = value
271
272    @property
273    def relatedObservation(self):       
274        return self._mo_observation.relatedObservation
275
276    @relatedObservation.setter
277    def relatedObservation(self, value):       
278            self._mo_observation.relatedObservation = value
279
280    @property
281    def description(self):     
282        return self._mo_observation.description
283
284    @description.setter
285    def description(self, value):       
286            self._mo_observation.description = value
287
288    def __key(self):
289        return (self.resolution, self.geographicExtent, self.relatedParty, self.permission, self.resultTime, self.resultAccumulation, self.observedProperty, self.parameter, self.metadata, self.publicationState, self.identifier, self.dataLineage, self.phenomenonTime, self.documentation, self.resultQuality, self.validTime, self.procedure, self.procedure, self.result, self.verticalExtent, self.inSupportOf, self.internalReview, self.citation, self.featureOfInterest, self.status, self.keywords, self.relatedObservation, self.description)
290
291    def __eq__(self, y):
292        '''
293        Cannot compare classes which do not define a "__key" attribute
294        '''
295        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
296            return self.__key() == y.__key()
297        return id(self) == id(y)
298
299    def __hash__(self):
300        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.