source: mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/domain_specific_sampling_features/interval.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/domain_specific_sampling_features/interval.py@8091
Revision 8091, 5.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.iso_19156_2011_observations_and_measurements.sampling_features.samplingcurve.sf_samplingcurve import  SF_SamplingCurve
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:08
26
27@author: mnagni
28'''
29
30class Interval(SF_SamplingCurve):
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._sf_samplingcurve = SF_SamplingCurve()     
43
44        self._relatedObservation_om_discretecoverageobservation = []
45        self._relatedObservation_om_temporalobservation = []
46        self._relatedObservation_om_measurement = []
47        self._relatedObservation_mo_observation = []
48        self._relatedObservation_om_truthobservation = []
49        self._relatedObservation_om_countobservation = []
50        self._relatedObservation_om_categoryobservation = []
51        self._relatedObservation_om_geometryobservation = []
52        self._relatedObservation_om_complexobservation = []
53        self.lineage = None
54        self._relatedSamplingFeature_sf_spatialsamplingfeature = []
55        self._relatedSamplingFeature_sf_specimen = []
56        self._propertyValueProvider_om_discretecoverageobservation = []
57        self._propertyValueProvider_om_temporalobservation = []
58        self._propertyValueProvider_om_measurement = []
59        self._propertyValueProvider_mo_observation = []
60        self._propertyValueProvider_om_truthobservation = []
61        self._propertyValueProvider_om_countobservation = []
62        self._propertyValueProvider_om_categoryobservation = []
63        self._propertyValueProvider_om_geometryobservation = []
64        self._propertyValueProvider_om_complexobservation = []
65        self._positionalAccuracy_dq_griddeddatapositionalaccuracy = []
66        self._positionalAccuracy_dq_relativeinternalpositionalaccuracy = []
67        self._positionalAccuracy_dq_absoluteexternalpositionalaccuracy = []
68        self.sampledFeature = []
69        self._sampledFeature_sf_samplingfeature = []
70        self._sampledFeature_mo_featureofinterest = []
71        self._sampledFeature_gfi_domainfeature = []
72        self._shape_gm_complex = None
73        self._shape_gm_primitive = None
74        self._shape_gm_aggregate = None
75        self.shape = None
76        self.hostedProcedure = []
77        self.parameter = []
78        super(Interval, self).__init__()
79
80    @property
81    def relatedObservation(self):       
82        return self._sf_samplingcurve.relatedObservation
83
84    @relatedObservation.setter
85    def relatedObservation(self, value):       
86            self._sf_samplingcurve.relatedObservation = value
87
88    @property
89    def lineage(self): 
90        return self._sf_samplingcurve.lineage
91
92    @lineage.setter
93    def lineage(self, value):   
94            self._sf_samplingcurve.lineage = value
95
96    @property
97    def relatedSamplingFeature(self):   
98        return self._sf_samplingcurve.relatedSamplingFeature
99
100    @relatedSamplingFeature.setter
101    def relatedSamplingFeature(self, value):   
102            self._sf_samplingcurve.relatedSamplingFeature = value
103
104    @property
105    def propertyValueProvider(self):   
106        return self._sf_samplingcurve.propertyValueProvider
107
108    @propertyValueProvider.setter
109    def propertyValueProvider(self, value):     
110            self._sf_samplingcurve.propertyValueProvider = value
111
112    @property
113    def positionalAccuracy(self):       
114        return self._sf_samplingcurve.positionalAccuracy
115
116    @positionalAccuracy.setter
117    def positionalAccuracy(self, value):       
118            self._sf_samplingcurve.positionalAccuracy = value
119
120    @property
121    def sampledFeature(self):   
122        return self._sf_samplingcurve.sampledFeature
123
124    @sampledFeature.setter
125    def sampledFeature(self, value):   
126            self._sf_samplingcurve.sampledFeature = value
127
128    @property
129    def sampledFeature(self):   
130        return self._sf_samplingcurve.sampledFeature
131
132    @sampledFeature.setter
133    def sampledFeature(self, value):   
134            self._sf_samplingcurve.sampledFeature = value
135
136    @property
137    def shape(self):   
138        return self._sf_samplingcurve.shape
139
140    @shape.setter
141    def shape(self, value):     
142            self._sf_samplingcurve.shape = value
143
144    @property
145    def shape(self):   
146        return self._sf_samplingcurve.shape
147
148    @shape.setter
149    def shape(self, value):     
150            self._sf_samplingcurve.shape = value
151
152    @property
153    def hostedProcedure(self): 
154        return self._sf_samplingcurve.hostedProcedure
155
156    @hostedProcedure.setter
157    def hostedProcedure(self, value):   
158            self._sf_samplingcurve.hostedProcedure = value
159
160    @property
161    def parameter(self):       
162        return self._sf_samplingcurve.parameter
163
164    @parameter.setter
165    def parameter(self, value): 
166            self._sf_samplingcurve.parameter = value
167
168    def __key(self):
169        return (self.relatedObservation, self.lineage, self.relatedSamplingFeature, self.propertyValueProvider, self.positionalAccuracy, self.sampledFeature, self.sampledFeature, self.shape, self.shape, self.hostedProcedure, self.parameter)
170
171    def __eq__(self, y):
172        '''
173        Cannot compare classes which do not define a "__key" attribute
174        '''
175        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
176            return self.__key() == y.__key()
177        return id(self) == id(y)
178
179    def __hash__(self):
180        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.