jess
Interface Strategy


public interface Strategy

An interface for conflict resolution strategies. Implement this interface, then pass the class name to the (set-strategy) function.

(C) 2013 Sandia Corporation


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
 

Method Detail

compare

int compare(Activation a1,
            Activation a2)
To implement your own conflict resolution strategy, you write this method. It should behave like java.util.Comparator.compare() (which see.) Place the two activations in order, respecting salience.


getName

java.lang.String getName()
Return the name of this strategy

Returns:
a display name for this strategy

© 2013 Sandia Corporation