|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jatha.dynatype.StandardLispValue
org.algernon.datatype.Clause
Field Summary | |
protected Algernon |
f_algy
|
protected LispValue |
f_clause
|
Fields inherited from class org.jatha.dynatype.StandardLispValue |
f_lisp |
Constructor Summary | |
Clause(Algernon algy,
LispValue clause)
Creates a new clause. |
|
Clause(Algernon algy,
String clause)
Creates a new clause. |
Method Summary | |
Clause |
copyClause()
Returns a new clause that is a copy of this one. |
String |
display(PrintStream out)
Displayable interface |
Algernon |
getAlgernon()
Returns the instance of Algernon that this Clause belongs to. |
LispValue |
getArguments()
Returns the arguments of the clause (all elements except the first). |
LispValue |
getClause()
|
LispValue |
getFrame()
Returns the frame of the clause (the element in the second position). |
LispValue |
getRelation()
Returns the relation of the clause (the element in the first position). |
LispValue |
getSlot()
Returns the slot of the clause, which is the first element if performing the traditional mapping from predicates to frames. |
LispValue |
getValues()
Returns the values of the clause, which is all but the first two elements if performing the traditional mapping from predicates to frames. |
BindingList |
getVariableArguments()
Returns a BindingList of the arguments in the clause that are variables. |
boolean |
isGround()
Returns true if the clause contains no variables. |
boolean |
isNegated()
Returns true if the clause is negated, that is, if it has the form (NOT [clause]). |
Clause |
negateClause()
Returns a negated form of the clause. |
void |
setClause(LispValue newClause)
|
int |
size()
Returns the size of the clause. |
String |
toString()
Returns a string representation of the clause. |
boolean |
willBeGround(BindingList blist)
Returns true if the clause will be ground if the given set of variables is bound at runtime. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Algernon f_algy
protected LispValue f_clause
Constructor Detail |
public Clause(Algernon algy, String clause)
public Clause(Algernon algy, LispValue clause) throws AlgernonDataException
Method Detail |
public LispValue getClause()
public void setClause(LispValue newClause)
public Clause copyClause()
public String toString()
toString
in interface LispValue
public String display(PrintStream out)
display
in interface Displayable
public LispValue getRelation()
public LispValue getFrame()
public LispValue getArguments()
public LispValue getSlot()
public LispValue getValues()
public int size()
public Clause negateClause() throws AlgernonDataException
AlgernonDataException
public boolean isGround()
public boolean willBeGround(BindingList blist)
public boolean isNegated()
public BindingList getVariableArguments() throws AlgernonDataException
AlgernonDataException
public Algernon getAlgernon()
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |