source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_bicubicgrid.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_bicubicgrid.py@8091
Revision 8091, 3.5 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_19107_2003_spatial_schema.geometry.coordinate_geometry.gm_griddedsurface import  GM_GriddedSurface
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:06
26
27@author: mnagni
28'''
29
30class GM_BicubicGrid(GM_GriddedSurface):
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._gm_griddedsurface = GM_GriddedSurface()   
43
44        self.vertVectorAtEnd = []
45        self.interpolation = None
46        self.vertVectorAtStart = []
47        self.surface = None
48        self.horiVectorAtEnd = []
49        self.numDerivativesOnBoundary = None
50        self.horizontalCurveType = None
51        self.controlPoint = None
52        self.rows = None
53        self.verticalCurveType = None
54        self.columns = None
55        self.horiVectorAtStart = []
56        super(GM_BicubicGrid, self).__init__()
57
58    @property
59    def interpolation(self):   
60        return self._gm_griddedsurface.interpolation
61
62    @interpolation.setter
63    def interpolation(self, value):     
64            self._gm_griddedsurface.interpolation = value
65
66    @property
67    def surface(self): 
68        return self._gm_griddedsurface.surface
69
70    @surface.setter
71    def surface(self, value):   
72            self._gm_griddedsurface.surface = value
73
74    @property
75    def numDerivativesOnBoundary(self): 
76        return self._gm_griddedsurface.numDerivativesOnBoundary
77
78    @numDerivativesOnBoundary.setter
79    def numDerivativesOnBoundary(self, value): 
80            self._gm_griddedsurface.numDerivativesOnBoundary = value
81
82    @property
83    def horizontalCurveType(self):     
84        return self._gm_griddedsurface.horizontalCurveType
85
86    @horizontalCurveType.setter
87    def horizontalCurveType(self, value):       
88            self._gm_griddedsurface.horizontalCurveType = value
89
90    @property
91    def controlPoint(self):     
92        return self._gm_griddedsurface.controlPoint
93
94    @controlPoint.setter
95    def controlPoint(self, value):     
96            self._gm_griddedsurface.controlPoint = value
97
98    @property
99    def rows(self):     
100        return self._gm_griddedsurface.rows
101
102    @rows.setter
103    def rows(self, value):     
104            self._gm_griddedsurface.rows = value
105
106    @property
107    def verticalCurveType(self):       
108        return self._gm_griddedsurface.verticalCurveType
109
110    @verticalCurveType.setter
111    def verticalCurveType(self, value): 
112            self._gm_griddedsurface.verticalCurveType = value
113
114    @property
115    def columns(self): 
116        return self._gm_griddedsurface.columns
117
118    @columns.setter
119    def columns(self, value):   
120            self._gm_griddedsurface.columns = value
121
122    def __key(self):
123        return (self.vertVectorAtEnd, self.interpolation, self.vertVectorAtStart, self.surface, self.horiVectorAtEnd, self.numDerivativesOnBoundary, self.horizontalCurveType, self.controlPoint, self.rows, self.verticalCurveType, self.columns, self.horiVectorAtStart)
124
125    def __eq__(self, y):
126        '''
127        Cannot compare classes which do not define a "__key" attribute
128        '''
129        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
130            return self.__key() == y.__key()
131        return id(self) == id(y)
132
133    def __hash__(self):
134        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.