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

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

Implementation of tickets #22390

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