Class CascadeControllerStructure

java.lang.Object
neqsim.process.controllerdevice.structure.CascadeControllerStructure
All Implemented Interfaces:
Serializable, ControlStructureInterface

public class CascadeControllerStructure extends Object implements ControlStructureInterface
Cascade control structure where a primary controller sets the set-point of a secondary controller. The output from the secondary controller becomes the final control signal applied to the process.
Author:
esol
See Also:
  • Field Details

  • Constructor Details

    • CascadeControllerStructure

      public CascadeControllerStructure(ControllerDeviceInterface primaryController, ControllerDeviceInterface secondaryController)
      Create a cascade control structure.
      Parameters:
      primaryController - outer loop controller
      secondaryController - inner loop controller
  • Method Details

    • runTransient

      public void runTransient(double dt)
      Execute one transient calculation step.
      Specified by:
      runTransient in interface ControlStructureInterface
      Parameters:
      dt - time step in seconds
    • getOutput

      public double getOutput()
      Get resulting output signal from the control structure.
      Specified by:
      getOutput in interface ControlStructureInterface
      Returns:
      control signal
    • setActive

      public void setActive(boolean isActive)
      Enable or disable the entire control structure.
      Specified by:
      setActive in interface ControlStructureInterface
      Parameters:
      isActive - set true to enable
    • isActive

      public boolean isActive()
      Check whether the control structure is currently active.
      Specified by:
      isActive in interface ControlStructureInterface
      Returns:
      true if active