|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for conflict resolution strategies. Implement this interface, then pass the class name to (set-strategy).
(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories
Method Summary | |
void |
addActivation(Activation a,
java.util.Vector v)
To implement your own conflict resolution strategy, you write this method. |
int |
findActivation(Token t,
Defrule d,
java.util.Vector v)
To implement your own conflict resolution strategy, you write this method. |
java.lang.String |
getName()
Return the name of this strategy |
Method Detail |
public void addActivation(Activation a, java.util.Vector v) throws JessException
a
- A new rule activation. Place this in the proper order in v. It is your job to
respect rule salience!v
- The vector of all activations, which will fire in increasing orderRU.bsearchVector(int, java.util.Vector, int, int, jess.RU.Fetch, jess.RU.Compare)
public int findActivation(Token t, Defrule d, java.util.Vector v) throws JessException
t
- A Tokend
- A rulev
- A vector of ActivationsRU.bsearchVector(int, java.util.Vector, int, int, jess.RU.Fetch, jess.RU.Compare)
public java.lang.String getName()
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |