de.grogra.blocks
Class CustomFunction
java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.blocks.CustomFunction
- All Implemented Interfaces:
- Manageable, Shareable, FloatToFloat
public class CustomFunction
- extends ShareableBase
- implements FloatToFloat
Method Summary |
float |
evaluateFloat()
|
float |
evaluateFloat(float x)
Computes the value of this function at x . |
float |
evaluateFloat(float x,
Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d)
|
float |
evaluateFloat(Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d)
|
float |
evaluateZerro()
|
java.lang.String |
getFunction()
|
ManageableType |
getManageableType()
|
float |
getP()
|
void |
setFunction(double value)
|
void |
setFunction(java.lang.String value)
|
void |
setValues(Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$TYPE
public static final CustomFunction.Type $TYPE
function$FIELD
public static final SCOType.Field function$FIELD
p$FIELD
public static final SCOType.Field p$FIELD
CustomFunction
public CustomFunction()
CustomFunction
public CustomFunction(double value)
CustomFunction
public CustomFunction(double value,
double minFV,
double maxFV)
CustomFunction
public CustomFunction(java.lang.String ss)
CustomFunction
public CustomFunction(java.lang.String ss,
double minFV,
double maxFV)
evaluateFloat
public float evaluateFloat()
evaluateFloat
public float evaluateFloat(float x)
- Description copied from interface:
FloatToFloat
- Computes the value of this function at
x
.
- Specified by:
evaluateFloat
in interface FloatToFloat
- Parameters:
x
- where the function is to be evaluated
- Returns:
- function value at
x
evaluateFloat
public float evaluateFloat(float x,
Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d)
evaluateFloat
public float evaluateFloat(Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d)
evaluateZerro
public float evaluateZerro()
getFunction
public java.lang.String getFunction()
getManageableType
public ManageableType getManageableType()
- Specified by:
getManageableType
in interface Manageable
getP
public float getP()
setFunction
public void setFunction(double value)
setFunction
public void setFunction(java.lang.String value)
setValues
public void setValues(Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d)