jess
Interface Strategy
- public interface Strategy
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
- Author:
- Ernest J. Friedman-Hill
Method Summary |
int |
compare(Activation a1,
Activation a2)
To implement your own conflict resolution strategy, you write
this method. |
java.lang.String |
getName()
Return the name of this strategy |
compare
public int compare(Activation a1,
Activation a2)
- To implement your own conflict resolution strategy, you write
this method. It should behave like Comparable.compare() (which see.)
Place the two activations in order, respecting salience.
getName
public java.lang.String getName()
- Return the name of this strategy
- Returns:
- a display name for this strategy