1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | from ea_model.iso_19107_2003_spatial_schema.geometry.coordinate_geometry.gm_polynomialspline import GM_PolynomialSpline |
---|
22 | from ascore.utils import has_value, collectionProofHash |
---|
23 | |
---|
24 | ''' |
---|
25 | Created on 10-Jul-2012 14:15:03 |
---|
26 | |
---|
27 | @author: mnagni |
---|
28 | ''' |
---|
29 | |
---|
30 | class GM_CubicSpline(GM_PolynomialSpline): |
---|
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_polynomialspline = GM_PolynomialSpline() |
---|
43 | |
---|
44 | self.curve = None |
---|
45 | self.numDerivativesAtEnd = None |
---|
46 | self.interpolation = None |
---|
47 | self.numDerivativesAtStart = None |
---|
48 | self.degree = None |
---|
49 | self.numDerivativeInterior = None |
---|
50 | self.controlPoints = None |
---|
51 | super(GM_CubicSpline, self).__init__() |
---|
52 | @property |
---|
53 | def curve(self): |
---|
54 | return self._gm_polynomialspline.curve |
---|
55 | |
---|
56 | @curve.setter |
---|
57 | def curve(self, value): |
---|
58 | self._gm_polynomialspline.curve = value |
---|
59 | @property |
---|
60 | def numDerivativesAtEnd(self): |
---|
61 | return self._gm_polynomialspline.numDerivativesAtEnd |
---|
62 | |
---|
63 | @numDerivativesAtEnd.setter |
---|
64 | def numDerivativesAtEnd(self, value): |
---|
65 | self._gm_polynomialspline.numDerivativesAtEnd = value |
---|
66 | @property |
---|
67 | def knot(self): |
---|
68 | return self._gm_polynomialspline.knot |
---|
69 | |
---|
70 | @knot.setter |
---|
71 | def knot(self, value): |
---|
72 | self._gm_polynomialspline.knot = value |
---|
73 | @property |
---|
74 | def interpolation(self): |
---|
75 | return self._gm_polynomialspline.interpolation |
---|
76 | |
---|
77 | @interpolation.setter |
---|
78 | def interpolation(self, value): |
---|
79 | self._gm_polynomialspline.interpolation = value |
---|
80 | @property |
---|
81 | def numDerivativesAtStart(self): |
---|
82 | return self._gm_polynomialspline.numDerivativesAtStart |
---|
83 | |
---|
84 | @numDerivativesAtStart.setter |
---|
85 | def numDerivativesAtStart(self, value): |
---|
86 | self._gm_polynomialspline.numDerivativesAtStart = value |
---|
87 | @property |
---|
88 | def degree(self): |
---|
89 | return self._gm_polynomialspline.degree |
---|
90 | |
---|
91 | @degree.setter |
---|
92 | def degree(self, value): |
---|
93 | self._gm_polynomialspline.degree = value |
---|
94 | @property |
---|
95 | def vectorAtStart(self): |
---|
96 | return self._gm_polynomialspline.vectorAtStart |
---|
97 | |
---|
98 | @vectorAtStart.setter |
---|
99 | def vectorAtStart(self, value): |
---|
100 | self._gm_polynomialspline.vectorAtStart = value |
---|
101 | @property |
---|
102 | def vectorAtEnd(self): |
---|
103 | return self._gm_polynomialspline.vectorAtEnd |
---|
104 | |
---|
105 | @vectorAtEnd.setter |
---|
106 | def vectorAtEnd(self, value): |
---|
107 | self._gm_polynomialspline.vectorAtEnd = value |
---|
108 | @property |
---|
109 | def numDerivativeInterior(self): |
---|
110 | return self._gm_polynomialspline.numDerivativeInterior |
---|
111 | |
---|
112 | @numDerivativeInterior.setter |
---|
113 | def numDerivativeInterior(self, value): |
---|
114 | self._gm_polynomialspline.numDerivativeInterior = value |
---|
115 | @property |
---|
116 | def controlPoints(self): |
---|
117 | return self._gm_polynomialspline.controlPoints |
---|
118 | |
---|
119 | @controlPoints.setter |
---|
120 | def controlPoints(self, value): |
---|
121 | self._gm_polynomialspline.controlPoints = value |
---|
122 | |
---|
123 | def synchronize(self): |
---|
124 | pass |
---|
125 | |
---|
126 | def __key(self): |
---|
127 | return (self.curve, self.numDerivativesAtEnd, self.knot, self.interpolation, self.numDerivativesAtStart, self.degree, self.vectorAtStart, self.vectorAtEnd, self.numDerivativeInterior, self.controlPoints) |
---|
128 | |
---|
129 | def __eq__(self, y): |
---|
130 | if type(self) != type(y): |
---|
131 | return False |
---|
132 | ''' |
---|
133 | Cannot compare classes which do not define a "__key" attribute |
---|
134 | ''' |
---|
135 | if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): |
---|
136 | return self.__key() == y.__key() |
---|
137 | return id(self) == id(y) |
---|
138 | |
---|
139 | def __hash__(self): |
---|
140 | return collectionProofHash(self.__key()) |
---|