Class CascadeControllerStructure
java.lang.Object
neqsim.process.controllerdevice.structure.CascadeControllerStructure
- All Implemented Interfaces:
Serializable, 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 Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate doubleprivate final ControllerDeviceInterfaceprivate final ControllerDeviceInterfaceprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionCascadeControllerStructure(ControllerDeviceInterface primaryController, ControllerDeviceInterface secondaryController) Create a cascade 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.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
secondaryController
-
output
private double output -
isActive
private boolean isActive
-
-
Constructor Details
-
CascadeControllerStructure
public CascadeControllerStructure(ControllerDeviceInterface primaryController, ControllerDeviceInterface secondaryController) Create a cascade control structure.- Parameters:
primaryController- outer loop controllersecondaryController- inner loop controller
-
-
Method Details
-
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
-