Class SendingFlowData


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

      • SendingFlowData

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

      • resetNextSendingFlows

        public void resetNextSendingFlows()
        Reset the segment flows for the coming iteration
      • resetCurrentSendingFlows

        public void resetCurrentSendingFlows()
        Reset current network segment flows
      • reset

        public void reset()
        Reset all sending flows
      • getNextSendingFlows

        public double[] getNextSendingFlows()
        collect next sending flows
        Returns:
        next sending flows
      • getCurrentSendingFlows

        public double[] getCurrentSendingFlows()
        collect current sending flows
        Returns:
        current sending flows
      • limitCurrentSendingFlowsToCapacity

        public void limitCurrentSendingFlowsToCapacity​(MacroscopicLinkSegments linkSegments)
        Reduce all current link segments' sending flows to capacity in case they exceed it
        Parameters:
        linkSegments - to use
      • swapCurrentAndNextSendingFlows

        public void swapCurrentAndNextSendingFlows()
        replace current sending flows by the next sending flows