policyMgmt
Interface Condition

All Known Implementing Classes:
AlwaysCondition, IsRepeated

public interface Condition

Interface for conditions used in rules.


Method Summary
 boolean evaluate(Event evt, java.util.Hashtable unify)
          This is the condition's main method.
 java.util.Hashtable getFreeIdents()
          Return a Hashtable of element identifiers.
 

Method Detail

evaluate

public boolean evaluate(Event evt,
                        java.util.Hashtable unify)
This is the condition's main method. It represents the condition expression of a rule. It can make use of the event that triggered the rule and related elements.
Parameters:
evt - event that triggered the rule
unify - hashtable of elements to check. These hashtable elements use the keys defined by the getFreeIdents() method
Returns:
true if the condition was fulfilled

getFreeIdents

public java.util.Hashtable getFreeIdents()
Return a Hashtable of element identifiers. The value of each hashtable element has to contain an element class name. The key of each hashtable element has to be a unique string that is used by the evaluate() method to refer to the elements.
Returns:
Hashtable of class names keyed by referential name