Class ModeData
- java.lang.Object
-
- org.goplanit.assignment.traditionalstatic.ModeData
-
public class ModeData extends Object
Object to store the flows for each mode during the assignment iterations- Author:
- gman6028
-
-
Constructor Summary
Constructors Constructor Description ModeData(double[] emptySegmentArray)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToNextSegmentFlows(long edgeSegmentId, double flow)
add passed in flow to next segment flows for given iddouble[]
getCurrentSegmentFlows()
collect current segment flowsdouble[]
getNextSegmentFlows()
collect next segment flowsvoid
resetCurrentNetworkSegmentFlows()
Reset current network segment flowsvoid
resetNextNetworkSegmentFlows()
Reset the segment flows for the coming iterationvoid
setCurrentSegmentFlows(double[] segmentFlows)
set segment flows
-
-
-
Method Detail
-
resetNextNetworkSegmentFlows
public void resetNextNetworkSegmentFlows()
Reset the segment flows for the coming iteration
-
resetCurrentNetworkSegmentFlows
public void resetCurrentNetworkSegmentFlows()
Reset current network segment flows
-
getNextSegmentFlows
public double[] getNextSegmentFlows()
collect next segment flows- Returns:
- next segment flows
-
getCurrentSegmentFlows
public double[] getCurrentSegmentFlows()
collect current segment flows- Returns:
- current segment flows
-
setCurrentSegmentFlows
public void setCurrentSegmentFlows(double[] segmentFlows)
set segment flows- Parameters:
segmentFlows
- to set as current
-
addToNextSegmentFlows
public void addToNextSegmentFlows(long edgeSegmentId, double flow)
add passed in flow to next segment flows for given id- Parameters:
edgeSegmentId
- segment to add flow toflow
- to add
-
-