public abstract class Abstract_Atom
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.util.List<Parameter>> |
alreadyCalculated
This field is use to spare unnecessary calculations.
|
protected java.util.List<java.lang.Object> |
alreadyCalculatedResults
This field is use to spare unnecessary calculations.
|
protected java.util.List<Variable> |
listVariablesNeeded
This field store all the variables that are needed for all calculations for the class that extends Abstract_Atom
|
| Constructor and Description |
|---|
Abstract_Atom() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
calculate(java.util.List<Parameter> parameters)
The objective here is to force the person who will implement a gdl instance to implement a calculate method.
|
abstract java.util.List<Variable> |
returnVariableUsed(java.util.List<Variable> listVariablesUsed)
This method return the variables that are used in the Abstract_Atom instance.
|
abstract java.lang.String |
toString()
The goal here is to force the person who will implement a gdl instance to override the ToString method.
|
protected java.util.List<Variable> listVariablesNeeded
protected java.util.List<java.util.List<Parameter>> alreadyCalculated
protected java.util.List<java.lang.Object> alreadyCalculatedResults
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.Object calculate(java.util.List<Parameter> parameters)
parameters - A list of parameter because some of the class (ie : functions ) need to take in parameterspublic abstract java.util.List<Variable> returnVariableUsed(java.util.List<Variable> listVariablesUsed)
listVariablesUsed - The list of the variables used by the father is there is any