|
3APL Agent Programming | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ics.TripleApl.Wff
The class for Well Formed Formulae.
This class contains two static values WFF_AND and
WFF_OR for use in OperatorWff and other classes in
this package.
There is no constructor for this class.
| Field Summary | |
protected boolean |
isNotDenied
isNotDenied is the boolean used to indicated a negation. |
static int |
WFF_AND
|
static int |
WFF_OR
|
| Constructor Summary | |
Wff()
|
|
| Method Summary | |
(package private) abstract Wff |
copy()
Method to make a copy of a wff. |
(package private) abstract void |
doSubst(SubstList sl)
Method to replace the variables in this wff with their values. |
(package private) abstract boolean |
equals(Wff w)
Method to test on equality between two wff's. |
(package private) boolean |
getDenial()
Method to get the negation variable. |
(package private) abstract void |
getVars(java.util.Vector vars)
Method to fill a Vector with the variables used in this wff. |
(package private) abstract boolean |
isEmpty()
Method to test whether the wff is empty. |
(package private) void |
setDenial(boolean b)
Method to set the negation variable. |
(package private) abstract void |
simplify()
Method to simplify a wff as far as possible (making calculations in parameters, or boolean calculations in OperatorWffs). |
(package private) abstract void |
simplify(BeliefBase bb)
Method to simplify a wff as far as possible (making calculations in parameters, or boolean calculations in OperatorWffs),
using the beliefbase, if necessary. |
(package private) abstract java.lang.String |
toPrologString()
Method to get the wff in a `Prolog friendly' form. |
(package private) abstract java.lang.String |
toPrologString(java.util.Vector vars)
Method to get the wff in a `Prolog friendly' form. |
abstract java.lang.String |
toString()
Method to get the wff in a printable form. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected boolean isNotDenied
isNotDenied is the boolean used to indicated a negation.
If isNotDenied==false this represents a NOT.public static final int WFF_AND
public static final int WFF_OR
| Constructor Detail |
public Wff()
| Method Detail |
boolean getDenial()
false means NOT.void setDenial(boolean b)
b - the new value of the negation variable.abstract Wff copy()
Wff, a copy of the wff.abstract void doSubst(SubstList sl)
sl - the list of variables and their values.abstract boolean equals(Wff w)
true if the wff's are equal.abstract void getVars(java.util.Vector vars)
Vector with the variables used in this wff.vars - the Vector to be filled.abstract boolean isEmpty()
String.true if the wff is empty.abstract void simplify()
OperatorWffs).abstract void simplify(BeliefBase bb)
OperatorWffs),
using the beliefbase, if necessary.bb - the beliefbase.public abstract java.lang.String toString()
toString in class java.lang.ObjectString, the wff in a printable form.abstract java.lang.String toPrologString()
String, the wff in a `Prolog friendly' form.abstract java.lang.String toPrologString(java.util.Vector vars)
vars - Vector of parameters to be subsituted by the
Prolog engine.String, the wff in a `Prolog friendly' form.
|
3APL Agent Programming | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||