37 Bool closed =
false) {
AttributePointer< Attribute< T > > Ptr
std::shared_ptr< AttributeList > Ptr
void close()
Close switch.
const Attribute< Real >::Ptr mClosedResistance
Resistance if switch is closed [ohm].
Switch(CPS::AttributeList::Ptr attributeList)
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.
void setParameters(Real openResistance, Real closedResistance, Bool closed=false)