public class CMLControlBlock1stOrderAdapter extends CMLControlBlockAdapter
ICMLStaticBlock.StaticBlockType| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
CMLControlBlock1stOrderAdapter() |
| 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
|
java.lang.String |
getState()
get block state as a string for debug info
|
double |
getU()
get the controller input u,
|
double |
getY()
get the controller output
|
void |
setDX_dt(double x)
set dx/dt
|
getStateX, readData, setStateX, writeDatadebugInfo, getType, getU0, getU0, initStateU0, initStateY0, setParameter, setTypeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetU0, getU0, initStateU0, initStateY0, setParameterpublic static final long serialVersionUID
public java.lang.String getState()
getState in class CMLControlBlockAdapterpublic 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 void setDX_dt(double x)
CMLControlBlockAdaptersetDX_dt in interface ICMLControlBlocksetDX_dt in class CMLControlBlockAdapterpublic double getU()
ICMLStaticBlockgetU in interface ICMLStaticBlockgetU in class CMLStaticBlockAdapterpublic double getY()
ICMLStaticBlockgetY in interface ICMLStaticBlockgetY in class CMLStaticBlockAdapter