#
source:
mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/geometric_primitive/gm_solid.py
@
8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/geometric_primitive/gm_solid.py@8091
Revision 8091, 3.5 KB checked in by mnagni, 8 years ago (diff) |
---|

Line | |
---|---|

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.geometric_primitive.gm_primitive import GM_Primitive |

22 | from ascore.utils import has_value |

23 | |

24 | ''' |

25 | Created on 16-Feb-2012 16:18:06 |

26 | |

27 | @author: mnagni |

28 | ''' |

29 | |

30 | class GM_Solid(GM_Primitive): |

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_primitive = GM_Primitive() |

43 | |

44 | self._topology_tp_directedtopo = [] |

45 | self._topology_tp_edge = [] |

46 | self._topology_tp_node = [] |

47 | self._topology_tp_solid = [] |

48 | self._topology_tp_face = [] |

49 | self._containedPrimitive_gm_orientableprimitive = [] |

50 | self._containedPrimitive_gm_point = [] |

51 | self._containedPrimitive_gm_solid = [] |

52 | self._composite_gm_compositecurve = [] |

53 | self._composite_gm_compositesolid = [] |

54 | self._composite_gm_compositesurface = [] |

55 | self._composite_gm_compositepoint = [] |

56 | self.composite = [] |

57 | self._CRS_sc_singlecrs = None |

58 | self._CRS_sc_compoundcrs = None |

59 | self._proxy_gm_orientablesurface = None |

60 | self._proxy_gm_orientablecurve = None |

61 | self._containingPrimitive_gm_orientableprimitive = [] |

62 | self._containingPrimitive_gm_point = [] |

63 | self._containingPrimitive_gm_solid = [] |

64 | self.complex = [] |

65 | super(GM_Solid, self).__init__() |

66 | |

67 | @property |

68 | def topology(self): |

69 | return self._gm_primitive.topology |

70 | |

71 | @topology.setter |

72 | def topology(self, value): |

73 | self._gm_primitive.topology = value |

74 | |

75 | @property |

76 | def containedPrimitive(self): |

77 | return self._gm_primitive.containedPrimitive |

78 | |

79 | @containedPrimitive.setter |

80 | def containedPrimitive(self, value): |

81 | self._gm_primitive.containedPrimitive = value |

82 | |

83 | @property |

84 | def composite(self): |

85 | return self._gm_primitive.composite |

86 | |

87 | @composite.setter |

88 | def composite(self, value): |

89 | self._gm_primitive.composite = value |

90 | |

91 | @property |

92 | def CRS(self): |

93 | return self._gm_primitive.CRS |

94 | |

95 | @CRS.setter |

96 | def CRS(self, value): |

97 | self._gm_primitive.CRS = value |

98 | |

99 | @property |

100 | def proxy(self): |

101 | return self._gm_primitive.proxy |

102 | |

103 | @proxy.setter |

104 | def proxy(self, value): |

105 | self._gm_primitive.proxy = value |

106 | |

107 | @property |

108 | def containingPrimitive(self): |

109 | return self._gm_primitive.containingPrimitive |

110 | |

111 | @containingPrimitive.setter |

112 | def containingPrimitive(self, value): |

113 | self._gm_primitive.containingPrimitive = value |

114 | |

115 | @property |

116 | def complex(self): |

117 | return self._gm_primitive.complex |

118 | |

119 | @complex.setter |

120 | def complex(self, value): |

121 | self._gm_primitive.complex = value |

122 | |

123 | def __key(self): |

124 | return (self.topology, self.containedPrimitive, self.composite, self.composite, self.CRS, self.proxy, self.containingPrimitive, self.complex) |

125 | |

126 | def __eq__(self, y): |

127 | ''' |

128 | Cannot compare classes which do not define a "__key" attribute |

129 | ''' |

130 | if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): |

131 | return self.__key() == y.__key() |

132 | return id(self) == id(y) |

133 | |

134 | def __hash__(self): |

135 | return hash(self.__key()) |

**Note:**See TracBrowser for help on using the repository browser.