source: mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/radardatamodel/sd_radardata.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/radardatamodel/sd_radardata.py@8091
Revision 8091, 6.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_19130_sensor_data.sensor_model.sd_imageryparameters import  SD_ImageryParameters
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:08
26
27@author: mnagni
28'''
29
30class SD_RadarData(SD_ImageryParameters):
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._sd_imageryparameters = SD_ImageryParameters()     
43
44        self.subImage = []
45        self.operationalMode = None
46        self.processedNumberOfLooks = None
47        self.rangeCompressionAlgorithm = None
48        self.covariance = []
49        self.preSummingInRange = None
50        self.azimuthCompressionAlgorithm = None
51        self.identifiedBy = None
52        self.coordinateOrientation = None
53        self.autoFocusProcessingAlgorithm = None
54        self.emitterModel = []
55        self.numberOfInterlacedFields = None
56        self.tiledData = []
57        self.preSummingInAzimuth = None
58        self.positionAndOrientation = []
59        self.referenceTime = None
60        self.antennaGain = None
61        self.referenceTrackVelocity = None
62        self.coefficients = None
63        self.collectionPlane = None
64        self.physicalCoordinateSystem = None
65        self._distortionCorrection_sd_distortion = []
66        self._distortionCorrection_sd_decentering = []
67        self.azimuthWeighting = None
68        self.relatedDetector = []
69        self._groupParameters_sd_groupparameterset = []
70        self._groupParameters_sd_sampleset = []
71        self.lowFrequencyScanSize = None
72        self.sampleOrdering = None
73        self.optics = []
74        self.rangeWeighting = None
75        self.numberOfAToDConverterBits = None
76        self.vldAlphaOrientation = None
77        self.pulseCompressionRatio = None
78        super(SD_RadarData, self).__init__()
79
80    @property
81    def subImage(self): 
82        return self._sd_imageryparameters.subImage
83
84    @subImage.setter
85    def subImage(self, value): 
86            self._sd_imageryparameters.subImage = value
87
88    @property
89    def operationalMode(self): 
90        return self._sd_imageryparameters.operationalMode
91
92    @operationalMode.setter
93    def operationalMode(self, value):   
94            self._sd_imageryparameters.operationalMode = value
95
96    @property
97    def covariance(self):       
98        return self._sd_imageryparameters.covariance
99
100    @covariance.setter
101    def covariance(self, value):       
102            self._sd_imageryparameters.covariance = value
103
104    @property
105    def identifiedBy(self):     
106        return self._sd_imageryparameters.identifiedBy
107
108    @identifiedBy.setter
109    def identifiedBy(self, value):     
110            self._sd_imageryparameters.identifiedBy = value
111
112    @property
113    def emitterModel(self):     
114        return self._sd_imageryparameters.emitterModel
115
116    @emitterModel.setter
117    def emitterModel(self, value):     
118            self._sd_imageryparameters.emitterModel = value
119
120    @property
121    def numberOfInterlacedFields(self): 
122        return self._sd_imageryparameters.numberOfInterlacedFields
123
124    @numberOfInterlacedFields.setter
125    def numberOfInterlacedFields(self, value): 
126            self._sd_imageryparameters.numberOfInterlacedFields = value
127
128    @property
129    def tiledData(self):       
130        return self._sd_imageryparameters.tiledData
131
132    @tiledData.setter
133    def tiledData(self, value): 
134            self._sd_imageryparameters.tiledData = value
135
136    @property
137    def positionAndOrientation(self):   
138        return self._sd_imageryparameters.positionAndOrientation
139
140    @positionAndOrientation.setter
141    def positionAndOrientation(self, value):   
142            self._sd_imageryparameters.positionAndOrientation = value
143
144    @property
145    def referenceTime(self):   
146        return self._sd_imageryparameters.referenceTime
147
148    @referenceTime.setter
149    def referenceTime(self, value):     
150            self._sd_imageryparameters.referenceTime = value
151
152    @property
153    def distortionCorrection(self):     
154        return self._sd_imageryparameters.distortionCorrection
155
156    @distortionCorrection.setter
157    def distortionCorrection(self, value):     
158            self._sd_imageryparameters.distortionCorrection = value
159
160    @property
161    def relatedDetector(self): 
162        return self._sd_imageryparameters.relatedDetector
163
164    @relatedDetector.setter
165    def relatedDetector(self, value):   
166            self._sd_imageryparameters.relatedDetector = value
167
168    @property
169    def groupParameters(self): 
170        return self._sd_imageryparameters.groupParameters
171
172    @groupParameters.setter
173    def groupParameters(self, value):   
174            self._sd_imageryparameters.groupParameters = value
175
176    @property
177    def lowFrequencyScanSize(self):     
178        return self._sd_imageryparameters.lowFrequencyScanSize
179
180    @lowFrequencyScanSize.setter
181    def lowFrequencyScanSize(self, value):     
182            self._sd_imageryparameters.lowFrequencyScanSize = value
183
184    @property
185    def sampleOrdering(self):   
186        return self._sd_imageryparameters.sampleOrdering
187
188    @sampleOrdering.setter
189    def sampleOrdering(self, value):   
190            self._sd_imageryparameters.sampleOrdering = value
191
192    @property
193    def optics(self):   
194        return self._sd_imageryparameters.optics
195
196    @optics.setter
197    def optics(self, value):   
198            self._sd_imageryparameters.optics = value
199
200    def __key(self):
201        return (self.subImage, self.operationalMode, self.processedNumberOfLooks, self.rangeCompressionAlgorithm, self.covariance, self.preSummingInRange, self.azimuthCompressionAlgorithm, self.identifiedBy, self.coordinateOrientation, self.autoFocusProcessingAlgorithm, self.emitterModel, self.numberOfInterlacedFields, self.tiledData, self.preSummingInAzimuth, self.positionAndOrientation, self.referenceTime, self.antennaGain, self.referenceTrackVelocity, self.coefficients, self.collectionPlane, self.physicalCoordinateSystem, self.distortionCorrection, self.azimuthWeighting, self.relatedDetector, self.groupParameters, self.lowFrequencyScanSize, self.sampleOrdering, self.optics, self.rangeWeighting, self.numberOfAToDConverterBits, self.vldAlphaOrientation, self.pulseCompressionRatio)
202
203    def __eq__(self, y):
204        '''
205        Cannot compare classes which do not define a "__key" attribute
206        '''
207        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
208            return self.__key() == y.__key()
209        return id(self) == id(y)
210
211    def __hash__(self):
212        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.