Class ReceivingFlowData


  • public class ReceivingFlowData
    extends LinkSegmentData
    POJO to store the sLTM variables used for receiving flow updates (Step 4) in network loading
    Author:
    markr
    • Constructor Detail

      • ReceivingFlowData

        public ReceivingFlowData​(double[] emptySegmentArray)
        Constructor
        Parameters:
        emptySegmentArray - empty array used to initialize data stores
    • Method Detail

      • resetNextReceivingFlows

        public void resetNextReceivingFlows()
        Reset the segment flows for the coming iteration
      • resetCurrentReceivingFlows

        public void resetCurrentReceivingFlows()
        Reset current network segment flows
      • getNextReceivingFlows

        public double[] getNextReceivingFlows()
        collect next receiving flows
        Returns:
        next receiving flows
      • getCurrentReceivingFlows

        public double[] getCurrentReceivingFlows()
        collect current receiving flows
        Returns:
        current receiving flows
      • limitNextReceivingFlowsToCapacity

        public void limitNextReceivingFlowsToCapacity​(MacroscopicLinkSegments linkSegments)
        Reduce all provided link segments' receiving flows to capacity in case they exceed it
        Parameters:
        linkSegments - to use
      • swapCurrentAndNextReceivingFlows

        public void swapCurrentAndNextReceivingFlows()
        Swap the current and next receiving flows
      • reset

        public void reset()
        Reset to initial state