|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the base interface for all reasoners that have their goals dispatched according to basic literal
properties: relation symbol, polarity and arity. Do not implement this interface directly! Instead,
implement either RelationBasedFCReasoner
or RelationBasedBCReasoner
, depending on whether
your reasoner is forward- or backward-chaining.
Field Summary | |
static int |
ANY_ARITY
|
static int |
BOTH
|
static int |
NEGATIVE
|
static int |
POSITIVE
|
Method Summary | |
int |
getArity()
returns the "arity" of literals that are appropriate for this reasoner. |
int |
getPolarity()
returns the polarity of literals that are appropriate for this reasoner. |
Symbol |
getRelation()
returns the relation symbol of literals that are appropriate for this reasoner. |
Methods inherited from interface jtp.Reasoner |
acceptable, process |
Field Detail |
public static final int ANY_ARITY
public static final int POSITIVE
public static final int NEGATIVE
public static final int BOTH
Method Detail |
public Symbol getRelation()
public int getArity()
ANY_ARITY
for reasoners that are not limited to a certain arity.
public int getPolarity()
POSITIVE
- for literals that are not negated,NEGATIVE
- for literals that are negated,BOTH
- if the reasoner can handle literals of any polarity.
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |