Package org.goplanit.assignment.ltm.sltm
Class BushInitialiserHelper
- java.lang.Object
-
- org.goplanit.assignment.ltm.sltm.BushInitialiserHelper
-
public class BushInitialiserHelper extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BushInitialiserHelper(RootedLabelledBush bush, ACyclicSubGraph odDag, PasManager pasManager, boolean logNewPass)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BushInitialiserHelper
create(RootedLabelledBush bush, ACyclicSubGraph odDag, PasManager pasManager, boolean logNewPass)
Factory method for bush initialiservoid
executeOdBushInitialisation(DirectedVertex originVertex, Double oDDemandPcuH, Iterator<DirectedVertex> vertexIter, BushFlowLabel entryExitLabel)
Execute the initialisation by ensuring the correct flow is added to the bush for the given od dag and it related demand.
-
-
-
Constructor Detail
-
BushInitialiserHelper
protected BushInitialiserHelper(RootedLabelledBush bush, ACyclicSubGraph odDag, PasManager pasManager, boolean logNewPass)
Constructor- Parameters:
bush
- to (further) initialiseodDag
- to add to bush as initial supported DAGpasManager
- to uselogNewPass
- when true log new PASs, otherwise not
-
-
Method Detail
-
create
public static BushInitialiserHelper create(RootedLabelledBush bush, ACyclicSubGraph odDag, PasManager pasManager, boolean logNewPass)
Factory method for bush initialiser- Parameters:
bush
- to useodDag
- to usepasManager
- to uselogNewPass
- when true new pass are logged, when false not- Returns:
- created helper
-
executeOdBushInitialisation
public void executeOdBushInitialisation(DirectedVertex originVertex, Double oDDemandPcuH, Iterator<DirectedVertex> vertexIter, BushFlowLabel entryExitLabel)
Execute the initialisation by ensuring the correct flow is added to the bush for the given od dag and it related demand.- Parameters:
originVertex
- to start with, expected to be the centroid of the od's origin. It is expected the iterator proceeds in downstream direction until reaching the destinationoDDemandPcuH
- to use for the origin vertexvertexIter
- flag indicating if new pass are to be loggedentryExitLabel
- to use
-
-