Package com.powsybl.action
Class TerminalsConnectionAction
java.lang.Object
com.powsybl.action.AbstractAction
com.powsybl.action.TerminalsConnectionAction
- All Implemented Interfaces:
Action
An action of opening or closing an equipment terminal(s).
- Author:
- Anne Tilloy <[email protected]>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTerminalsConnectionAction
(String id, String elementId, boolean open) TerminalsConnectionAction
(String id, String elementId, ThreeSides side, boolean open) -
Method Summary
Methods inherited from class com.powsybl.action.AbstractAction
getId
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TerminalsConnectionAction
- Parameters:
id
- the id of the action.elementId
- the id of the element which terminals are operated. The element can be any connectable, including a tie line by referring the terminal of an underlying dangling line.side
- the side of the element to operate in the action.open
- the status for the terminal to operate.true
means terminal opening.
-
TerminalsConnectionAction
- Parameters:
id
- the id of the action.elementId
- the id of the element which terminals are operated. The element can be any connectable, including a tie line by referring the terminal of an underlying dangling line.open
- the status for all the terminals of the element to operate.true
means all terminals opening.
-
-
Method Details
-
getType
-
getElementId
- Returns:
- the element id.
-
getSide
The side is optional. Empty means that all the terminals of the element will be operated in the action with the defined open or close status.- Returns:
- the optional side of the connection/disconnection action.
-
isOpen
public boolean isOpen()Iftrue
, applying the action will open the terminal reference with side is given, else it will close it. If the side is not given, iftrue
, applying the action will open all the terminals of the element, else it will close them.
-