Class FeedForwardControllerStructure
java.lang.Object
neqsim.process.controllerdevice.structure.FeedForwardControllerStructure
- All Implemented Interfaces:
Serializable, ControlStructureInterface
Feed-forward control structure combining a feedback controller with a feed-forward contribution
based on a measured disturbance.
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MeasurementDeviceInterfaceprivate final ControllerDeviceInterfaceprivate doubleprivate booleanprivate doubleprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionFeedForwardControllerStructure(ControllerDeviceInterface feedbackController, MeasurementDeviceInterface disturbanceMeasurement) Create a feed-forward control structure. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet resulting output signal from the control structure.booleanisActive()Check whether the control structure is currently active.voidrunTransient(double dt) Execute one transient calculation step.voidsetActive(boolean isActive) Enable or disable the entire control structure.voidsetFeedForwardGain(double gain) Set gain for feed-forward contribution.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
feedbackController
-
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 controllerdisturbanceMeasurement- 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:
runTransientin interfaceControlStructureInterface- Parameters:
dt- time step in seconds
-
getOutput
public double getOutput()Get resulting output signal from the control structure.- Specified by:
getOutputin interfaceControlStructureInterface- Returns:
- control signal
-
setActive
public void setActive(boolean isActive) Enable or disable the entire control structure.- Specified by:
setActivein interfaceControlStructureInterface- Parameters:
isActive- settrueto enable
-
isActive
public boolean isActive()Check whether the control structure is currently active.- Specified by:
isActivein interfaceControlStructureInterface- Returns:
trueif active
-