org.opt4j.core.config
Class BooleanRequirement

java.lang.Object
  extended by org.opt4j.core.config.BooleanRequirement
All Implemented Interfaces:
Requirement

public class BooleanRequirement
extends java.lang.Object
implements Requirement

The BooleanRequirement is a Requirement that depends on a boolean valued Property.


Constructor Summary
BooleanRequirement(Property property, boolean value)
          Constructs a BooleanRequirement.
 
Method Summary
 Property getProperty()
          Returns the property of the requirement.
 boolean isFulfilled()
          Returns true if the requirement is fulfilled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanRequirement

public BooleanRequirement(Property property,
                          boolean value)
Constructs a BooleanRequirement.

Parameters:
property - the monitored property
value - the boolean value
Method Detail

getProperty

public Property getProperty()
Description copied from interface: Requirement
Returns the property of the requirement.

Specified by:
getProperty in interface Requirement
Returns:
the property of the requirement

isFulfilled

public boolean isFulfilled()
Description copied from interface: Requirement
Returns true if the requirement is fulfilled.

Specified by:
isFulfilled in interface Requirement
Returns:
true if the requirement is fulfilled