Package org.graphwalker.core.condition
Class RequirementCoverage
java.lang.Object
org.graphwalker.core.condition.StopConditionBase
org.graphwalker.core.condition.CoverageStopConditionBase
org.graphwalker.core.condition.RequirementCoverage
- All Implemented Interfaces:
StopCondition
RequirementCoverage
The RequirementCoverage stop condition is fulfilled when the percentage of visited requirements in the model is greater than, or equal, to the percentage given as a parameter to the constructor.- Author:
- Nils Olsson
-
Field Summary
Fields inherited from interface org.graphwalker.core.condition.StopCondition
FULFILLMENT_LEVEL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.graphwalker.core.condition.CoverageStopConditionBase
getPercent, getPercentAsDoubleMethods inherited from class org.graphwalker.core.condition.StopConditionBase
getContext, getValue, setContext, toString, toString
-
Constructor Details
-
RequirementCoverage
public RequirementCoverage(int percent)
-
-
Method Details
-
isFulfilled
public boolean isFulfilled()- Specified by:
isFulfilledin interfaceStopCondition- Overrides:
isFulfilledin classStopConditionBase
-
getFulfilment
public double getFulfilment()
-