public class CMLFunctionExpressionAdapter extends java.lang.Object implements ICMLFunctionExpression
| Constructor and Description |
|---|
CMLFunctionExpressionAdapter()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addInputExp(ExpCalculator exp)
Add a input expression to the input expression list
|
java.lang.String |
debugInfo(java.lang.String prefix)
create debug info
|
double |
eval(double[][] dAry2D)
Evaluate the function value based on the input value array list
|
java.util.List<ExpCalculator> |
getInputExpList()
Get the input expression list
|
double |
getU(double y)
calculate the function input from its output
|
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 addInputExp(ExpCalculator exp)
addInputExp in interface ICMLFunctionExpressionexp - an input expressionpublic double eval(double[][] dAry2D)
throws InterpssException
eval in interface ICMLFunctionExpressiondAry2D - input variable value 2D array. The array should have the exact same
structure of the input expression listInterpssExceptionpublic java.util.List<ExpCalculator> getInputExpList()
getInputExpList in interface ICMLFunctionExpressionpublic 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