Class 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 Detail

      • LineConnectionAction

        public LineConnectionAction​(String id,
                                    String lineId,
                                    boolean openSide1,
                                    boolean openSide2)
      • LineConnectionAction

        public LineConnectionAction​(String id,
                                    String lineId,
                                    boolean open)
    • Method Detail

      • getType

        public String getType()
      • getLineId

        public String getLineId()
      • isOpenSide1

        public boolean isOpenSide1()
        If true, applying the action will open the terminal 1 of the line, else it will close it.
      • isOpenSide2

        public boolean isOpenSide2()
        If true, applying the action will open the terminal 2 of the line, else it will close it.