1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | from ea_model.ceda_metadatamodel.ceda_observationprocess.ceda_process import CEDA_Process |
---|
22 | from ea_model.moles3_4.computation.mo_processing import MO_Processing |
---|
23 | from ascore.utils import has_value |
---|
24 | |
---|
25 | ''' |
---|
26 | Created on 14-Feb-2012 17:19:38 |
---|
27 | |
---|
28 | @author: mnagni |
---|
29 | ''' |
---|
30 | |
---|
31 | class CEDA_Processing(CEDA_Process,MO_Processing): |
---|
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_processing = MO_Processing() |
---|
44 | self._ceda_process = CEDA_Process() |
---|
45 | |
---|
46 | self.identifier = [] |
---|
47 | self.softwareReference = None |
---|
48 | self.relatedParty = [] |
---|
49 | self.review = [] |
---|
50 | self.algorithm = [] |
---|
51 | self.processingInput = [] |
---|
52 | self.documentation = [] |
---|
53 | self.description = None |
---|
54 | self.processingOutput = None |
---|
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 | super(CEDA_Processing, self).__init__() |
---|
65 | |
---|
66 | @property |
---|
67 | def identifier(self): |
---|
68 | return self._mo_processing.identifier |
---|
69 | |
---|
70 | @identifier.setter |
---|
71 | def identifier(self, value): |
---|
72 | self._mo_processing.identifier = value |
---|
73 | |
---|
74 | @property |
---|
75 | def softwareReference(self): |
---|
76 | return self._mo_processing.softwareReference |
---|
77 | |
---|
78 | @softwareReference.setter |
---|
79 | def softwareReference(self, value): |
---|
80 | self._mo_processing.softwareReference = value |
---|
81 | |
---|
82 | @property |
---|
83 | def relatedParty(self): |
---|
84 | return self._mo_processing.relatedParty |
---|
85 | |
---|
86 | @relatedParty.setter |
---|
87 | def relatedParty(self, value): |
---|
88 | self._mo_processing.relatedParty = value |
---|
89 | |
---|
90 | @property |
---|
91 | def algorithm(self): |
---|
92 | return self._mo_processing.algorithm |
---|
93 | |
---|
94 | @algorithm.setter |
---|
95 | def algorithm(self, value): |
---|
96 | self._mo_processing.algorithm = value |
---|
97 | |
---|
98 | @property |
---|
99 | def processingInput(self): |
---|
100 | return self._mo_processing.processingInput |
---|
101 | |
---|
102 | @processingInput.setter |
---|
103 | def processingInput(self, value): |
---|
104 | self._mo_processing.processingInput = value |
---|
105 | |
---|
106 | @property |
---|
107 | def documentation(self): |
---|
108 | return self._mo_processing.documentation |
---|
109 | |
---|
110 | @documentation.setter |
---|
111 | def documentation(self, value): |
---|
112 | self._mo_processing.documentation = value |
---|
113 | |
---|
114 | @property |
---|
115 | def description(self): |
---|
116 | return self._mo_processing.description |
---|
117 | |
---|
118 | @description.setter |
---|
119 | def description(self, value): |
---|
120 | self._mo_processing.description = value |
---|
121 | |
---|
122 | @property |
---|
123 | def processingOutput(self): |
---|
124 | return self._mo_processing.processingOutput |
---|
125 | |
---|
126 | @processingOutput.setter |
---|
127 | def processingOutput(self, value): |
---|
128 | self._mo_processing.processingOutput = value |
---|
129 | |
---|
130 | @property |
---|
131 | def generatedObservation(self): |
---|
132 | return self._mo_processing.generatedObservation |
---|
133 | |
---|
134 | @generatedObservation.setter |
---|
135 | def generatedObservation(self, value): |
---|
136 | self._mo_processing.generatedObservation = value |
---|
137 | |
---|
138 | def __key(self): |
---|
139 | return (self.identifier, self.softwareReference, self.relatedParty, self.review, self.algorithm, self.processingInput, self.documentation, self.description, self.processingOutput, self.generatedObservation) |
---|
140 | |
---|
141 | def __eq__(self, y): |
---|
142 | ''' |
---|
143 | Cannot compare classes which do not define a "__key" attribute |
---|
144 | ''' |
---|
145 | if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): |
---|
146 | return self.__key() == y.__key() |
---|
147 | return id(self) == id(y) |
---|
148 | |
---|
149 | def __hash__(self): |
---|
150 | return hash(self.__key()) |
---|