Class BushInitialiserHelper


  • public class BushInitialiserHelper
    extends Object
    • Constructor Detail

      • BushInitialiserHelper

        protected BushInitialiserHelper​(RootedLabelledBush bush,
                                        ACyclicSubGraph odDag,
                                        PasManager pasManager,
                                        boolean logNewPass)
        Constructor
        Parameters:
        bush - to (further) initialise
        odDag - to add to bush as initial supported DAG
        pasManager - to use
        logNewPass - 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 use
        odDag - to use
        pasManager - to use
        logNewPass - 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 destination
        oDDemandPcuH - to use for the origin vertex
        vertexIter - flag indicating if new pass are to be logged
        entryExitLabel - to use