public interface Switch extends Identifiable<Switch>
Modifier and Type | Method and Description |
---|---|
SwitchKind |
getKind()
Get the kind of switch.
|
VoltageLevel |
getVoltageLevel()
Get the parent voltage level.
|
boolean |
isFictitious()
Get the fictitious status of the switch
|
boolean |
isOpen()
Get the open status of the switch.
|
boolean |
isRetained()
Get the retain status of the switch.
|
void |
setFictitious(boolean fictitious)
Set the fictitious status of the switch
|
void |
setOpen(boolean open)
Change the switch status.
|
void |
setRetained(boolean retained)
Change the retain status of the switch.
|
getId, getName, getProperties, hasProperty
addExtension, getExtension, getExtensionByName, getExtensions, removeExtension
VoltageLevel getVoltageLevel()
SwitchKind getKind()
boolean isOpen()
Depends on the working variant.
VariantManager
void setOpen(boolean open)
Depends on the working variant.
open
- the new switch statusVariantManager
boolean isRetained()
void setRetained(boolean retained)
retained
- the retain status of the switchboolean isFictitious()
void setFictitious(boolean fictitious)