Class FeedForwardControllerStructure

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

public class FeedForwardControllerStructure extends Object implements ControlStructureInterface
Feed-forward control structure combining a feedback controller with a feed-forward contribution based on a measured disturbance.
Author:
esol
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • feedbackController

      private final ControllerDeviceInterface feedbackController
    • disturbanceMeasurement

      private final MeasurementDeviceInterface disturbanceMeasurement
    • feedForwardGain

      private double feedForwardGain
    • output

      private double output
    • isActive

      private boolean isActive
  • Constructor Details

    • FeedForwardControllerStructure

      public FeedForwardControllerStructure(ControllerDeviceInterface feedbackController, MeasurementDeviceInterface disturbanceMeasurement)
      Create a feed-forward control structure.
      Parameters:
      feedbackController - feedback controller
      disturbanceMeasurement - measurement providing disturbance signal
  • Method Details

    • setFeedForwardGain

      public void setFeedForwardGain(double gain)
      Set gain for feed-forward contribution.
      Parameters:
      gain - feed-forward gain
    • 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