source: mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_result/ceda_result.py @ 8042

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/ceda_metadatamodel/ceda_result/ceda_result.py@8042
Revision 8042, 1.2 KB checked in by mnagni, 8 years ago (diff)

The tables are correctly generated but still some problem with class initialization.
Migration is partially working.
Starting the deployment structure implementation.

Line 
1
2
3
4
5
6
7
8
9
10
11
12
13from ea_model.moles3_4.result.mo_result import  MO_Result
14
15'''
16Created on 03-Jan-2012 11:10:06
17
18@author: mnagni
19'''
20
21class CEDA_Result(MO_Result):
22        '''
23                Represents a data entity defined in a UML diagram and supposed to
24                be persisted in a relational database.
25 
26                This class has been genererated automatically using the Apache Velocity project.
27        '''
28        '''
29                Please note that any access to the inner attributes should be done using
30                the given get/set methods and NOT accessing them directly.
31        '''
32        def __init__(self):
33                self._mo_result = MO_Result()   
34                self.segment = None
35                self.volume = None
36                self.sample = None
37                self.curationCategory = None
38                self.numberOfFiles = None
39                self.internalPath = None
40                self.source = None
41                super(CEDA_Result, self).__init__()
42
43        @property
44        def segment(self):
45                return self._mo_result.segment
46
47        @segment.setter
48        def segment(self, value):
49                         self._mo_result.segment = value
50
51
52
53        @property
54        def sample(self):
55                return self._mo_result.sample
56
57        @sample.setter
58        def sample(self, value):
59                         self._mo_result.sample = value
60
61
62
63
64
65
66
67        @property
68        def source(self):
69                return self._mo_result.source
70
71        @source.setter
72        def source(self, value):
73                         self._mo_result.source = value
Note: See TracBrowser for help on using the repository browser.