source: mauRepo/MolesManager/trunk/src/ea_model/iso_19123_2005_coverages/coverages/discrete_coverages/cv_discretepointcoverage.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19123_2005_coverages/coverages/discrete_coverages/cv_discretepointcoverage.py@8091
Revision 8091, 3.3 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.iso_19123_2005_coverages.coverages.discrete_coverages.cv_discretecoverage import  CV_DiscreteCoverage
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:04
26
27@author: mnagni
28'''
29
30class CV_DiscretePointCoverage(CV_DiscreteCoverage):
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._cv_discretecoverage = CV_DiscreteCoverage()       
43
44        self.domainExtent = []
45        self._CRS_sc_singlecrs = None
46        self._CRS_sc_compoundcrs = None
47        self.domainElement = []
48        self.commonPointRule = None
49        self.rangeType = None
50        self._element_cv_curvevaluepair = []
51        self._element_cv_solidvaluepair = []
52        self._element_cvt_timeinstantvaluepair = []
53        self._element_cv_pointvaluepair = []
54        self._element_cv_surfacevaluepair = []
55        self._element_cv_gridpointvaluepair = []
56        self.element = []
57        self.rangeElement = []
58        super(CV_DiscretePointCoverage, self).__init__()
59
60    @property
61    def domainExtent(self):     
62        return self._cv_discretecoverage.domainExtent
63
64    @domainExtent.setter
65    def domainExtent(self, value):     
66            self._cv_discretecoverage.domainExtent = value
67
68    @property
69    def CRS(self):     
70        return self._cv_discretecoverage.CRS
71
72    @CRS.setter
73    def CRS(self, value):       
74            self._cv_discretecoverage.CRS = value
75
76    @property
77    def domainElement(self):   
78        return self._cv_discretecoverage.domainElement
79
80    @domainElement.setter
81    def domainElement(self, value):     
82            self._cv_discretecoverage.domainElement = value
83
84    @property
85    def commonPointRule(self): 
86        return self._cv_discretecoverage.commonPointRule
87
88    @commonPointRule.setter
89    def commonPointRule(self, value):   
90            self._cv_discretecoverage.commonPointRule = value
91
92    @property
93    def rangeType(self):       
94        return self._cv_discretecoverage.rangeType
95
96    @rangeType.setter
97    def rangeType(self, value): 
98            self._cv_discretecoverage.rangeType = value
99
100    @property
101    def element(self): 
102        return self._cv_discretecoverage.element
103
104    @element.setter
105    def element(self, value):   
106            self._cv_discretecoverage.element = value
107
108    @property
109    def rangeElement(self):     
110        return self._cv_discretecoverage.rangeElement
111
112    @rangeElement.setter
113    def rangeElement(self, value):     
114            self._cv_discretecoverage.rangeElement = value
115
116    def __key(self):
117        return (self.domainExtent, self.CRS, self.domainElement, self.commonPointRule, self.rangeType, self.element, self.element, self.rangeElement)
118
119    def __eq__(self, y):
120        '''
121        Cannot compare classes which do not define a "__key" attribute
122        '''
123        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
124            return self.__key() == y.__key()
125        return id(self) == id(y)
126
127    def __hash__(self):
128        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.