Package org.graphwalker.core.condition
Class AlternativeCondition
java.lang.Object
org.graphwalker.core.condition.StopConditionBase
org.graphwalker.core.condition.AlternativeCondition
- All Implemented Interfaces:
StopCondition
AlternativeCondition
The AlternativeCondition evaluates to fulfilled if one of its conditions are fulfilled. The AlternativeCondition holds a list of stop conditions. If one of the conditions in the list is fulfilled, the AlternativeCondition 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 TypeMethodDescriptionaddStopCondition(StopCondition condition) doublebooleanvoidsetContext(Context context) toString(StringBuilder builder) Methods inherited from class org.graphwalker.core.condition.StopConditionBase
getContext, getValue, toString
-
Constructor Details
-
AlternativeCondition
public AlternativeCondition()
-
-
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
-