Package org.graphwalker.core.condition
Class CombinedCondition
java.lang.Object
org.graphwalker.core.condition.StopConditionBase
org.graphwalker.core.condition.CombinedCondition
- All Implemented Interfaces:
StopCondition
CombinedCondition
The CombinedCondition evaluates to fulfilled if all of its conditions are fulfilled. The CombinedCondition holds a list of stop conditions. Only if all its conditions in its list is fulfilled, the CombinedCondition is fulfilled.- Author:
- Nils Olsson
-
Field Summary
Fields inherited from interface org.graphwalker.core.condition.StopCondition
FULFILLMENT_LEVEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStopCondition(StopCondition condition) doublebooleanvoidsetContext(Context context) toString(StringBuilder builder) Methods inherited from class org.graphwalker.core.condition.StopConditionBase
getContext, getValue, toString
-
Constructor Details
-
CombinedCondition
public CombinedCondition()
-
-
Method Details
-
addStopCondition
-
setContext
- Specified by:
setContextin interfaceStopCondition- Overrides:
setContextin classStopConditionBase
-
getStopConditions
-
isFulfilled
public boolean isFulfilled()- Specified by:
isFulfilledin interfaceStopCondition- Overrides:
isFulfilledin classStopConditionBase
-
getFulfilment
public double getFulfilment() -
toString
- Specified by:
toStringin interfaceStopCondition- Overrides:
toStringin classStopConditionBase
-