Class CombinedPath

All Implemented Interfaces:
PathGenerator<StopCondition>

public class CombinedPath extends PathGeneratorBase<StopCondition>

CombinedPath

The CombinedPath generator holds a list of generators that will execute in order.

CombinedPath is used for concatenating path generators. When executing, a ExecutionContext will exhaust the generators in the list one by one.

Below is an example of how to use the CombinedPath generator.
 
 CombinedPath generator = new CombinedPath();
 generator.addPathGenerator(new RandomPath(new ReachedVertex("v1")));
 generator.addPathGenerator(new RandomPath(new ReachedVertex("v2")));
 Context context = new TestExecutionContext(model, generator);
 
 
Author:
Nils Olsson