Package org.opt4j.config
Class BooleanRequirement
- java.lang.Object
-
- org.opt4j.config.BooleanRequirement
-
- All Implemented Interfaces:
Requirement
public class BooleanRequirement extends Object implements Requirement
-
-
Constructor Summary
Constructors Constructor Description BooleanRequirement(Property property, boolean value)
Constructs aBooleanRequirement
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property
getProperty()
Returns the property of the requirement.boolean
isFulfilled()
Returnstrue
if the requirement is fulfilled.
-
-
-
Constructor Detail
-
BooleanRequirement
public BooleanRequirement(Property property, boolean value)
Constructs aBooleanRequirement
.- Parameters:
property
- the monitored propertyvalue
- the boolean value
-
-
Method Detail
-
getProperty
public Property getProperty()
Description copied from interface:Requirement
Returns the property of the requirement.- Specified by:
getProperty
in interfaceRequirement
- Returns:
- the property of the requirement
-
isFulfilled
public boolean isFulfilled()
Description copied from interface:Requirement
Returnstrue
if the requirement is fulfilled.- Specified by:
isFulfilled
in interfaceRequirement
- Returns:
true
if the requirement is fulfilled
-
-