Implementing RDF/XML serialisation using meta-data attributes.
[PyCIM.git] / schemata / CIM14 / Dynamics / Loads / LoadStatic.py
blob5d34663fa5b872000c1aacf0e94104a75ae57010
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.Dynamics.Loads.AggregateLoad import AggregateLoad
19 class LoadStatic(AggregateLoad):
20 """General Static Load Model. A static load model represents the sensitivity of the real and reactive power consumed by the load to the amplitude and frequency of the bus voltage.
21 """
23 def __init__(self, staticLoadType="ZIP1", ep1=0.0, kp3=0.0, eq3=0.0, kp2=0.0, eq2=0.0, kqf=0.0, kq4=0.0, kq2=0.0, kp1=0.0, ep2=0.0, eq1=0.0, kpf=0.0, kp4=0.0, kq3=0.0, ep3=0.0, kq1=0.0, *args, **kw_args):
24 """Initialises a new 'LoadStatic' instance.
26 @param staticLoadType: Type of static load model Values are: "ZIP1", "exponential", "ZIP2"
27 @param ep1:
28 @param kp3:
29 @param eq3:
30 @param kp2:
31 @param eq2:
32 @param kqf:
33 @param kq4:
34 @param kq2:
35 @param kp1:
36 @param ep2:
37 @param eq1:
38 @param kpf:
39 @param kp4:
40 @param kq3:
41 @param ep3:
42 @param kq1:
43 """
44 #: Type of static load model Values are: "ZIP1", "exponential", "ZIP2"
45 self.staticLoadType = staticLoadType
48 self.ep1 = ep1
51 self.kp3 = kp3
54 self.eq3 = eq3
57 self.kp2 = kp2
60 self.eq2 = eq2
63 self.kqf = kqf
66 self.kq4 = kq4
69 self.kq2 = kq2
72 self.kp1 = kp1
75 self.ep2 = ep2
78 self.eq1 = eq1
81 self.kpf = kpf
84 self.kp4 = kp4
87 self.kq3 = kq3
90 self.ep3 = ep3
93 self.kq1 = kq1
95 super(LoadStatic, self).__init__(*args, **kw_args)
97 _attrs = ["staticLoadType", "ep1", "kp3", "eq3", "kp2", "eq2", "kqf", "kq4", "kq2", "kp1", "ep2", "eq1", "kpf", "kp4", "kq3", "ep3", "kq1"]
98 _attr_types = {"staticLoadType": str, "ep1": float, "kp3": float, "eq3": float, "kp2": float, "eq2": float, "kqf": float, "kq4": float, "kq2": float, "kp1": float, "ep2": float, "eq1": float, "kpf": float, "kp4": float, "kq3": float, "ep3": float, "kq1": float}
99 _defaults = {"staticLoadType": "ZIP1", "ep1": 0.0, "kp3": 0.0, "eq3": 0.0, "kp2": 0.0, "eq2": 0.0, "kqf": 0.0, "kq4": 0.0, "kq2": 0.0, "kp1": 0.0, "ep2": 0.0, "eq1": 0.0, "kpf": 0.0, "kp4": 0.0, "kq3": 0.0, "ep3": 0.0, "kq1": 0.0}
100 _enums = {"staticLoadType": "StaticLoadType"}
101 _refs = []
102 _many_refs = []