public class BusFreqMeasurementImpl extends CMLControlBlock1stOrderAdapter
ICMLStaticBlock.StaticBlockType| Constructor and Description |
|---|
BusFreqMeasurementImpl()
constructor
|
BusFreqMeasurementImpl(double tf,
double tw)
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 |
getTf() |
double |
getTw() |
double |
getY()
get the controller output
|
boolean |
initStateU0(double u0)
init the dynamic device state variable
|
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
void |
setParameter(java.lang.String name,
double value)
Set certain parameter
|
void |
setTf(double tf) |
void |
setTw(double tw) |
java.lang.String |
toString() |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
getState, getU, setDX_dtgetStateX, setStateXdebugInfo, getType, getU0, getU0, initStateY0, setTypeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetU0, getU0, initStateY0public BusFreqMeasurementImpl()
public BusFreqMeasurementImpl(double tf,
double tw)
tf - tw - public boolean initStateU0(double u0)
initStateU0 in interface ICMLStaticBlockinitStateU0 in class CMLStaticBlockAdapteru0 - bus angle at time = 0.0, in Radpublic void eulerStep1(double u,
double dt)
ICMLStaticBlockeulerStep1 in interface ICMLStaticBlockeulerStep1 in class CMLControlBlock1stOrderAdapteru - the input variabledt - the time steppublic void eulerStep2(double u,
double dt)
ICMLStaticBlockeulerStep2 in interface ICMLStaticBlockeulerStep2 in class CMLControlBlock1stOrderAdapteru - the input variabledt - the time steppublic double getY()
ICMLStaticBlockgetY in interface ICMLStaticBlockgetY in class CMLControlBlock1stOrderAdapterpublic void setParameter(java.lang.String name,
double value)
setParameter in interface ICMLStaticBlocksetParameter in class CMLStaticBlockAdaptername - parameter namevalue - parameter valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic double getTf()
public void setTf(double tf)
public double getTw()
public void setTw(double tw)
public void readData(com.hazelcast.nio.ObjectDataInput in)
throws java.io.IOException
readData in interface com.hazelcast.nio.serialization.DataSerializablereadData in class CMLControlBlockAdapterjava.io.IOExceptionpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws java.io.IOException
writeData in interface com.hazelcast.nio.serialization.DataSerializablewriteData in class CMLControlBlockAdapterjava.io.IOException