source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_clothoid.py @ 8089

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_clothoid.py@8089
Revision 8089, 2.8 KB checked in by mnagni, 8 years ago (diff)

Played with DOJO
New EA library
Addede CEDA_Process to the migration

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.geometric_primitive.gm_curvesegment import  GM_CurveSegment
22from ascore.utils import has_value
23
24'''
25Created on 14-Feb-2012 17:19:35
26
27@author: mnagni
28'''
29
30class GM_Clothoid(GM_CurveSegment):
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_curvesegment = GM_CurveSegment()       
43
44        self.endParameter = None
45        self.startParameter = None
46        self.numDerivativesAtEnd = None
47        self.curve = None
48        self.interpolation = None
49        self.numDerivativesAtStart = None
50        self.numDerivativeInterior = None
51        self.refLocation = None
52        self.scaleFactor = None
53        super(GM_Clothoid, self).__init__()
54
55    @property
56    def numDerivativesAtEnd(self):     
57        return self._gm_curvesegment.numDerivativesAtEnd
58
59    @numDerivativesAtEnd.setter
60    def numDerivativesAtEnd(self, value):       
61            self._gm_curvesegment.numDerivativesAtEnd = value
62
63    @property
64    def curve(self):   
65        return self._gm_curvesegment.curve
66
67    @curve.setter
68    def curve(self, value):     
69            self._gm_curvesegment.curve = value
70
71    @property
72    def interpolation(self):   
73        return self._gm_curvesegment.interpolation
74
75    @interpolation.setter
76    def interpolation(self, value):     
77            self._gm_curvesegment.interpolation = value
78
79    @property
80    def numDerivativesAtStart(self):   
81        return self._gm_curvesegment.numDerivativesAtStart
82
83    @numDerivativesAtStart.setter
84    def numDerivativesAtStart(self, value):     
85            self._gm_curvesegment.numDerivativesAtStart = value
86
87    @property
88    def numDerivativeInterior(self):   
89        return self._gm_curvesegment.numDerivativeInterior
90
91    @numDerivativeInterior.setter
92    def numDerivativeInterior(self, value):     
93            self._gm_curvesegment.numDerivativeInterior = value
94
95    def __key(self):
96        return (self.endParameter, self.startParameter, self.numDerivativesAtEnd, self.curve, self.interpolation, self.numDerivativesAtStart, self.numDerivativeInterior, self.refLocation, self.scaleFactor)
97
98    def __eq__(self, y):
99        '''
100        Cannot compare classes which do not define a "__key" attribute
101        '''
102        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
103            return self.__key() == y.__key()
104        return id(self) == id(y)
105
106    def __hash__(self):
107        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.