Class InitialiseBushEdgeSegmentDemandConsumer

  • All Implemented Interfaces:
    Consumer<EdgeSegment>

    public class InitialiseBushEdgeSegmentDemandConsumer
    extends Object
    implements Consumer<EdgeSegment>
    Initialise the bush for a given origin/destination with the shortest path being offered from the destination to the origin via the provided edge segments in the callback.

    Add the edge segments to the bush and update the turn sending flow accordingly.

    Consumer can be reused for multiple destinations by updating the destination and demand that goes with it.

    Author:
    markr
    • Constructor Detail

      • InitialiseBushEdgeSegmentDemandConsumer

        public InitialiseBushEdgeSegmentDemandConsumer​(Bush originBush)
        Constructor
        Parameters:
        originBush - to use
    • Method Detail

      • setDestination

        public void setDestination​(DirectedVertex destination,
                                   double originDestinationDemandPcuH)
        Update to next destination with accompanying demand. Demand is applied to all edge segments on the provided edge segments via the consumer callback
        Parameters:
        destination - to set
        originDestinationDemandPcuH - total travel demand of the od combination