Adding class meta-data attributes.
[PyCIM.git] / schemata / CIM14 / IEC61970 / Generation / Production / StartMainFuelCurve.py
blob409b360c52110362c54ace78d1af38ca6141d0aa
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 StartMainFuelCurve(Curve):
20 """The quantity of main fuel (Y-axis) used to restart and repay the auxiliary power consumed versus the number of hours (X-axis) the unit was off line
21 """
23 def __init__(self, mainFuelType="lignite", StartupModel=None, *args, **kw_args):
24 """Initialises a new 'StartMainFuelCurve' instance.
26 @param mainFuelType: Type of main fuel Values are: "lignite", "coal", "oil", "gas"
27 @param StartupModel: The unit's startup model may have a startup main fuel curve
28 """
29 #: Type of main fuel Values are: "lignite", "coal", "oil", "gas"
30 self.mainFuelType = mainFuelType
32 self._StartupModel = None
33 self.StartupModel = StartupModel
35 super(StartMainFuelCurve, self).__init__(*args, **kw_args)
37 _attrs = ["mainFuelType"]
38 _attr_types = {"mainFuelType": str}
39 _defaults = {"mainFuelType": "lignite"}
40 _enums = {"mainFuelType": "FuelType"}
41 _refs = ["StartupModel"]
42 _many_refs = []
44 def getStartupModel(self):
45 """The unit's startup model may have a startup main fuel curve
46 """
47 return self._StartupModel
49 def setStartupModel(self, value):
50 if self._StartupModel is not None:
51 self._StartupModel._StartMainFuelCurve = None
53 self._StartupModel = value
54 if self._StartupModel is not None:
55 self._StartupModel._StartMainFuelCurve = self
57 StartupModel = property(getStartupModel, setStartupModel)