public class BooleanRequirement extends java.lang.Object implements Requirement
Constructor and Description |
---|
BooleanRequirement(Property property,
boolean value)
Constructs a
BooleanRequirement . |
Modifier and Type | Method and Description |
---|---|
Property |
getProperty()
Returns the property of the requirement.
|
boolean |
isFulfilled()
Returns
true if the requirement is fulfilled. |
public BooleanRequirement(Property property, boolean value)
BooleanRequirement
.property
- the monitored propertyvalue
- the boolean valuepublic Property getProperty()
Requirement
getProperty
in interface Requirement
public boolean isFulfilled()
Requirement
true
if the requirement is fulfilled.isFulfilled
in interface Requirement
true
if the requirement is fulfilled