policyMgmt
Class IsRepeated
java.lang.Object
|
+--policyMgmt.IsRepeated
- public class IsRepeated
- extends java.lang.Object
- implements Condition
A Condition wrapper Condition. It is true, if it's associated Condition
evaluates to true for n times consecutively.
|
Constructor Summary |
IsRepeated(Condition other,
int repetitions)
Construct a new IsRepeated Condition. |
|
Method Summary |
boolean |
evaluate(Event evt,
java.util.Hashtable unify)
The main Condition's method to evaluate. |
java.util.Hashtable |
getFreeIdents()
Return a Hashtable of element identifiers of the underlying
Condition. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
IsRepeated
public IsRepeated(Condition other,
int repetitions)
- Construct a new IsRepeated Condition.
- Parameters:
other - the underlying Conditionrepetitions - the number of repetitive true evaluations that
is required to evaluate this Condition to true
evaluate
public boolean evaluate(Event evt,
java.util.Hashtable unify)
- The main Condition's method to evaluate. Parameters are forwarded
to the underlying Condition.
- Specified by:
- evaluate in interface Condition
- Parameters:
evt - the Event, forwarded to the underlying Conditionunify - the Elements' Hashtable, forwarded to the
underlying Condition- Returns:
- the boolean value of the evaluation
getFreeIdents
public java.util.Hashtable getFreeIdents()
- Return a Hashtable of element identifiers of the underlying
Condition. Note that IsRepeated does not work, if the set of
free identifiers is ambigous.
- Specified by:
- getFreeIdents in interface Condition
- Returns:
- the hashtable