|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompiledFunction
Represents a mahematical function, variable or constant
Nested Class Summary | |
---|---|
static class |
CompiledFunction.Add
The addition function |
static class |
CompiledFunction.Constant
Represents a constant |
static class |
CompiledFunction.Divide
The divide function |
static class |
CompiledFunction.Function
Represents an arbitary function defined in a FunctionParser |
static class |
CompiledFunction.Multiply
The multiply function |
static class |
CompiledFunction.Power
The power function |
static class |
CompiledFunction.Subtract
The subtract function |
static class |
CompiledFunction.Variable
Represents a variable - simply returns the value of the variable |
Method Summary | |
---|---|
double |
compute(java.util.Map<java.lang.String,java.lang.Double> values)
Computes the result of the function |
java.util.Set<java.lang.String> |
neededParams()
Returns a list of variable that the function expects to be passed to it |
Method Detail |
---|
double compute(java.util.Map<java.lang.String,java.lang.Double> values) throws NoSuchVariable
values
- Map from variable name to value
NoSuchVariable
- Thrown if values does not contain a needed variablejava.util.Set<java.lang.String> neededParams()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |