Class SequentialFunctionChart.SfcStep

java.lang.Object
neqsim.process.controllerdevice.SequentialFunctionChart.SfcStep
All Implemented Interfaces:
Serializable
Enclosing class:
SequentialFunctionChart

public static class SequentialFunctionChart.SfcStep extends Object implements Serializable
A step in the Sequential Function Chart. Each step has a name and optional entry, active, and exit actions following IEC 61131-3 conventions.
Version:
1.0
Author:
NeqSim
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • name

      private final String name
    • entryAction

      private transient Runnable entryAction
    • activeAction

      private transient Runnable activeAction
    • exitAction

      private transient Runnable exitAction
  • Constructor Details

    • SfcStep

      public SfcStep(String name)
      Constructs a step with the given name.
      Parameters:
      name - the step name
  • Method Details

    • getName

      public String getName()
      Gets the step name.
      Returns:
      the name
    • setEntryAction

      public void setEntryAction(Runnable action)
      Sets the entry action executed once when transitioning into this step.
      Parameters:
      action - the entry action
    • getEntryAction

      public Runnable getEntryAction()
      Gets the entry action.
      Returns:
      the entry action or null
    • setActiveAction

      public void setActiveAction(Runnable action)
      Sets the active action executed every timestep while this step is active.
      Parameters:
      action - the active action
    • getActiveAction

      public Runnable getActiveAction()
      Gets the active action.
      Returns:
      the active action or null
    • setExitAction

      public void setExitAction(Runnable action)
      Sets the exit action executed once when leaving this step.
      Parameters:
      action - the exit action
    • getExitAction

      public Runnable getExitAction()
      Gets the exit action.
      Returns:
      the exit action or null