11 #include <dpsim-models/AttributeList.h>
12 #include <dpsim-models/Definitions.h>
27 explicit Switch(CPS::AttributeList::Ptr attributeList)
30 mIsClosed(attributeList->create<Bool>(
"is_closed")){};
33 void setParameters(Real openResistance, Real closedResistance,
34 Bool closed =
false) {
Dynamic Phasor Three-Phase Switch.
void close()
Close switch.
const Attribute< Real >::Ptr mClosedResistance
Resistance if switch is closed [ohm].
Bool isClosed()
Check if switch is closed.
const Attribute< Real >::Ptr mOpenResistance
Resistance if switch is open [ohm].
const Attribute< Bool >::Ptr mIsClosed
Defines if Switch is open or closed.