source: mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_computation/ceda_processing.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_computation/ceda_processing.py@8091
Revision 8091, 4.2 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.ceda_metadatamodel.ceda_observationprocess.ceda_process import  CEDA_Process
22from ea_model.moles3_4.computation.mo_processing import  MO_Processing
23from ascore.utils import has_value
24
25'''
26Created on 16-Feb-2012 16:18:05
27
28@author: mnagni
29'''
30
31class 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.documentation = []
52        self.processingInput = []
53        self.description = None
54        self.processingOutput = None
55        self._generatedObservation_om_discretecoverageobservation = []
56        self._generatedObservation_om_temporalobservation = []
57        self._generatedObservation_om_measurement = []
58        self._generatedObservation_mo_observation = []
59        self._generatedObservation_om_truthobservation = []
60        self._generatedObservation_om_countobservation = []
61        self._generatedObservation_om_categoryobservation = []
62        self._generatedObservation_om_geometryobservation = []
63        self._generatedObservation_om_complexobservation = []
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 documentation(self):   
100        return self._mo_processing.documentation
101
102    @documentation.setter
103    def documentation(self, value):     
104            self._mo_processing.documentation = value
105
106    @property
107    def processingInput(self): 
108        return self._mo_processing.processingInput
109
110    @processingInput.setter
111    def processingInput(self, value):   
112            self._mo_processing.processingInput = 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.documentation, self.processingInput, 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())
Note: See TracBrowser for help on using the repository browser.