1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | from ea_model.iso_19115_2006_metadata_corrigendum.content_information.md_coveragedescription import MD_CoverageDescription |
---|
22 | from ascore.utils import has_value |
---|
23 | |
---|
24 | ''' |
---|
25 | Created on 16-Feb-2012 16:18:07 |
---|
26 | |
---|
27 | @author: mnagni |
---|
28 | ''' |
---|
29 | |
---|
30 | class MD_ImageDescription(MD_CoverageDescription): |
---|
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._md_coveragedescription = MD_CoverageDescription() |
---|
43 | |
---|
44 | self.cloudCoverPercentage = None |
---|
45 | self.dimension = [] |
---|
46 | self.imageQualityCode = None |
---|
47 | self.triangulationIndicator = None |
---|
48 | self.contentType = None |
---|
49 | self.lensDistortionInformationAvailability = None |
---|
50 | self.processingLevelCode = None |
---|
51 | self.illuminationAzimuthAngle = None |
---|
52 | self.compressionGenerationQuantity = None |
---|
53 | self.attributeDescription = None |
---|
54 | self.imagingCondition = None |
---|
55 | self.radiometricCalibrationDataAvailability = None |
---|
56 | self.filmDistortionInformationAvailability = None |
---|
57 | self.illuminationElevationAngle = None |
---|
58 | self.cameraCalibrationInformationAvailability = None |
---|
59 | super(MD_ImageDescription, self).__init__() |
---|
60 | |
---|
61 | @property |
---|
62 | def dimension(self): |
---|
63 | return self._md_coveragedescription.dimension |
---|
64 | |
---|
65 | @dimension.setter |
---|
66 | def dimension(self, value): |
---|
67 | self._md_coveragedescription.dimension = value |
---|
68 | |
---|
69 | @property |
---|
70 | def contentType(self): |
---|
71 | return self._md_coveragedescription.contentType |
---|
72 | |
---|
73 | @contentType.setter |
---|
74 | def contentType(self, value): |
---|
75 | self._md_coveragedescription.contentType = value |
---|
76 | |
---|
77 | @property |
---|
78 | def attributeDescription(self): |
---|
79 | return self._md_coveragedescription.attributeDescription |
---|
80 | |
---|
81 | @attributeDescription.setter |
---|
82 | def attributeDescription(self, value): |
---|
83 | self._md_coveragedescription.attributeDescription = value |
---|
84 | |
---|
85 | def __key(self): |
---|
86 | return (self.cloudCoverPercentage, self.dimension, self.imageQualityCode, self.triangulationIndicator, self.contentType, self.lensDistortionInformationAvailability, self.processingLevelCode, self.illuminationAzimuthAngle, self.compressionGenerationQuantity, self.attributeDescription, self.imagingCondition, self.radiometricCalibrationDataAvailability, self.filmDistortionInformationAvailability, self.illuminationElevationAngle, self.cameraCalibrationInformationAvailability) |
---|
87 | |
---|
88 | def __eq__(self, y): |
---|
89 | ''' |
---|
90 | Cannot compare classes which do not define a "__key" attribute |
---|
91 | ''' |
---|
92 | if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): |
---|
93 | return self.__key() == y.__key() |
---|
94 | return id(self) == id(y) |
---|
95 | |
---|
96 | def __hash__(self): |
---|
97 | return hash(self.__key()) |
---|