Package com.powsybl.security.action
Class LineConnectionAction
- java.lang.Object
-
- com.powsybl.security.action.AbstractAction
-
- com.powsybl.security.action.LineConnectionAction
-
- All Implemented Interfaces:
Action
public class LineConnectionAction extends AbstractAction
An action opening or closing one side or both sides of a line.- Author:
- Anne Tilloy
-
-
Constructor Summary
Constructors Constructor Description LineConnectionAction(String id, String lineId, boolean open)
LineConnectionAction(String id, String lineId, boolean openSide1, boolean openSide2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLineId()
String
getType()
boolean
isOpenSide1()
Iftrue
, applying the action will open the terminal 1 of the line, else it will close it.boolean
isOpenSide2()
Iftrue
, applying the action will open the terminal 2 of the line, else it will close it.-
Methods inherited from class com.powsybl.security.action.AbstractAction
getId
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
-
getLineId
public String getLineId()
-
isOpenSide1
public boolean isOpenSide1()
Iftrue
, applying the action will open the terminal 1 of the line, else it will close it.
-
isOpenSide2
public boolean isOpenSide2()
Iftrue
, applying the action will open the terminal 2 of the line, else it will close it.
-
-