source: mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/observation_schema/timeseriesobservation/om_timeseriesobservation.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/observation_schema/timeseriesobservation/om_timeseriesobservation.py@8091
Revision 8091, 5.9 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_19156_2011_observations_and_measurements.observation_schema.coverageobservation.om_discretecoverageobservation import  OM_DiscreteCoverageObservation
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:11
26
27@author: mnagni
28'''
29
30class OM_TimeSeriesObservation(OM_DiscreteCoverageObservation):
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._om_discretecoverageobservation = OM_DiscreteCoverageObservation()         
43
44        self.metadata = None
45        self._featureOfInterest_sf_samplingfeature = None
46        self._featureOfInterest_mo_featureofinterest = None
47        self._featureOfInterest_gfi_domainfeature = None
48        self._procedure_ceda_compositeprocess = None
49        self._procedure_ceda_acquisition = None
50        self._procedure_ceda_processing = None
51        self._relatedObservation_om_discretecoverageobservation = []
52        self._relatedObservation_om_temporalobservation = []
53        self._relatedObservation_om_measurement = []
54        self._relatedObservation_mo_observation = []
55        self._relatedObservation_om_truthobservation = []
56        self._relatedObservation_om_countobservation = []
57        self._relatedObservation_om_categoryobservation = []
58        self._relatedObservation_om_geometryobservation = []
59        self._relatedObservation_om_complexobservation = []
60        self._phenomenonTime_tm_primitive = None
61        self._phenomenonTime_tm_complex = None
62        self._result_cv_discretegridpointcoverage = None
63        self._result_cvt_discretetimeinstantcoverage = None
64        self._result_cv_discretesurfacecoverage = None
65        self._result_cv_discretecurvecoverage = None
66        self._result_cv_discretepointcoverage = None
67        self._result_cv_discretesolidcoverage = None
68        self.result = None
69        self.resultTime = None
70        self.validTime = None
71        self._resultQuality_dq_logicalconsistency = []
72        self._resultQuality_dq_thematicaccuracy = []
73        self._resultQuality_qe_usability = []
74        self._resultQuality_dq_completeness = []
75        self._resultQuality_dq_positionalaccuracy = []
76        self._resultQuality_dq_temporalaccuracy = []
77        self._observedProperty_gf_attributetype = None
78        self._observedProperty_gf_associationrole = None
79        self._observedProperty_gf_operation = None
80        self.parameter = []
81        super(OM_TimeSeriesObservation, self).__init__()
82
83    @property
84    def metadata(self): 
85        return self._om_discretecoverageobservation.metadata
86
87    @metadata.setter
88    def metadata(self, value): 
89            self._om_discretecoverageobservation.metadata = value
90
91    @property
92    def featureOfInterest(self):       
93        return self._om_discretecoverageobservation.featureOfInterest
94
95    @featureOfInterest.setter
96    def featureOfInterest(self, value): 
97            self._om_discretecoverageobservation.featureOfInterest = value
98
99    @property
100    def procedure(self):       
101        return self._om_discretecoverageobservation.procedure
102
103    @procedure.setter
104    def procedure(self, value): 
105            self._om_discretecoverageobservation.procedure = value
106
107    @property
108    def relatedObservation(self):       
109        return self._om_discretecoverageobservation.relatedObservation
110
111    @relatedObservation.setter
112    def relatedObservation(self, value):       
113            self._om_discretecoverageobservation.relatedObservation = value
114
115    @property
116    def phenomenonTime(self):   
117        return self._om_discretecoverageobservation.phenomenonTime
118
119    @phenomenonTime.setter
120    def phenomenonTime(self, value):   
121            self._om_discretecoverageobservation.phenomenonTime = value
122
123    @property
124    def result(self):   
125        return self._om_discretecoverageobservation.result
126
127    @result.setter
128    def result(self, value):   
129            self._om_discretecoverageobservation.result = value
130
131    @property
132    def resultTime(self):       
133        return self._om_discretecoverageobservation.resultTime
134
135    @resultTime.setter
136    def resultTime(self, value):       
137            self._om_discretecoverageobservation.resultTime = value
138
139    @property
140    def validTime(self):       
141        return self._om_discretecoverageobservation.validTime
142
143    @validTime.setter
144    def validTime(self, value): 
145            self._om_discretecoverageobservation.validTime = value
146
147    @property
148    def resultQuality(self):   
149        return self._om_discretecoverageobservation.resultQuality
150
151    @resultQuality.setter
152    def resultQuality(self, value):     
153            self._om_discretecoverageobservation.resultQuality = value
154
155    @property
156    def observedProperty(self): 
157        return self._om_discretecoverageobservation.observedProperty
158
159    @observedProperty.setter
160    def observedProperty(self, value): 
161            self._om_discretecoverageobservation.observedProperty = value
162
163    @property
164    def parameter(self):       
165        return self._om_discretecoverageobservation.parameter
166
167    @parameter.setter
168    def parameter(self, value): 
169            self._om_discretecoverageobservation.parameter = value
170
171    def __key(self):
172        return (self.metadata, self.featureOfInterest, self.procedure, self.relatedObservation, self.phenomenonTime, self.result, self.result, self.resultTime, self.validTime, self.resultQuality, self.observedProperty, self.parameter)
173
174    def __eq__(self, y):
175        '''
176        Cannot compare classes which do not define a "__key" attribute
177        '''
178        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
179            return self.__key() == y.__key()
180        return id(self) == id(y)
181
182    def __hash__(self):
183        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.