Class EnergizeESDValveAction

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

public class EnergizeESDValveAction extends Object implements LogicAction
Action to energize an ESD valve and open it to a specified position.

This action is commonly used in blowdown sequences where an ESD valve needs to be energized (powered) and then opened to allow emergency depressurization through a flare system.

Usage example:

ESDValve blowdownValve = new ESDValve("BD-001", stream);
blowdownValve.deEnergize(); // Start closed for safety

ESDLogic esdLogic = new ESDLogic("Emergency Shutdown");
esdLogic.addAction(new EnergizeESDValveAction(blowdownValve, 100.0), 0.5);
Version:
1.0
Author:
ESOL
  • Field Details

    • valve

      private final ESDValve valve
    • targetOpening

      private final double targetOpening
    • executed

      private boolean executed
  • Constructor Details

    • EnergizeESDValveAction

      public EnergizeESDValveAction(ESDValve valve, double targetOpening)
      Creates an action to energize and open an ESD valve.
      Parameters:
      valve - The ESD valve to energize and open
      targetOpening - The target valve opening percentage (0-100)
    • EnergizeESDValveAction

      public EnergizeESDValveAction(ESDValve valve)
      Creates an action to energize and fully open an ESD valve.
      Parameters:
      valve - The ESD valve to energize and open
  • 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