|
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 Clauses 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 Literals 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()
ClauseLiterals that make up this Clause.
literals in interface Clausepublic Collection clauses()
CNFSentenceClauses that make up this
CNFSentence.
clauses in interface CNFSentencepublic boolean isPositive()
Literal
isPositive in interface Literalpublic Symbol getRelation()
Literal
getRelation in interface Literalpublic List getArgs()
Literal
getArgs in interface Literalpublic String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Object substitute(Map m)
Substitutablethis.
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 | ||||||||||