source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_bsplinesurface.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_bsplinesurface.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_BSplineSurface(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.interpolation = None
45        self.degree = []
46        self.surface = None
47        self.knotSpec = None
48        self.surfaceForm = None
49        self.columns = None
50        self.verticalCurveType = None
51        self.knot = []
52        self.numDerivativesOnBoundary = None
53        self.isPolynomial = None
54        self.horizontalCurveType = None
55        self.controlPoint = None
56        self.rows = None
57        super(GM_BSplineSurface, self).__init__()
58
59    @property
60    def interpolation(self):   
61        return self._gm_griddedsurface.interpolation
62
63    @interpolation.setter
64    def interpolation(self, value):     
65            self._gm_griddedsurface.interpolation = value
66
67    @property
68    def surface(self): 
69        return self._gm_griddedsurface.surface
70
71    @surface.setter
72    def surface(self, value):   
73            self._gm_griddedsurface.surface = value
74
75    @property
76    def columns(self): 
77        return self._gm_griddedsurface.columns
78
79    @columns.setter
80    def columns(self, value):   
81            self._gm_griddedsurface.columns = value
82
83    @property
84    def verticalCurveType(self):       
85        return self._gm_griddedsurface.verticalCurveType
86
87    @verticalCurveType.setter
88    def verticalCurveType(self, value): 
89            self._gm_griddedsurface.verticalCurveType = value
90
91    @property
92    def numDerivativesOnBoundary(self): 
93        return self._gm_griddedsurface.numDerivativesOnBoundary
94
95    @numDerivativesOnBoundary.setter
96    def numDerivativesOnBoundary(self, value): 
97            self._gm_griddedsurface.numDerivativesOnBoundary = value
98
99    @property
100    def horizontalCurveType(self):     
101        return self._gm_griddedsurface.horizontalCurveType
102
103    @horizontalCurveType.setter
104    def horizontalCurveType(self, value):       
105            self._gm_griddedsurface.horizontalCurveType = value
106
107    @property
108    def controlPoint(self):     
109        return self._gm_griddedsurface.controlPoint
110
111    @controlPoint.setter
112    def controlPoint(self, value):     
113            self._gm_griddedsurface.controlPoint = value
114
115    @property
116    def rows(self):     
117        return self._gm_griddedsurface.rows
118
119    @rows.setter
120    def rows(self, value):     
121            self._gm_griddedsurface.rows = value
122
123    def __key(self):
124        return (self.interpolation, self.degree, self.surface, self.knotSpec, self.surfaceForm, self.columns, self.verticalCurveType, self.knot, self.numDerivativesOnBoundary, self.isPolynomial, self.horizontalCurveType, self.controlPoint, self.rows)
125
126    def __eq__(self, y):
127        '''
128        Cannot compare classes which do not define a "__key" attribute
129        '''
130        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
131            return self.__key() == y.__key()
132        return id(self) == id(y)
133
134    def __hash__(self):
135        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.