Class ReceivingFlowData
- java.lang.Object
-
- org.goplanit.assignment.ltm.sltm.LinkSegmentData
-
- org.goplanit.assignment.ltm.sltm.loading.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 Summary
Constructors Constructor Description ReceivingFlowData(double[] emptySegmentArray)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getCurrentReceivingFlows()collect current receiving flowsdouble[]getNextReceivingFlows()collect next receiving flowsvoidlimitNextReceivingFlowsToCapacity(MacroscopicLinkSegments linkSegments)Reduce all provided link segments' receiving flows to capacity in case they exceed itvoidreset()Reset to initial statevoidresetCurrentReceivingFlows()Reset current network segment flowsvoidresetNextReceivingFlows()Reset the segment flows for the coming iterationvoidswapCurrentAndNextReceivingFlows()Swap the current and next receiving flows-
Methods inherited from class org.goplanit.assignment.ltm.sltm.LinkSegmentData
copyTo, createinitialStateLinkSegmentDoubleArray, limitFlowsToCapacity, swap
-
-
-
-
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
-
-