org.openorb.constraint
Class Constraint

java.lang.Object
  extended by org.openorb.constraint.Constraint

public class Constraint
extends java.lang.Object

This class represents a constraint. This object is created by the constraint evaluator.

Author:
Jerome Daniel

Method Summary
 void addExternalValue(java.lang.String name, DynamicValueEvaluator dyn)
          This operation adds a new dynamic value evaluator.
 void addValue(java.lang.String name, org.omg.CORBA.Any value)
          This operation adds a new value ( used for the constraint evaluation ).
 java.lang.Object evaluate()
          This operation evaluates the constraint and returns the result as an Object.
 void reset()
          This operation is used to reset all values used for the evaluation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

public void reset()
This operation is used to reset all values used for the evaluation.


addValue

public void addValue(java.lang.String name,
                     org.omg.CORBA.Any value)
This operation adds a new value ( used for the constraint evaluation ).


addExternalValue

public void addExternalValue(java.lang.String name,
                             DynamicValueEvaluator dyn)
This operation adds a new dynamic value evaluator. Such an object is useful to have a just-in-time evaluation for dynamic properties ( like time, memory, ... ).


evaluate

public java.lang.Object evaluate()
                          throws InvalidValue
This operation evaluates the constraint and returns the result as an Object. In fact the result can be : - Boolean - Character - String - Double

Throws:
InvalidValue