public class GainBlock extends CMLStaticBlockAdapter
ICMLStaticBlock.StaticBlockTypeserialVersionUID| Constructor and Description |
|---|
GainBlock()
constructor
|
GainBlock(double k)
constructor
|
GainBlock(ICMLStaticBlock.StaticBlockType type,
double k,
double max,
double min)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
eulerStep1(double u,
double dt)
Perform Euler step-1 calculation
|
void |
eulerStep2(double u,
double dt)
Perform Euler step-2 calculation
|
double |
getK()
get parameter kp
|
LimitType |
getLimit()
get the limit object
|
double |
getU0()
get the controller initial input u0, it should be always called after
the intiState() call.
|
double |
getU0(double y0)
get the controller initial input u0, it should be always called after
the intiState() call.
|
double |
getY()
get the controller output
|
boolean |
initStateU0(double u0)
Initial the controller state variables
|
boolean |
initStateY0(double y0)
Initial the controller state variables
|
java.lang.String |
toString() |
debugInfo, getState, getType, getU, readData, setParameter, setType, writeDatapublic GainBlock()
public GainBlock(double k)
k - public GainBlock(ICMLStaticBlock.StaticBlockType type, double k, double max, double min)
type - k - max - min - public boolean initStateY0(double y0)
ICMLStaticBlockinitStateY0 in interface ICMLStaticBlockinitStateY0 in class CMLStaticBlockAdaptery0 - output initial value.public boolean initStateU0(double u0)
ICMLStaticBlockinitStateU0 in interface ICMLStaticBlockinitStateU0 in class CMLStaticBlockAdapteru0 - input initial value.public double getU0(double y0)
ICMLStaticBlockgetU0 in interface ICMLStaticBlockgetU0 in class CMLStaticBlockAdapterpublic double getU0()
ICMLStaticBlockgetU0 in interface ICMLStaticBlockgetU0 in class CMLStaticBlockAdapterpublic void eulerStep1(double u,
double dt)
ICMLStaticBlockeulerStep1 in interface ICMLStaticBlockeulerStep1 in class CMLStaticBlockAdapteru - the input variabledt - the time steppublic void eulerStep2(double u,
double dt)
ICMLStaticBlockeulerStep2 in interface ICMLStaticBlockeulerStep2 in class CMLStaticBlockAdapteru - the input variabledt - the time steppublic double getY()
ICMLStaticBlockgetY in interface ICMLStaticBlockgetY in class CMLStaticBlockAdapterpublic double getK()
public LimitType getLimit()
public java.lang.String toString()
toString in class java.lang.Object