BetweenConstraint

Representation of the Between Constraint. Evaluates to true only if the left side fact is between the values specified in the right side. Contains is typically used to check membership of a value in a group fact.

Description

Evaluates to true only if the left side fact is between the values specified in the right side. Contains is typically used to check membership of a value in a group fact.

Example of building a ContainsConstraint to constrain that a resource belongs to a group:

     c = BetweenConstraint()
     c.setFact("matrix.time")
     c.setBeginValue("9:00 AM")
     c.setEndFactValue("user.home.time")

This constraint can be used independently or added to a And, Or, Not constraint to combine with other constraints.

See Also