Class CustomValue
java.lang.Object
studio.magemonkey.fabled.data.formula.value.CustomValue
- All Implemented Interfaces:
IValue
A custom defined value for a formula
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CustomValue
A defined value used in formulas- Parameters:
token
- equation token
-
-
Method Details
-
compute
public double compute(double... input) Gets the value using the inputs -
getToken
- Returns:
- defining token
-
setIndex
public void setIndex(int index) Sets the argument index for the value. This is handled by formulas so you shouldn't need to use this.- Parameters:
index
- argument index
-