source: mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_acquisition/ceda_operation.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_acquisition/ceda_operation.py@8091
Revision 8091, 3.4 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.moles3_4.acquisition.mo_operation import  MO_Operation
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:10
26
27@author: mnagni
28'''
29
30class CEDA_Operation(MO_Operation):
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._mo_operation = MO_Operation()     
43
44        self.identifier = []
45        self.childOperation = []
46        self.status = None
47        self.review = []
48        self._operationTime_tm_primitive = None
49        self._operationTime_tm_complex = None
50        self.documentation = []
51        self.location = None
52        self.platform = []
53        self.description = None
54        self.relatedPartyInfo = []
55        super(CEDA_Operation, self).__init__()
56
57    @property
58    def identifier(self):       
59        return self._mo_operation.identifier
60
61    @identifier.setter
62    def identifier(self, value):       
63            self._mo_operation.identifier = value
64
65    @property
66    def childOperation(self):   
67        return self._mo_operation.childOperation
68
69    @childOperation.setter
70    def childOperation(self, value):   
71            self._mo_operation.childOperation = value
72
73    @property
74    def status(self):   
75        return self._mo_operation.status
76
77    @status.setter
78    def status(self, value):   
79            self._mo_operation.status = value
80
81    @property
82    def operationTime(self):   
83        return self._mo_operation.operationTime
84
85    @operationTime.setter
86    def operationTime(self, value):     
87            self._mo_operation.operationTime = value
88
89    @property
90    def documentation(self):   
91        return self._mo_operation.documentation
92
93    @documentation.setter
94    def documentation(self, value):     
95            self._mo_operation.documentation = value
96
97    @property
98    def location(self): 
99        return self._mo_operation.location
100
101    @location.setter
102    def location(self, value): 
103            self._mo_operation.location = value
104
105    @property
106    def platform(self): 
107        return self._mo_operation.platform
108
109    @platform.setter
110    def platform(self, value): 
111            self._mo_operation.platform = value
112
113    @property
114    def description(self):     
115        return self._mo_operation.description
116
117    @description.setter
118    def description(self, value):       
119            self._mo_operation.description = value
120
121    @property
122    def relatedPartyInfo(self): 
123        return self._mo_operation.relatedPartyInfo
124
125    @relatedPartyInfo.setter
126    def relatedPartyInfo(self, value): 
127            self._mo_operation.relatedPartyInfo = value
128
129    def __key(self):
130        return (self.identifier, self.childOperation, self.status, self.review, self.operationTime, self.documentation, self.location, self.platform, self.description, self.relatedPartyInfo)
131
132    def __eq__(self, y):
133        '''
134        Cannot compare classes which do not define a "__key" attribute
135        '''
136        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
137            return self.__key() == y.__key()
138        return id(self) == id(y)
139
140    def __hash__(self):
141        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.