|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtp.gmp.ClauseOrientation
A view of a Clause
in which one of the Literal
s
in the clause has been selected as a head.
ClauseOrientations are the objects that are stored and
manipulated by the ClauseOrientationKB
. They are
used to represent the contrapositives of a Clause.
Constructor Summary | |
ClauseOrientation(Clause cl,
Literal head)
Creates a new clause orientation from a clause and a literal chosen as the orientation head. |
Method Summary | |
Collection |
clauses()
|
List |
createSubGoals(List dst)
Produces a list of Literal subgoals which, if
proven, prove the head of this
ClauseOrientation. |
Clause |
getClause()
|
Literal |
getHead()
|
Collection |
literals()
|
static ClauseOrientation[] |
produceOrientations(Clause cl)
Given a Clause cl with n Literals, returns an array
with n ClauseOrientations. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClauseOrientation(Clause cl, Literal head)
cl
- The clausehead
- one of the clause's literals, chosen as head for this orientation.Method Detail |
public static ClauseOrientation[] produceOrientations(Clause cl)
cl
with n Literals, returns an array
with n ClauseOrientations. In each ClauseOrientation,
the clause is cl
, and the head is a Literal in
cl
. A different Literal is the head in each
ClauseOrientation in the returned array.
public String toString()
toString
in class Object
public Collection literals()
public Collection clauses()
public Literal getHead()
public Clause getClause()
public List createSubGoals(List dst)
Literal
subgoals which, if
proven, prove the head
of this
ClauseOrientation.
The returned list consists of the literals from
this ClauseOrientation's clause
in negated form, minus the head literal.
dst
- a List to which the Literal subgoals will be added. If null, an ArrayList will be created and used.
dst
is non-null, dst
will be returned.
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |