1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | from ea_model.moles3_4.acquisition.mo_acquisition import MO_Acquisition |
---|
22 | from ea_model.ceda_metadatamodel.ceda_observationprocess.ceda_process import CEDA_Process |
---|
23 | from ascore.utils import has_value |
---|
24 | |
---|
25 | ''' |
---|
26 | Created on 14-Feb-2012 17:19:32 |
---|
27 | |
---|
28 | @author: mnagni |
---|
29 | ''' |
---|
30 | |
---|
31 | class CEDA_Acquisition(CEDA_Process,MO_Acquisition): |
---|
32 | ''' |
---|
33 | Represents a data entity defined in a UML diagram and supposed to |
---|
34 | be persisted in a relational database. |
---|
35 | |
---|
36 | This class has been genererated automatically using the Apache Velocity project. |
---|
37 | ''' |
---|
38 | ''' |
---|
39 | Please note that any access to the inner attributes should be done using |
---|
40 | the given get/set methods and NOT accessing them directly. |
---|
41 | ''' |
---|
42 | def __init__(self): |
---|
43 | self._mo_acquisition = MO_Acquisition() |
---|
44 | self._ceda_process = CEDA_Process() |
---|
45 | |
---|
46 | self.identifier = [] |
---|
47 | self.instrument = [] |
---|
48 | self.review = [] |
---|
49 | self.operation = [] |
---|
50 | self.documentation = [] |
---|
51 | self.outputDescription = None |
---|
52 | self.platform = [] |
---|
53 | self.description = None |
---|
54 | self.instrumentPlatformPair = [] |
---|
55 | self._generatedObservation_om_measurement = [] |
---|
56 | self._generatedObservation_om_complexobservation = [] |
---|
57 | self._generatedObservation_om_countobservation = [] |
---|
58 | self._generatedObservation_om_temporalobservation = [] |
---|
59 | self._generatedObservation_mo_observation = [] |
---|
60 | self._generatedObservation_om_geometryobservation = [] |
---|
61 | self._generatedObservation_om_truthobservation = [] |
---|
62 | self._generatedObservation_om_categoryobservation = [] |
---|
63 | self._generatedObservation_om_discretecoverageobservation = [] |
---|
64 | self.realatedParty = [] |
---|
65 | super(CEDA_Acquisition, self).__init__() |
---|
66 | |
---|
67 | @property |
---|
68 | def identifier(self): |
---|
69 | return self._mo_acquisition.identifier |
---|
70 | |
---|
71 | @identifier.setter |
---|
72 | def identifier(self, value): |
---|
73 | self._mo_acquisition.identifier = value |
---|
74 | |
---|
75 | @property |
---|
76 | def instrument(self): |
---|
77 | return self._mo_acquisition.instrument |
---|
78 | |
---|
79 | @instrument.setter |
---|
80 | def instrument(self, value): |
---|
81 | self._mo_acquisition.instrument = value |
---|
82 | |
---|
83 | @property |
---|
84 | def operation(self): |
---|
85 | return self._mo_acquisition.operation |
---|
86 | |
---|
87 | @operation.setter |
---|
88 | def operation(self, value): |
---|
89 | self._mo_acquisition.operation = value |
---|
90 | |
---|
91 | @property |
---|
92 | def documentation(self): |
---|
93 | return self._mo_acquisition.documentation |
---|
94 | |
---|
95 | @documentation.setter |
---|
96 | def documentation(self, value): |
---|
97 | self._mo_acquisition.documentation = value |
---|
98 | |
---|
99 | @property |
---|
100 | def outputDescription(self): |
---|
101 | return self._mo_acquisition.outputDescription |
---|
102 | |
---|
103 | @outputDescription.setter |
---|
104 | def outputDescription(self, value): |
---|
105 | self._mo_acquisition.outputDescription = value |
---|
106 | |
---|
107 | @property |
---|
108 | def platform(self): |
---|
109 | return self._mo_acquisition.platform |
---|
110 | |
---|
111 | @platform.setter |
---|
112 | def platform(self, value): |
---|
113 | self._mo_acquisition.platform = value |
---|
114 | |
---|
115 | @property |
---|
116 | def description(self): |
---|
117 | return self._mo_acquisition.description |
---|
118 | |
---|
119 | @description.setter |
---|
120 | def description(self, value): |
---|
121 | self._mo_acquisition.description = value |
---|
122 | |
---|
123 | @property |
---|
124 | def instrumentPlatformPair(self): |
---|
125 | return self._mo_acquisition.instrumentPlatformPair |
---|
126 | |
---|
127 | @instrumentPlatformPair.setter |
---|
128 | def instrumentPlatformPair(self, value): |
---|
129 | self._mo_acquisition.instrumentPlatformPair = value |
---|
130 | |
---|
131 | @property |
---|
132 | def generatedObservation(self): |
---|
133 | return self._mo_acquisition.generatedObservation |
---|
134 | |
---|
135 | @generatedObservation.setter |
---|
136 | def generatedObservation(self, value): |
---|
137 | self._mo_acquisition.generatedObservation = value |
---|
138 | |
---|
139 | @property |
---|
140 | def realatedParty(self): |
---|
141 | return self._mo_acquisition.realatedParty |
---|
142 | |
---|
143 | @realatedParty.setter |
---|
144 | def realatedParty(self, value): |
---|
145 | self._mo_acquisition.realatedParty = value |
---|
146 | |
---|
147 | def __key(self): |
---|
148 | return (self.identifier, self.instrument, self.review, self.operation, self.documentation, self.outputDescription, self.platform, self.description, self.instrumentPlatformPair, self.generatedObservation, self.realatedParty) |
---|
149 | |
---|
150 | def __eq__(self, y): |
---|
151 | ''' |
---|
152 | Cannot compare classes which do not define a "__key" attribute |
---|
153 | ''' |
---|
154 | if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): |
---|
155 | return self.__key() == y.__key() |
---|
156 | return id(self) == id(y) |
---|
157 | |
---|
158 | def __hash__(self): |
---|
159 | return hash(self.__key()) |
---|