Package org.graphwalker.core.condition
Class Length
java.lang.Object
org.graphwalker.core.condition.StopConditionBase
org.graphwalker.core.condition.Length
- All Implemented Interfaces:
StopCondition
Length
The Length stop condition is fulfilled when the total number visited edges and vertices in the model is greater than, or equal, to the length 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.StopConditionBase
getContext, getValue, setContext, toString, toString
-
Constructor Details
-
Length
public Length(long length)
-
-
Method Details
-
getLength
public long getLength() -
isFulfilled
public boolean isFulfilled()- Specified by:
isFulfilledin interfaceStopCondition- Overrides:
isFulfilledin classStopConditionBase
-
getFulfilment
public double getFulfilment()
-