source: mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/sampling_features/samplingcurve/sf_samplingcurve.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/sampling_features/samplingcurve/sf_samplingcurve.py@8091
Revision 8091, 5.7 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.spatialsamplingfeature.sf_spatialsamplingfeature import  SF_SpatialSamplingFeature
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:09
26
27@author: mnagni
28'''
29
30class SF_SamplingCurve(SF_SpatialSamplingFeature):
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_spatialsamplingfeature = SF_SpatialSamplingFeature()   
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(SF_SamplingCurve, self).__init__()
79
80    @property
81    def relatedObservation(self):       
82        return self._sf_spatialsamplingfeature.relatedObservation
83
84    @relatedObservation.setter
85    def relatedObservation(self, value):       
86            self._sf_spatialsamplingfeature.relatedObservation = value
87
88    @property
89    def lineage(self): 
90        return self._sf_spatialsamplingfeature.lineage
91
92    @lineage.setter
93    def lineage(self, value):   
94            self._sf_spatialsamplingfeature.lineage = value
95
96    @property
97    def relatedSamplingFeature(self):   
98        return self._sf_spatialsamplingfeature.relatedSamplingFeature
99
100    @relatedSamplingFeature.setter
101    def relatedSamplingFeature(self, value):   
102            self._sf_spatialsamplingfeature.relatedSamplingFeature = value
103
104    @property
105    def propertyValueProvider(self):   
106        return self._sf_spatialsamplingfeature.propertyValueProvider
107
108    @propertyValueProvider.setter
109    def propertyValueProvider(self, value):     
110            self._sf_spatialsamplingfeature.propertyValueProvider = value
111
112    @property
113    def positionalAccuracy(self):       
114        return self._sf_spatialsamplingfeature.positionalAccuracy
115
116    @positionalAccuracy.setter
117    def positionalAccuracy(self, value):       
118            self._sf_spatialsamplingfeature.positionalAccuracy = value
119
120    @property
121    def sampledFeature(self):   
122        return self._sf_spatialsamplingfeature.sampledFeature
123
124    @sampledFeature.setter
125    def sampledFeature(self, value):   
126            self._sf_spatialsamplingfeature.sampledFeature = value
127
128    @property
129    def sampledFeature(self):   
130        return self._sf_spatialsamplingfeature.sampledFeature
131
132    @sampledFeature.setter
133    def sampledFeature(self, value):   
134            self._sf_spatialsamplingfeature.sampledFeature = value
135
136    @property
137    def shape(self):   
138        return self._sf_spatialsamplingfeature.shape
139
140    @shape.setter
141    def shape(self, value):     
142            self._sf_spatialsamplingfeature.shape = value
143
144    @property
145    def hostedProcedure(self): 
146        return self._sf_spatialsamplingfeature.hostedProcedure
147
148    @hostedProcedure.setter
149    def hostedProcedure(self, value):   
150            self._sf_spatialsamplingfeature.hostedProcedure = value
151
152    @property
153    def parameter(self):       
154        return self._sf_spatialsamplingfeature.parameter
155
156    @parameter.setter
157    def parameter(self, value): 
158            self._sf_spatialsamplingfeature.parameter = value
159
160    def __key(self):
161        return (self.relatedObservation, self.lineage, self.relatedSamplingFeature, self.propertyValueProvider, self.positionalAccuracy, self.sampledFeature, self.sampledFeature, self.shape, self.shape, self.hostedProcedure, self.parameter)
162
163    def __eq__(self, y):
164        '''
165        Cannot compare classes which do not define a "__key" attribute
166        '''
167        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
168            return self.__key() == y.__key()
169        return id(self) == id(y)
170
171    def __hash__(self):
172        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.