public class And extends AbstractOperator
AbstractOperator.operands| Constructor and Description |
|---|
And(Clause... operands)
Constructor of the class.
|
And(List<Clause> operands)
Constructor of the class.
|
| Modifier and Type | Method and Description |
|---|---|
protected And |
create(List<Clause> operands)
Generic constructor of the object.
|
AndSolutionNode |
getSolver(RuleSet rules,
SubstitutionSet parentSolution,
AbstractSolutionNode parentNode)
Creates a solver which is a node in the tree proof.
|
String |
toString()
Returns the and-clause under the form of:
"operand1 & operand2 & ...".
|
getFirstOperand, getOperand, getOperands, getOperatorTail, isEmpty, operandCount, replaceVariables, setOperands, standardizeVariablesApartpublic And(Clause... operands)
operands - the operands of the and-operator in an array or as independent
variables.protected And create(List<Clause> operands)
AbstractOperator to create the correct object very easily.create in class AbstractOperatoroperands - the operands of the and-operator in an List
object.AbstractOperator.create(java.util.List)public AndSolutionNode getSolver(RuleSet rules, SubstitutionSet parentSolution, AbstractSolutionNode parentNode)
This function is recursive over all objects that can be proved and creates the tree of proof for a clause.
rules - the RuleSet object containing the rules of knowledge.parentSolution - the solution known so far at the parent node.parentNode - the parent node in the tree.Clause.getSolver(RuleSet, SubstitutionSet, AbstractSolutionNode)public String toString()
toString in class ObjectObject.toString()