Fixing website and API documentation links
[PyCIM.git] / CIM14 / IEC61970 / Dynamics / MetaBlockParameterReference.py
blob2d011ed733f53d9c69a4c7ea81effedffeb06ef6
1 # Copyright (C) 2010-2011 Richard Lincoln
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to
5 # deal in the Software without restriction, including without limitation the
6 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 # sell copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 # IN THE SOFTWARE.
21 from CIM14.IEC61970.Core.IdentifiedObject import IdentifiedObject
23 class MetaBlockParameterReference(IdentifiedObject):
24 """References a parameter of a block used in the internal representation of a block.
25 """
27 def __init__(self, StandardControlBlock_MetaBlockConnectable=None, MetaBlockConnectable=None, MemberOf_MetaBlockReference=None, *args, **kw_args):
28 """Initialises a new 'MetaBlockParameterReference' instance.
30 @param StandardControlBlock_MetaBlockConnectable:
31 @param MetaBlockConnectable:
32 @param MemberOf_MetaBlockReference:
33 """
34 self._StandardControlBlock_MetaBlockConnectable = None
35 self.StandardControlBlock_MetaBlockConnectable = StandardControlBlock_MetaBlockConnectable
37 self._MetaBlockConnectable = None
38 self.MetaBlockConnectable = MetaBlockConnectable
40 self._MemberOf_MetaBlockReference = None
41 self.MemberOf_MetaBlockReference = MemberOf_MetaBlockReference
43 super(MetaBlockParameterReference, self).__init__(*args, **kw_args)
45 _attrs = []
46 _attr_types = {}
47 _defaults = {}
48 _enums = {}
49 _refs = ["StandardControlBlock_MetaBlockConnectable", "MetaBlockConnectable", "MemberOf_MetaBlockReference"]
50 _many_refs = []
52 def getStandardControlBlock_MetaBlockConnectable(self):
54 return self._StandardControlBlock_MetaBlockConnectable
56 def setStandardControlBlock_MetaBlockConnectable(self, value):
57 if self._StandardControlBlock_MetaBlockConnectable is not None:
58 filtered = [x for x in self.StandardControlBlock_MetaBlockConnectable.StandardControlBlock_MetaBlockParameterReference if x != self]
59 self._StandardControlBlock_MetaBlockConnectable._StandardControlBlock_MetaBlockParameterReference = filtered
61 self._StandardControlBlock_MetaBlockConnectable = value
62 if self._StandardControlBlock_MetaBlockConnectable is not None:
63 if self not in self._StandardControlBlock_MetaBlockConnectable._StandardControlBlock_MetaBlockParameterReference:
64 self._StandardControlBlock_MetaBlockConnectable._StandardControlBlock_MetaBlockParameterReference.append(self)
66 StandardControlBlock_MetaBlockConnectable = property(getStandardControlBlock_MetaBlockConnectable, setStandardControlBlock_MetaBlockConnectable)
68 def getMetaBlockConnectable(self):
70 return self._MetaBlockConnectable
72 def setMetaBlockConnectable(self, value):
73 if self._MetaBlockConnectable is not None:
74 filtered = [x for x in self.MetaBlockConnectable.MetaBlockParameterReference if x != self]
75 self._MetaBlockConnectable._MetaBlockParameterReference = filtered
77 self._MetaBlockConnectable = value
78 if self._MetaBlockConnectable is not None:
79 if self not in self._MetaBlockConnectable._MetaBlockParameterReference:
80 self._MetaBlockConnectable._MetaBlockParameterReference.append(self)
82 MetaBlockConnectable = property(getMetaBlockConnectable, setMetaBlockConnectable)
84 def getMemberOf_MetaBlockReference(self):
86 return self._MemberOf_MetaBlockReference
88 def setMemberOf_MetaBlockReference(self, value):
89 if self._MemberOf_MetaBlockReference is not None:
90 filtered = [x for x in self.MemberOf_MetaBlockReference.MetaBlockParameterReference if x != self]
91 self._MemberOf_MetaBlockReference._MetaBlockParameterReference = filtered
93 self._MemberOf_MetaBlockReference = value
94 if self._MemberOf_MetaBlockReference is not None:
95 if self not in self._MemberOf_MetaBlockReference._MetaBlockParameterReference:
96 self._MemberOf_MetaBlockReference._MetaBlockParameterReference.append(self)
98 MemberOf_MetaBlockReference = property(getMemberOf_MetaBlockReference, setMemberOf_MetaBlockReference)