public class Clause
extends java.lang.Object
Constructor and Description |
---|
Clause() |
Modifier and Type | Method and Description |
---|---|
Clause |
applyBindings(java.util.HashMap<java.lang.String,java.lang.String> bindings) |
void |
clearBound()
Clear the bound flags on each Literal
|
void |
clearPreserve()
Clear the preserve flags on each Literal
|
void |
copyBoundFlags(Clause d)
Copy bound flags to this set of clauses
|
Clause |
deepCopy() |
boolean |
empty() |
boolean |
equals(java.lang.Object o) |
void |
preProcessQuestionWords(java.util.List<java.lang.String> qwords) |
void |
removeBound()
If literal is not marked "preserve" then remove it if bound and
then reset the preserve flag.
|
java.lang.String |
toString() |
java.util.HashMap<java.lang.String,java.lang.String> |
unify(Clause d)
The argument to this method is the rule and this is the sentence
|
public java.util.ArrayList<Literal> disjuncts
public java.lang.String toString()
toString
in class java.lang.Object
public Clause deepCopy()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean empty()
public void preProcessQuestionWords(java.util.List<java.lang.String> qwords)
public void clearBound()
public void clearPreserve()
public void removeBound()
public void copyBoundFlags(Clause d)
public Clause applyBindings(java.util.HashMap<java.lang.String,java.lang.String> bindings)
public java.util.HashMap<java.lang.String,java.lang.String> unify(Clause d)