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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_observation/ceda_observation.py@8091
Revision 8091, 8.6 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.moles3_4.observation.mo_observation import  MO_Observation
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:04
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_securityconstraints = None
50        self._permission_md_legalconstraints = None
51        self.resultTime = None
52        self.resultAccumulation = None
53        self._observedProperty_gf_attributetype = None
54        self._observedProperty_gf_associationrole = None
55        self._observedProperty_gf_operation = None
56        self.parameter = []
57        self.publicationState = None
58        self.identifier = []
59        self.metadata = None
60        self.dataLineage = None
61        self._phenomenonTime_tm_primitive = None
62        self._phenomenonTime_tm_complex = None
63        self.documentation = []
64        self.validTime = None
65        self._resultQuality_dq_logicalconsistency = []
66        self._resultQuality_dq_thematicaccuracy = []
67        self._resultQuality_qe_usability = []
68        self._resultQuality_dq_completeness = []
69        self._resultQuality_dq_positionalaccuracy = []
70        self._resultQuality_dq_temporalaccuracy = []
71        self._procedure_ceda_compositeprocess = None
72        self._procedure_ceda_acquisition = None
73        self._procedure_ceda_processing = None
74        self.result = None
75        self.verticalExtent = []
76        self.inSupportOf = None
77        self.citation = []
78        self.internalReview = []
79        self._featureOfInterest_sf_samplingfeature = None
80        self._featureOfInterest_mo_featureofinterest = None
81        self._featureOfInterest_gfi_domainfeature = None
82        self.status = None
83        self.keywords = []
84        self._relatedObservation_om_discretecoverageobservation = []
85        self._relatedObservation_om_temporalobservation = []
86        self._relatedObservation_om_measurement = []
87        self._relatedObservation_mo_observation = []
88        self._relatedObservation_om_truthobservation = []
89        self._relatedObservation_om_countobservation = []
90        self._relatedObservation_om_categoryobservation = []
91        self._relatedObservation_om_geometryobservation = []
92        self._relatedObservation_om_complexobservation = []
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 publicationState(self): 
162        return self._mo_observation.publicationState
163
164    @publicationState.setter
165    def publicationState(self, value): 
166            self._mo_observation.publicationState = value
167
168    @property
169    def identifier(self):       
170        return self._mo_observation.identifier
171
172    @identifier.setter
173    def identifier(self, value):       
174            self._mo_observation.identifier = value
175
176    @property
177    def metadata(self): 
178        return self._mo_observation.metadata
179
180    @metadata.setter
181    def metadata(self, value): 
182            self._mo_observation.metadata = 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 validTime(self):       
202        return self._mo_observation.validTime
203
204    @validTime.setter
205    def validTime(self, value): 
206            self._mo_observation.validTime = value
207
208    @property
209    def resultQuality(self):   
210        return self._mo_observation.resultQuality
211
212    @resultQuality.setter
213    def resultQuality(self, value):     
214            self._mo_observation.resultQuality = 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 result(self):   
226        return self._mo_observation.result
227
228    @result.setter
229    def result(self, value):   
230            self._mo_observation.result = value
231
232    @property
233    def verticalExtent(self):   
234        return self._mo_observation.verticalExtent
235
236    @verticalExtent.setter
237    def verticalExtent(self, value):   
238            self._mo_observation.verticalExtent = value
239
240    @property
241    def inSupportOf(self):     
242        return self._mo_observation.inSupportOf
243
244    @inSupportOf.setter
245    def inSupportOf(self, value):       
246            self._mo_observation.inSupportOf = value
247
248    @property
249    def featureOfInterest(self):       
250        return self._mo_observation.featureOfInterest
251
252    @featureOfInterest.setter
253    def featureOfInterest(self, value): 
254            self._mo_observation.featureOfInterest = value
255
256    @property
257    def status(self):   
258        return self._mo_observation.status
259
260    @status.setter
261    def status(self, value):   
262            self._mo_observation.status = value
263
264    @property
265    def relatedObservation(self):       
266        return self._mo_observation.relatedObservation
267
268    @relatedObservation.setter
269    def relatedObservation(self, value):       
270            self._mo_observation.relatedObservation = value
271
272    @property
273    def description(self):     
274        return self._mo_observation.description
275
276    @description.setter
277    def description(self, value):       
278            self._mo_observation.description = value
279
280    def __key(self):
281        return (self.resolution, self.geographicExtent, self.relatedParty, self.permission, self.resultTime, self.resultAccumulation, self.observedProperty, self.parameter, self.publicationState, self.identifier, self.metadata, self.dataLineage, self.phenomenonTime, self.documentation, self.validTime, self.resultQuality, self.procedure, self.result, self.verticalExtent, self.inSupportOf, self.citation, self.internalReview, self.featureOfInterest, self.status, self.keywords, self.relatedObservation, self.description)
282
283    def __eq__(self, y):
284        '''
285        Cannot compare classes which do not define a "__key" attribute
286        '''
287        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
288            return self.__key() == y.__key()
289        return id(self) == id(y)
290
291    def __hash__(self):
292        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.