public class Not extends AbstractOperator
AbstractOperator.operands| Constructor and Description |
|---|
Not(Clause operands)
Constructor of the class.
|
| Modifier and Type | Method and Description |
|---|---|
protected Not |
create(List<Clause> operands)
Generic constructor of the object.
|
NotSolutionNode |
getSolver(RuleSet rules,
SubstitutionSet parentSolution,
AbstractSolutionNode parentNode)
Creates a solver which is a node in the tree proof.
|
String |
toString()
Returns the negative clause under the form of:
"!
|
getFirstOperand, getOperand, getOperands, getOperatorTail, isEmpty, operandCount, replaceVariables, setOperands, standardizeVariablesApartpublic Not(Clause operands)
operands - the only operand of the not operator.protected Not create(List<Clause> operands)
AbstractOperator to create the correct object very easily.create in class AbstractOperatoroperands - the operands of the not-operator in an ArrayList
object.AbstractOperator.create(java.util.List)public NotSolutionNode 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()