Adding class meta-data attributes.
[PyCIM.git] / schemata / CIM14 / IEC61970 / Wires / RatioVariationCurve.py
blobfc74440f8d7a9c107e59fcaba1fcdba593e8abb0
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.Curve import Curve
19 class RatioVariationCurve(Curve):
20 """A Ratio Variation Curve describes the change in tap ratio in relationship to tap step changes. The tap step is represented using the xValue and the ratio using y1value.
21 """
23 def __init__(self, RatioTapChanger=None, *args, **kw_args):
24 """Initialises a new 'RatioVariationCurve' instance.
26 @param RatioTapChanger: A RatioVariationCurve defines tap ratio changes for a RatioTapChanger.
27 """
28 self._RatioTapChanger = None
29 self.RatioTapChanger = RatioTapChanger
31 super(RatioVariationCurve, self).__init__(*args, **kw_args)
33 _attrs = []
34 _attr_types = {}
35 _defaults = {}
36 _enums = {}
37 _refs = ["RatioTapChanger"]
38 _many_refs = []
40 def getRatioTapChanger(self):
41 """A RatioVariationCurve defines tap ratio changes for a RatioTapChanger.
42 """
43 return self._RatioTapChanger
45 def setRatioTapChanger(self, value):
46 if self._RatioTapChanger is not None:
47 self._RatioTapChanger._RatioVariationCurve = None
49 self._RatioTapChanger = value
50 if self._RatioTapChanger is not None:
51 self._RatioTapChanger._RatioVariationCurve = self
53 RatioTapChanger = property(getRatioTapChanger, setRatioTapChanger)