public abstract class Abstract_Function extends Abstract_Atom
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
label
This field is for display purposes and contain the name of the monoid
|
alreadyCalculated, alreadyCalculatedResults, listVariablesNeeded| Constructor and Description |
|---|
Abstract_Function() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
calculate(java.util.List<Parameter> parameters)
To calculate a function there is a specific method that is "functionImplementation".
|
protected abstract java.lang.Object |
functionImplementation(java.util.List<Parameter> parameters)
This abstract method must be implemented in every class which will extend function. and represent the core of the function.
|
java.lang.String |
getLabel()
Getter on the label of the function (ie : name )
|
returnVariableUsed, toStringprotected java.lang.String label
protected abstract java.lang.Object functionImplementation(java.util.List<Parameter> parameters)
parameters - a list of the parameter required for the functionpublic java.lang.String getLabel()
public java.lang.Object calculate(java.util.List<Parameter> parameters)
calculate in class Abstract_Atomparameters - the list of the parameter containing the needed parameter to evaluate the function.