ponderEnforcement.ponderMC.policyObjects.constraints
Class ConstraintHandler
java.lang.Object
|
+--ponderEnforcement.ponderMC.policyObjects.constraints.ConstraintHandler
- public class ConstraintHandler
- extends java.lang.Object
Function: Models a Constraint Handler. Evaluates Constraints
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintHandler
public ConstraintHandler(ConstraintI newConstraint,
BasicPolicyI newPolicy,
PonderMCimpl newPmc)
- Constructor
- Parameters:
newConstraint - The constraint associated with this Constraint
Handler
evaluate
public java.util.Vector evaluate(PonderEventI event,
java.util.Vector newTargets)
- evalutes the constraint. Returns true/false depending on whether
the constraint evaluates to true or false
- Parameters:
event - The runtime event which triggered the evaluation of
the constraint
evaluate
public java.util.Vector evaluate(ConstraintI constr,
PonderEventI event)
- Recursive Method used to evaluate the constraint
evalExpr
public ExprValue evalExpr(ExpressionI expr,
PonderEventI event,
java.rmi.Remote targetObj)
- Evaluates an Expression.
- Parameters:
targetConstraint. - The Target Constraint to evaluate