Implementing RDF/XML serialisation using meta-data attributes.
[PyCIM.git] / schemata / CIM14 / IEC61970 / Generation / GenerationDynamics / HeatRecoveryBoiler.py
blob4136ee4de83d826d7ea8e66234d484341aea7e69
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.Generation.GenerationDynamics.FossilSteamSupply import FossilSteamSupply
19 class HeatRecoveryBoiler(FossilSteamSupply):
20 """The heat recovery system associated with combustion turbines in order to produce steam for combined cycle plants
21 """
23 def __init__(self, steamSupplyRating2=0.0, CombustionTurbines=None, *args, **kw_args):
24 """Initialises a new 'HeatRecoveryBoiler' instance.
26 @param steamSupplyRating2: The steam supply rating in kilopounds per hour, if dual pressure boiler
27 @param CombustionTurbines: A combustion turbine may have a heat recovery boiler for making steam
28 """
29 #: The steam supply rating in kilopounds per hour, if dual pressure boiler
30 self.steamSupplyRating2 = steamSupplyRating2
32 self._CombustionTurbines = []
33 self.CombustionTurbines = [] if CombustionTurbines is None else CombustionTurbines
35 super(HeatRecoveryBoiler, self).__init__(*args, **kw_args)
37 _attrs = ["steamSupplyRating2"]
38 _attr_types = {"steamSupplyRating2": float}
39 _defaults = {"steamSupplyRating2": 0.0}
40 _enums = {}
41 _refs = ["CombustionTurbines"]
42 _many_refs = ["CombustionTurbines"]
44 def getCombustionTurbines(self):
45 """A combustion turbine may have a heat recovery boiler for making steam
46 """
47 return self._CombustionTurbines
49 def setCombustionTurbines(self, value):
50 for x in self._CombustionTurbines:
51 x._HeatRecoveryBoiler = None
52 for y in value:
53 y._HeatRecoveryBoiler = self
54 self._CombustionTurbines = value
56 CombustionTurbines = property(getCombustionTurbines, setCombustionTurbines)
58 def addCombustionTurbines(self, *CombustionTurbines):
59 for obj in CombustionTurbines:
60 obj._HeatRecoveryBoiler = self
61 self._CombustionTurbines.append(obj)
63 def removeCombustionTurbines(self, *CombustionTurbines):
64 for obj in CombustionTurbines:
65 obj._HeatRecoveryBoiler = None
66 self._CombustionTurbines.remove(obj)