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
21 from CIM14
.ENTSOE
.Dynamics
.Element
import Element
25 def __init__(self
, ScheduleSteps
=None, synchronousGeneratorType
=None, tpqo
=None, ElectricalAssets
=None, SafetyDocuments
=None, ratedS
=None, tppdo
=None, tpdo
=None, ChangeItems
=None, ErpOrganisationRoles
=None, CircuitSections
=None, tppqo
=None, DocumentRoles
=None, PSREvent
=None, OutageStepRoles
=None, NetworkDataSets
=None, *args
, **kw_args
):
26 """Initialises a new 'Thing' instance.
29 @param synchronousGeneratorType:
31 @param ElectricalAssets:
32 @param EAID_4B45E775_795A_4030_865F_0AB320000DDD-B:
33 @param SafetyDocuments:
38 @param ErpOrganisationRoles:
39 @param CircuitSections:
43 @param OutageStepRoles:
44 @param NetworkDataSets:
46 self
.ScheduleSteps
= [] if ScheduleSteps
is None else ScheduleSteps
48 self
.synchronousGeneratorType
= [] if synchronousGeneratorType
is None else synchronousGeneratorType
50 self
.tpqo
= [] if tpqo
is None else tpqo
52 self
.ElectricalAssets
= [] if ElectricalAssets
is None else ElectricalAssets
54 self
.SafetyDocuments
= [] if SafetyDocuments
is None else SafetyDocuments
56 self
.ratedS
= [] if ratedS
is None else ratedS
58 self
.tppdo
= [] if tppdo
is None else tppdo
60 self
.tpdo
= [] if tpdo
is None else tpdo
62 self
.ChangeItems
= [] if ChangeItems
is None else ChangeItems
64 self
.ErpOrganisationRoles
= [] if ErpOrganisationRoles
is None else ErpOrganisationRoles
66 self
.CircuitSections
= [] if CircuitSections
is None else CircuitSections
68 self
.tppqo
= [] if tppqo
is None else tppqo
70 self
.DocumentRoles
= [] if DocumentRoles
is None else DocumentRoles
72 self
.PSREvent
= [] if PSREvent
is None else PSREvent
74 self
.OutageStepRoles
= [] if OutageStepRoles
is None else OutageStepRoles
76 self
.NetworkDataSets
= [] if NetworkDataSets
is None else NetworkDataSets
78 super(Thing
, self
).__init
__(*args
, **kw_args
)
84 _refs
= ["ScheduleSteps", "synchronousGeneratorType", "tpqo", "ElectricalAssets", "EAID_4B45E775_795A_4030_865F_0AB320000DDD-B", "SafetyDocuments", "ratedS", "tppdo", "tpdo", "ChangeItems", "ErpOrganisationRoles", "CircuitSections", "tppqo", "DocumentRoles", "PSREvent", "OutageStepRoles", "NetworkDataSets"]
85 _many_refs
= ["ScheduleSteps", "synchronousGeneratorType", "tpqo", "ElectricalAssets", "EAID_4B45E775_795A_4030_865F_0AB320000DDD-B", "SafetyDocuments", "ratedS", "tppdo", "tpdo", "ChangeItems", "ErpOrganisationRoles", "CircuitSections", "tppqo", "DocumentRoles", "PSREvent", "OutageStepRoles", "NetworkDataSets"]
87 def add_ScheduleSteps(self
, *ScheduleSteps
):
88 for obj
in ScheduleSteps
:
89 self
.ScheduleSteps
.append(obj
)
91 def remove_ScheduleSteps(self
, *ScheduleSteps
):
92 for obj
in ScheduleSteps
:
93 self
.ScheduleSteps
.remove(obj
)
95 def add_synchronousGeneratorType(self
, *synchronousGeneratorType
):
96 for obj
in synchronousGeneratorType
:
97 self
.synchronousGeneratorType
.append(obj
)
99 def remove_synchronousGeneratorType(self
, *synchronousGeneratorType
):
100 for obj
in synchronousGeneratorType
:
101 self
.synchronousGeneratorType
.remove(obj
)
103 def add_tpqo(self
, *tpqo
):
105 self
.tpqo
.append(obj
)
107 def remove_tpqo(self
, *tpqo
):
109 self
.tpqo
.remove(obj
)
111 def add_ElectricalAssets(self
, *ElectricalAssets
):
112 for obj
in ElectricalAssets
:
113 self
.ElectricalAssets
.append(obj
)
115 def remove_ElectricalAssets(self
, *ElectricalAssets
):
116 for obj
in ElectricalAssets
:
117 self
.ElectricalAssets
.remove(obj
)
119 def add_SafetyDocuments(self
, *SafetyDocuments
):
120 for obj
in SafetyDocuments
:
121 self
.SafetyDocuments
.append(obj
)
123 def remove_SafetyDocuments(self
, *SafetyDocuments
):
124 for obj
in SafetyDocuments
:
125 self
.SafetyDocuments
.remove(obj
)
127 def add_ratedS(self
, *ratedS
):
129 self
.ratedS
.append(obj
)
131 def remove_ratedS(self
, *ratedS
):
133 self
.ratedS
.remove(obj
)
135 def add_tppdo(self
, *tppdo
):
137 self
.tppdo
.append(obj
)
139 def remove_tppdo(self
, *tppdo
):
141 self
.tppdo
.remove(obj
)
143 def add_tpdo(self
, *tpdo
):
145 self
.tpdo
.append(obj
)
147 def remove_tpdo(self
, *tpdo
):
149 self
.tpdo
.remove(obj
)
151 def add_ChangeItems(self
, *ChangeItems
):
152 for obj
in ChangeItems
:
153 self
.ChangeItems
.append(obj
)
155 def remove_ChangeItems(self
, *ChangeItems
):
156 for obj
in ChangeItems
:
157 self
.ChangeItems
.remove(obj
)
159 def add_ErpOrganisationRoles(self
, *ErpOrganisationRoles
):
160 for obj
in ErpOrganisationRoles
:
161 self
.ErpOrganisationRoles
.append(obj
)
163 def remove_ErpOrganisationRoles(self
, *ErpOrganisationRoles
):
164 for obj
in ErpOrganisationRoles
:
165 self
.ErpOrganisationRoles
.remove(obj
)
167 def add_CircuitSections(self
, *CircuitSections
):
168 for obj
in CircuitSections
:
169 self
.CircuitSections
.append(obj
)
171 def remove_CircuitSections(self
, *CircuitSections
):
172 for obj
in CircuitSections
:
173 self
.CircuitSections
.remove(obj
)
175 def add_tppqo(self
, *tppqo
):
177 self
.tppqo
.append(obj
)
179 def remove_tppqo(self
, *tppqo
):
181 self
.tppqo
.remove(obj
)
183 def add_DocumentRoles(self
, *DocumentRoles
):
184 for obj
in DocumentRoles
:
185 self
.DocumentRoles
.append(obj
)
187 def remove_DocumentRoles(self
, *DocumentRoles
):
188 for obj
in DocumentRoles
:
189 self
.DocumentRoles
.remove(obj
)
191 def add_PSREvent(self
, *PSREvent
):
193 self
.PSREvent
.append(obj
)
195 def remove_PSREvent(self
, *PSREvent
):
197 self
.PSREvent
.remove(obj
)
199 def add_OutageStepRoles(self
, *OutageStepRoles
):
200 for obj
in OutageStepRoles
:
201 self
.OutageStepRoles
.append(obj
)
203 def remove_OutageStepRoles(self
, *OutageStepRoles
):
204 for obj
in OutageStepRoles
:
205 self
.OutageStepRoles
.remove(obj
)
207 def add_NetworkDataSets(self
, *NetworkDataSets
):
208 for obj
in NetworkDataSets
:
209 self
.NetworkDataSets
.append(obj
)
211 def remove_NetworkDataSets(self
, *NetworkDataSets
):
212 for obj
in NetworkDataSets
:
213 self
.NetworkDataSets
.remove(obj
)