Adding class meta-data attributes.
[PyCIM.git] / schemata / CIM14 / Dynamics / BlockOutputType.py
blob79289bf37448791f1f69ae41fae17332ac4d48c8
1 # Copyright (C) 2010 Richard Lincoln
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, USA
17 from CIM14.IEC61970.Core.IdentifiedObject import IdentifiedObject
19 class BlockOutputType(IdentifiedObject):
21 def __init__(self, metaBlockOutput0=None, slotOutput0=None, *args, **kw_args):
22 """Initialises a new 'BlockOutputType' instance.
24 @param metaBlockOutput0:
25 @param slotOutput0:
26 """
27 self._metaBlockOutput0 = []
28 self.metaBlockOutput0 = [] if metaBlockOutput0 is None else metaBlockOutput0
30 self._slotOutput0 = []
31 self.slotOutput0 = [] if slotOutput0 is None else slotOutput0
33 super(BlockOutputType, self).__init__(*args, **kw_args)
35 _attrs = []
36 _attr_types = {}
37 _defaults = {}
38 _enums = {}
39 _refs = ["metaBlockOutput0", "slotOutput0"]
40 _many_refs = ["metaBlockOutput0", "slotOutput0"]
42 def getmetaBlockOutput0(self):
44 return self._metaBlockOutput0
46 def setmetaBlockOutput0(self, value):
47 for x in self._metaBlockOutput0:
48 x._blockOutputType0 = None
49 for y in value:
50 y._blockOutputType0 = self
51 self._metaBlockOutput0 = value
53 metaBlockOutput0 = property(getmetaBlockOutput0, setmetaBlockOutput0)
55 def addmetaBlockOutput0(self, *metaBlockOutput0):
56 for obj in metaBlockOutput0:
57 obj._blockOutputType0 = self
58 self._metaBlockOutput0.append(obj)
60 def removemetaBlockOutput0(self, *metaBlockOutput0):
61 for obj in metaBlockOutput0:
62 obj._blockOutputType0 = None
63 self._metaBlockOutput0.remove(obj)
65 def getslotOutput0(self):
67 return self._slotOutput0
69 def setslotOutput0(self, value):
70 for x in self._slotOutput0:
71 x._blockOutputType0 = None
72 for y in value:
73 y._blockOutputType0 = self
74 self._slotOutput0 = value
76 slotOutput0 = property(getslotOutput0, setslotOutput0)
78 def addslotOutput0(self, *slotOutput0):
79 for obj in slotOutput0:
80 obj._blockOutputType0 = self
81 self._slotOutput0.append(obj)
83 def removeslotOutput0(self, *slotOutput0):
84 for obj in slotOutput0:
85 obj._blockOutputType0 = None
86 self._slotOutput0.remove(obj)