Class SetValveOpeningAction

java.lang.Object
neqsim.process.logic.action.SetValveOpeningAction
All Implemented Interfaces:
LogicAction

public class SetValveOpeningAction extends Object implements LogicAction
Action to set valve opening percentage.
Version:
1.0
Author:
ESOL
  • Field Details

    • valve

      private final ThrottlingValve valve
    • targetOpening

      private final double targetOpening
    • executed

      private boolean executed
  • Constructor Details

    • SetValveOpeningAction

      public SetValveOpeningAction(ThrottlingValve valve, double targetOpening)
      Creates a set valve opening action.
      Parameters:
      valve - valve to control
      targetOpening - target opening percentage (0-100)
  • Method Details

    • execute

      public void execute()
      Description copied from interface: LogicAction
      Executes the action.

      This method performs the actual operation on the target equipment.

      Specified by:
      execute in interface LogicAction
    • getDescription

      public String getDescription()
      Description copied from interface: LogicAction
      Gets a human-readable description of the action.
      Specified by:
      getDescription in interface LogicAction
      Returns:
      action description
    • isComplete

      public boolean isComplete()
      Description copied from interface: LogicAction
      Checks if the action has completed.

      Some actions are instantaneous (return true immediately), while others may take time to complete (e.g., valve stroke).

      Specified by:
      isComplete in interface LogicAction
      Returns:
      true if action is complete
    • getTargetName

      public String getTargetName()
      Description copied from interface: LogicAction
      Gets the name of the target equipment.
      Specified by:
      getTargetName in interface LogicAction
      Returns:
      equipment name
    • getTargetOpening

      public double getTargetOpening()
      Gets the target opening percentage.
      Returns:
      target opening (0-100)