public class CMLFunctionAdapter extends java.lang.Object implements ICMLFunction
| Constructor and Description |
|---|
CMLFunctionAdapter()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCMLVarRec(CMLVarRec rec)
Add a input var rec to the input var list
|
java.lang.String |
debugInfo(java.lang.String prefix)
create debug info
|
double |
eval(double[] dAry)
Evaluate the function value based on the input value array
|
double |
getU(double y)
calculate the function input from its output
|
java.util.List<CMLVarRec> |
getVarRecList()
Get the input var rec list
|
boolean |
hasInput(CMLVarEnum type)
Check if this block field has the RefPoint as input
|
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
public double getU(double y)
throws InterpssException
getU in interface ICMLFunctionBaseInterpssExceptionpublic boolean hasInput(CMLVarEnum type)
hasInput in interface ICMLFunctionBasepublic boolean addCMLVarRec(CMLVarRec rec)
addCMLVarRec in interface ICMLFunctionrec - an input varpublic double eval(double[] dAry)
eval in interface ICMLFunctiondAry - input variable value array. The array should have the exact same
structure of the input var rec listpublic java.util.List<CMLVarRec> getVarRecList()
getVarRecList in interface ICMLFunctionpublic java.lang.String debugInfo(java.lang.String prefix)
ICMLBlockpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws java.io.IOException
writeData in interface com.hazelcast.nio.serialization.DataSerializablejava.io.IOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws java.io.IOException
readData in interface com.hazelcast.nio.serialization.DataSerializablejava.io.IOException