Fixing website and API documentation links
[PyCIM.git] / CIM14 / IEC61970 / Dynamics / MetaBlockInputReference.py
blobf6ff776b09c49017260415d744c5c77ce634119a
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 MetaBlockInputReference(IdentifiedObject):
25 def __init__(self, positiveFlowIn=False, StandardControlBlock_MetaBlockConnectable=None, MemberOf_MetaBlockReference=None, MetaBlockSignal=None, MetaBlockConnectable=None, *args, **kw_args):
26 """Initialises a new 'MetaBlockInputReference' instance.
28 @param positiveFlowIn: If true then any flows associated with a terminal are referenced as positive from the system into the device.
29 @param StandardControlBlock_MetaBlockConnectable:
30 @param MemberOf_MetaBlockReference:
31 @param MetaBlockSignal:
32 @param MetaBlockConnectable:
33 """
34 #: If true then any flows associated with a terminal are referenced as positive from the system into the device.
35 self.positiveFlowIn = positiveFlowIn
37 self._StandardControlBlock_MetaBlockConnectable = None
38 self.StandardControlBlock_MetaBlockConnectable = StandardControlBlock_MetaBlockConnectable
40 self._MemberOf_MetaBlockReference = None
41 self.MemberOf_MetaBlockReference = MemberOf_MetaBlockReference
43 self._MetaBlockSignal = None
44 self.MetaBlockSignal = MetaBlockSignal
46 self._MetaBlockConnectable = None
47 self.MetaBlockConnectable = MetaBlockConnectable
49 super(MetaBlockInputReference, self).__init__(*args, **kw_args)
51 _attrs = ["positiveFlowIn"]
52 _attr_types = {"positiveFlowIn": bool}
53 _defaults = {"positiveFlowIn": False}
54 _enums = {}
55 _refs = ["StandardControlBlock_MetaBlockConnectable", "MemberOf_MetaBlockReference", "MetaBlockSignal", "MetaBlockConnectable"]
56 _many_refs = []
58 def getStandardControlBlock_MetaBlockConnectable(self):
60 return self._StandardControlBlock_MetaBlockConnectable
62 def setStandardControlBlock_MetaBlockConnectable(self, value):
63 if self._StandardControlBlock_MetaBlockConnectable is not None:
64 filtered = [x for x in self.StandardControlBlock_MetaBlockConnectable.StandardControlBlock_MetaBlockInputReference if x != self]
65 self._StandardControlBlock_MetaBlockConnectable._StandardControlBlock_MetaBlockInputReference = filtered
67 self._StandardControlBlock_MetaBlockConnectable = value
68 if self._StandardControlBlock_MetaBlockConnectable is not None:
69 if self not in self._StandardControlBlock_MetaBlockConnectable._StandardControlBlock_MetaBlockInputReference:
70 self._StandardControlBlock_MetaBlockConnectable._StandardControlBlock_MetaBlockInputReference.append(self)
72 StandardControlBlock_MetaBlockConnectable = property(getStandardControlBlock_MetaBlockConnectable, setStandardControlBlock_MetaBlockConnectable)
74 def getMemberOf_MetaBlockReference(self):
76 return self._MemberOf_MetaBlockReference
78 def setMemberOf_MetaBlockReference(self, value):
79 if self._MemberOf_MetaBlockReference is not None:
80 filtered = [x for x in self.MemberOf_MetaBlockReference.MetaBlockInputReference if x != self]
81 self._MemberOf_MetaBlockReference._MetaBlockInputReference = filtered
83 self._MemberOf_MetaBlockReference = value
84 if self._MemberOf_MetaBlockReference is not None:
85 if self not in self._MemberOf_MetaBlockReference._MetaBlockInputReference:
86 self._MemberOf_MetaBlockReference._MetaBlockInputReference.append(self)
88 MemberOf_MetaBlockReference = property(getMemberOf_MetaBlockReference, setMemberOf_MetaBlockReference)
90 def getMetaBlockSignal(self):
92 return self._MetaBlockSignal
94 def setMetaBlockSignal(self, value):
95 if self._MetaBlockSignal is not None:
96 self._MetaBlockSignal._From = None
98 self._MetaBlockSignal = value
99 if self._MetaBlockSignal is not None:
100 self._MetaBlockSignal.From = None
101 self._MetaBlockSignal._From = self
103 MetaBlockSignal = property(getMetaBlockSignal, setMetaBlockSignal)
105 def getMetaBlockConnectable(self):
107 return self._MetaBlockConnectable
109 def setMetaBlockConnectable(self, value):
110 if self._MetaBlockConnectable is not None:
111 filtered = [x for x in self.MetaBlockConnectable.MetaBlockInputReference if x != self]
112 self._MetaBlockConnectable._MetaBlockInputReference = filtered
114 self._MetaBlockConnectable = value
115 if self._MetaBlockConnectable is not None:
116 if self not in self._MetaBlockConnectable._MetaBlockInputReference:
117 self._MetaBlockConnectable._MetaBlockInputReference.append(self)
119 MetaBlockConnectable = property(getMetaBlockConnectable, setMetaBlockConnectable)