public class OR extends Abstract_Operation
| Modifier and Type | Field and Description |
|---|---|
protected Abstract_Atom |
atom1 |
protected Abstract_Atom |
atom2 |
alreadyCalculated, alreadyCalculatedResults, listVariablesNeeded| Constructor and Description |
|---|
OR(Abstract_Atom atom1,
Abstract_Atom atom2) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.List<Variable> |
returnVariableUsed(java.util.List<Variable> listVariablesUsed)
This method return the variables that are used in the Abstract_Atom instance.
|
java.lang.String |
toString()
The goal here is to force the person who will implement a gdl instance to override the ToString method.
|
protected Abstract_Atom atom1
protected Abstract_Atom atom2
public OR(Abstract_Atom atom1, Abstract_Atom atom2)
public java.lang.String toString()
Abstract_AtomtoString in class Abstract_Atompublic java.lang.Object calculate(java.util.List<Parameter> parameters)
Abstract_Atomcalculate in class Abstract_Atomparameters - A list of parameter because some of the class (ie : functions ) need to take in parameterspublic java.util.List<Variable> returnVariableUsed(java.util.List<Variable> listVariablesUsed)
Abstract_AtomreturnVariableUsed in class Abstract_AtomlistVariablesUsed - The list of the variables used by the father is there is any