source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/topology/topological_primitive/tp_face.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_face.py@8091
Revision 8091, 4.8 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_primitive import  TP_Primitive
22from ea_model.iso_19107_2003_spatial_schema.topology.topological_primitive.tp_directedface import  TP_DirectedFace
23from ascore.utils import has_value
24
25'''
26Created on 16-Feb-2012 16:18:01
27
28@author: mnagni
29'''
30
31class TP_Face(TP_DirectedFace,TP_Primitive):
32    '''
33        Represents a data entity defined in a UML diagram and supposed to
34        be persisted in a relational database.
35 
36        This class has been genererated automatically using the Apache Velocity project.
37    '''
38    '''
39        Please note that any access to the inner attributes should be done using
40        the given get/set methods and NOT accessing them directly.
41    '''
42    def __init__(self):
43        self._tp_directedface = TP_DirectedFace()       
44        self._tp_primitive = TP_Primitive()     
45
46        self.topo = None
47        self._topo_tp_directedtopo = None
48        self._topo_tp_edge = None
49        self._topo_tp_node = None
50        self._topo_tp_solid = None
51        self._topo_tp_face = None
52        self.maximalComplex = None
53        self.orientation = None
54        self.spoke = []
55        self.hub = []
56        self._isolated_tp_directedtopo = []
57        self._isolated_tp_edge = []
58        self._isolated_tp_node = []
59        self._isolated_tp_solid = []
60        self._isolated_tp_face = []
61        self.proxy = None
62        self._proxy_tp_directedface = None
63        self._proxy_tp_directednode = None
64        self._proxy_tp_directedsolid = None
65        self._proxy_tp_directededge = None
66        self._geometry_gm_orientableprimitive = None
67        self._geometry_gm_point = None
68        self._geometry_gm_solid = None
69        self.primitive = []
70        self.complex = []
71        self._container_tp_directedtopo = None
72        self._container_tp_edge = None
73        self._container_tp_node = None
74        self._container_tp_solid = None
75        self._container_tp_face = None
76        self.boundary = []
77        self.term = []
78        super(TP_Face, self).__init__()
79
80    @property
81    def topo(self):     
82        return self._tp_directedface.topo
83
84    @topo.setter
85    def topo(self, value):     
86            self._tp_directedface.topo = value
87
88    @property
89    def topo(self):     
90        return self._tp_directedface.topo
91
92    @topo.setter
93    def topo(self, value):     
94            self._tp_directedface.topo = value
95
96    @property
97    def maximalComplex(self):   
98        return self._tp_directedface.maximalComplex
99
100    @maximalComplex.setter
101    def maximalComplex(self, value):   
102            self._tp_directedface.maximalComplex = value
103
104    @property
105    def orientation(self):     
106        return self._tp_directedface.orientation
107
108    @orientation.setter
109    def orientation(self, value):       
110            self._tp_directedface.orientation = value
111
112    @property
113    def hub(self):     
114        return self._tp_directedface.hub
115
116    @hub.setter
117    def hub(self, value):       
118            self._tp_directedface.hub = value
119
120    @property
121    def isolated(self): 
122        return self._tp_directedface.isolated
123
124    @isolated.setter
125    def isolated(self, value): 
126            self._tp_directedface.isolated = value
127
128    @property
129    def proxy(self):   
130        return self._tp_directedface.proxy
131
132    @proxy.setter
133    def proxy(self, value):     
134            self._tp_directedface.proxy = value
135
136    @property
137    def geometry(self): 
138        return self._tp_directedface.geometry
139
140    @geometry.setter
141    def geometry(self, value): 
142            self._tp_directedface.geometry = value
143
144    @property
145    def primitive(self):       
146        return self._tp_directedface.primitive
147
148    @primitive.setter
149    def primitive(self, value): 
150            self._tp_directedface.primitive = value
151
152    @property
153    def complex(self): 
154        return self._tp_directedface.complex
155
156    @complex.setter
157    def complex(self, value):   
158            self._tp_directedface.complex = value
159
160    @property
161    def container(self):       
162        return self._tp_directedface.container
163
164    @container.setter
165    def container(self, value): 
166            self._tp_directedface.container = value
167
168    @property
169    def term(self):     
170        return self._tp_directedface.term
171
172    @term.setter
173    def term(self, value):     
174            self._tp_directedface.term = value
175
176    def __key(self):
177        return (self.topo, self.topo, self.maximalComplex, self.orientation, self.spoke, self.hub, self.isolated, self.proxy, self.proxy, self.geometry, self.primitive, self.complex, self.container, self.boundary, self.term)
178
179    def __eq__(self, y):
180        '''
181        Cannot compare classes which do not define a "__key" attribute
182        '''
183        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
184            return self.__key() == y.__key()
185        return id(self) == id(y)
186
187    def __hash__(self):
188        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.