source: mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/topology/topological_primitive/tp_directedface.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_directedface.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:11
26
27@author: mnagni
28'''
29
30class TP_DirectedFace(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.hub = []
58        self._proxy_tp_directedface = None
59        self._proxy_tp_directednode = None
60        self._proxy_tp_directedsolid = None
61        self._proxy_tp_directededge = None
62        self._geometry_gm_orientableprimitive = None
63        self._geometry_gm_point = None
64        self._geometry_gm_solid = None
65        self.complex = []
66        self.primitive = []
67        self._container_tp_directedtopo = None
68        self._container_tp_edge = None
69        self._container_tp_node = None
70        self._container_tp_solid = None
71        self._container_tp_face = None
72        self.term = []
73        super(TP_DirectedFace, self).__init__()
74
75    @property
76    def isolated(self): 
77        return self._tp_directedtopo.isolated
78
79    @isolated.setter
80    def isolated(self, value): 
81            self._tp_directedtopo.isolated = value
82
83    @property
84    def topo(self):     
85        return self._tp_directedtopo.topo
86
87    @topo.setter
88    def topo(self, value):     
89            self._tp_directedtopo.topo = value
90
91    @property
92    def maximalComplex(self):   
93        return self._tp_directedtopo.maximalComplex
94
95    @maximalComplex.setter
96    def maximalComplex(self, value):   
97            self._tp_directedtopo.maximalComplex = value
98
99    @property
100    def orientation(self):     
101        return self._tp_directedtopo.orientation
102
103    @orientation.setter
104    def orientation(self, value):       
105            self._tp_directedtopo.orientation = value
106
107    @property
108    def proxy(self):   
109        return self._tp_directedtopo.proxy
110
111    @proxy.setter
112    def proxy(self, value):     
113            self._tp_directedtopo.proxy = value
114
115    @property
116    def geometry(self): 
117        return self._tp_directedtopo.geometry
118
119    @geometry.setter
120    def geometry(self, value): 
121            self._tp_directedtopo.geometry = value
122
123    @property
124    def complex(self): 
125        return self._tp_directedtopo.complex
126
127    @complex.setter
128    def complex(self, value):   
129            self._tp_directedtopo.complex = value
130
131    @property
132    def container(self):       
133        return self._tp_directedtopo.container
134
135    @container.setter
136    def container(self, value): 
137            self._tp_directedtopo.container = value
138
139    @property
140    def term(self):     
141        return self._tp_directedtopo.term
142
143    @term.setter
144    def term(self, value):     
145            self._tp_directedtopo.term = value
146
147    def __key(self):
148        return (self.isolated, self.topo, self.topo, self.maximalComplex, self.orientation, self.hub, self.proxy, self.geometry, self.complex, self.primitive, self.container, self.term)
149
150    def __eq__(self, y):
151        '''
152        Cannot compare classes which do not define a "__key" attribute
153        '''
154        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
155            return self.__key() == y.__key()
156        return id(self) == id(y)
157
158    def __hash__(self):
159        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.