public class CMLStaticBlockAdapter extends java.lang.Object implements ICMLStaticBlock
ICMLStaticBlock.StaticBlockType| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
CMLStaticBlockAdapter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
debugInfo(java.lang.String prefix)
create debug info
|
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
|
ICMLStaticBlock.StaticBlockType |
getType()
get static block type
|
double |
getU()
get the controller input u,
|
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
|
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
void |
setParameter(java.lang.String name,
double value)
Set certain parameter
|
void |
setType(ICMLStaticBlock.StaticBlockType type)
set static block type
|
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
public static final long serialVersionUID
public java.lang.String getState()
public ICMLStaticBlock.StaticBlockType getType()
public void setType(ICMLStaticBlock.StaticBlockType type)
type - public double getU()
ICMLStaticBlockgetU in interface ICMLStaticBlockpublic double getU0(double y0)
ICMLStaticBlockgetU0 in interface ICMLStaticBlockpublic double getU0()
ICMLStaticBlockgetU0 in interface ICMLStaticBlockpublic double getY()
ICMLStaticBlockgetY in interface ICMLStaticBlockpublic boolean initStateY0(double y0)
ICMLStaticBlockinitStateY0 in interface ICMLStaticBlocky0 - output initial value.public boolean initStateU0(double u0)
ICMLStaticBlockinitStateU0 in interface ICMLStaticBlocku0 - input initial value.public void eulerStep1(double u,
double dt)
ICMLStaticBlockeulerStep1 in interface ICMLStaticBlocku - the input variabledt - the time steppublic void eulerStep2(double u,
double dt)
ICMLStaticBlockeulerStep2 in interface ICMLStaticBlocku - the input variabledt - the time steppublic void setParameter(java.lang.String name,
double value)
ICMLStaticBlocksetParameter in interface ICMLStaticBlockname - parameter namevalue - parameter valuepublic java.lang.String debugInfo(java.lang.String prefix)
ICMLBlockpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws java.io.IOException
readData in interface com.hazelcast.nio.serialization.DataSerializablejava.io.IOExceptionpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws java.io.IOException
writeData in interface com.hazelcast.nio.serialization.DataSerializablejava.io.IOException