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) 2005 Sandia National Laboratories


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

public 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

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

Returns:
a display name for this strategy

© 2006 Sandia Corporation