|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtp.fol.DefaultLiteral
Default implementation of Literal.
Constructor Summary | |
DefaultLiteral(Symbol relation,
Collection args,
boolean polarity)
|
|
DefaultLiteral(Symbol relation,
SubstitutableList args,
boolean polarity)
|
Method Summary | |
Collection |
clauses()
Returns the collection of Clause s that make up this
CNFSentence. |
boolean |
equals(Object o)
|
List |
getArgs()
Returns the arguments in this Literal. |
Symbol |
getRelation()
Returns the relation of this Literal. |
int |
hashCode()
|
boolean |
isPositive()
Returns false if the Literal is negated; true otherwise. |
Collection |
literals()
Returns the collection of Literal s that make up this Clause. |
Object |
substitute(Map m)
Performs substitution in this object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultLiteral(Symbol relation, Collection args, boolean polarity)
public DefaultLiteral(Symbol relation, SubstitutableList args, boolean polarity)
Method Detail |
public Collection literals()
Clause
Literal
s that make up this Clause.
literals
in interface Clause
public Collection clauses()
CNFSentence
Clause
s that make up this
CNFSentence.
clauses
in interface CNFSentence
public boolean isPositive()
Literal
isPositive
in interface Literal
public Symbol getRelation()
Literal
getRelation
in interface Literal
public List getArgs()
Literal
getArgs
in interface Literal
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object substitute(Map m)
Substitutable
this
.
Note that this method does not have to check if this object is itself a key in the substitution map
and therefore has to be replaced. If you need that functionality,
SubstUtils.substitute(Object, Map)
should be used instead.
substitute
in interface Substitutable
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |