Fixing website and API documentation links
[PyCIM.git] / CIM14 / IEC61970 / StateVariables / SvShuntCompensatorSections.py
blob2e7ef481a8099d6b370c85c5289f243028f51a7d
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.StateVariables.StateVariable import StateVariable
23 class SvShuntCompensatorSections(StateVariable):
24 """State variable for the number of sections in service for a shunt compensator.
25 """
27 def __init__(self, continuousSections=0.0, sections=0, ShuntCompensator=None, *args, **kw_args):
28 """Initialises a new 'SvShuntCompensatorSections' instance.
30 @param continuousSections: The number of sections in service as a continous variable.
31 @param sections: The number of sections in service.
32 @param ShuntCompensator: The shunt compensator for which the state applies.
33 """
34 #: The number of sections in service as a continous variable.
35 self.continuousSections = continuousSections
37 #: The number of sections in service.
38 self.sections = sections
40 self._ShuntCompensator = None
41 self.ShuntCompensator = ShuntCompensator
43 super(SvShuntCompensatorSections, self).__init__(*args, **kw_args)
45 _attrs = ["continuousSections", "sections"]
46 _attr_types = {"continuousSections": float, "sections": int}
47 _defaults = {"continuousSections": 0.0, "sections": 0}
48 _enums = {}
49 _refs = ["ShuntCompensator"]
50 _many_refs = []
52 def getShuntCompensator(self):
53 """The shunt compensator for which the state applies.
54 """
55 return self._ShuntCompensator
57 def setShuntCompensator(self, value):
58 if self._ShuntCompensator is not None:
59 self._ShuntCompensator._SvShuntCompensatorSections = None
61 self._ShuntCompensator = value
62 if self._ShuntCompensator is not None:
63 self._ShuntCompensator.SvShuntCompensatorSections = None
64 self._ShuntCompensator._SvShuntCompensatorSections = self
66 ShuntCompensator = property(getShuntCompensator, setShuntCompensator)