source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/topology/topological_primitive/tp_directednode.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/topology/topological_primitive/tp_directednode.py@8091
Revision 8091, 4.0 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.topology.topological_primitive.tp_directedtopo import  TP_DirectedTopo
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:10
26
27@author: mnagni
28'''
29
30class TP_DirectedNode(TP_DirectedTopo):
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._tp_directedtopo = TP_DirectedTopo()       
43
44        self._isolated_tp_directedtopo = []
45        self._isolated_tp_edge = []
46        self._isolated_tp_node = []
47        self._isolated_tp_solid = []
48        self._isolated_tp_face = []
49        self._topo_tp_directedtopo = None
50        self._topo_tp_edge = None
51        self._topo_tp_node = None
52        self._topo_tp_solid = None
53        self._topo_tp_face = None
54        self.topo = None
55        self.maximalComplex = None
56        self.orientation = None
57        self._proxy_tp_directedface = None
58        self._proxy_tp_directednode = None
59        self._proxy_tp_directedsolid = None
60        self._proxy_tp_directededge = None
61        self._geometry_gm_orientableprimitive = None
62        self._geometry_gm_point = None
63        self._geometry_gm_solid = None
64        self.complex = []
65        self.primitive = []
66        self._container_tp_directedtopo = None
67        self._container_tp_edge = None
68        self._container_tp_node = None
69        self._container_tp_solid = None
70        self._container_tp_face = None
71        self.term = []
72        super(TP_DirectedNode, self).__init__()
73
74    @property
75    def isolated(self): 
76        return self._tp_directedtopo.isolated
77
78    @isolated.setter
79    def isolated(self, value): 
80            self._tp_directedtopo.isolated = value
81
82    @property
83    def topo(self):     
84        return self._tp_directedtopo.topo
85
86    @topo.setter
87    def topo(self, value):     
88            self._tp_directedtopo.topo = value
89
90    @property
91    def maximalComplex(self):   
92        return self._tp_directedtopo.maximalComplex
93
94    @maximalComplex.setter
95    def maximalComplex(self, value):   
96            self._tp_directedtopo.maximalComplex = value
97
98    @property
99    def orientation(self):     
100        return self._tp_directedtopo.orientation
101
102    @orientation.setter
103    def orientation(self, value):       
104            self._tp_directedtopo.orientation = value
105
106    @property
107    def proxy(self):   
108        return self._tp_directedtopo.proxy
109
110    @proxy.setter
111    def proxy(self, value):     
112            self._tp_directedtopo.proxy = value
113
114    @property
115    def geometry(self): 
116        return self._tp_directedtopo.geometry
117
118    @geometry.setter
119    def geometry(self, value): 
120            self._tp_directedtopo.geometry = value
121
122    @property
123    def complex(self): 
124        return self._tp_directedtopo.complex
125
126    @complex.setter
127    def complex(self, value):   
128            self._tp_directedtopo.complex = value
129
130    @property
131    def container(self):       
132        return self._tp_directedtopo.container
133
134    @container.setter
135    def container(self, value): 
136            self._tp_directedtopo.container = value
137
138    @property
139    def term(self):     
140        return self._tp_directedtopo.term
141
142    @term.setter
143    def term(self, value):     
144            self._tp_directedtopo.term = value
145
146    def __key(self):
147        return (self.isolated, self.topo, self.topo, self.maximalComplex, self.orientation, self.proxy, self.geometry, self.complex, self.primitive, self.container, self.term)
148
149    def __eq__(self, y):
150        '''
151        Cannot compare classes which do not define a "__key" attribute
152        '''
153        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
154            return self.__key() == y.__key()
155        return id(self) == id(y)
156
157    def __hash__(self):
158        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.