Class TraditionalStaticAssignmentSimulationData
- java.lang.Object
-
- org.goplanit.assignment.SimulationData
-
- org.goplanit.assignment.traditionalstatic.TraditionalStaticAssignmentSimulationData
-
public class TraditionalStaticAssignmentSimulationData extends SimulationData
Simulation data which are specific to Traditional Static Assignment- Author:
- gman6028
-
-
Constructor Summary
Constructors Constructor Description TraditionalStaticAssignmentSimulationData(IdGroupingToken groupId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecollectTotalNetworkSegmentFlow(LinkSegment linkSegment)Return the total flow through a link segment across all modesdouble[]collectTotalNetworkSegmentFlows()determine the total flow across all link segments across all modesdouble[]getModalLinkSegmentCosts(Mode mode)Retrieve the link segment costs for a specified modeMap<Mode,ModeData>getModeSpecificData()Collect the data per mode for all modesOdPathMatrixgetOdPathMatrix(Mode mode)Retrieve the current OD path for a specified modeOdSkimMatrixgetOdSkimMatrix(OdSkimSubOutputType odSkimOutputType, Mode mode)Retrieve the skim matrix for a specified mode and skim output typeMap<OdSkimSubOutputType,OdSkimMatrix>getSkimMatrixMap(Mode mode)Retrieve the Map of OD Skim matrices for all active OD Skim Output Types for a specified modevoidresetPathMatrix(Mode mode, OdZones zones)Reset the path matrix to empty for a specified mode for all activatedvoidresetSkimMatrix(Mode mode, OdZones zones, OdOutputTypeConfiguration originDestinationOutputTypeConfiguration)Reset the skim matrix to all zeroes for a specified mode for all activated skim output typesvoidsetModalLinkSegmentCosts(Mode mode, double[] modalLinkSegmentCosts)Set the link segment costs for a specified mode-
Methods inherited from class org.goplanit.assignment.SimulationData
getIterationIndex, incrementIterationIndex, reset, setIterationIndex, shallowClone
-
-
-
-
Constructor Detail
-
TraditionalStaticAssignmentSimulationData
public TraditionalStaticAssignmentSimulationData(IdGroupingToken groupId)
Constructor- Parameters:
groupId- contiguous id generation within this group for instances of this class
-
-
Method Detail
-
getModeSpecificData
public Map<Mode,ModeData> getModeSpecificData()
Collect the data per mode for all modes- Returns:
- mode specific data map
-
collectTotalNetworkSegmentFlow
public double collectTotalNetworkSegmentFlow(LinkSegment linkSegment)
Return the total flow through a link segment across all modes- Parameters:
linkSegment- the specified link segment- Returns:
- the total flow through this link segment
-
collectTotalNetworkSegmentFlows
public double[] collectTotalNetworkSegmentFlows()
determine the total flow across all link segments across all modes- Returns:
- the total flows per link segment, null if no mode flows are available
-
setModalLinkSegmentCosts
public void setModalLinkSegmentCosts(Mode mode, double[] modalLinkSegmentCosts)
Set the link segment costs for a specified mode- Parameters:
mode- the specified modemodalLinkSegmentCosts- array of costs for the specified mode
-
getModalLinkSegmentCosts
public double[] getModalLinkSegmentCosts(Mode mode)
Retrieve the link segment costs for a specified mode- Parameters:
mode- the specified mode- Returns:
- array of costs for the specified mode
-
resetSkimMatrix
public void resetSkimMatrix(Mode mode, OdZones zones, OdOutputTypeConfiguration originDestinationOutputTypeConfiguration)
Reset the skim matrix to all zeroes for a specified mode for all activated skim output types- Parameters:
mode- the specified modezones- Zones object containing all the origin and destination zonesoriginDestinationOutputTypeConfiguration- configuration to use
-
resetPathMatrix
public void resetPathMatrix(Mode mode, OdZones zones)
Reset the path matrix to empty for a specified mode for all activated- Parameters:
mode- the specified modezones- Zones object containing all the origin and destination zones
-
getOdSkimMatrix
public OdSkimMatrix getOdSkimMatrix(OdSkimSubOutputType odSkimOutputType, Mode mode)
Retrieve the skim matrix for a specified mode and skim output type- Parameters:
odSkimOutputType- the specified Skim Output typemode- the specified mode- Returns:
- the skim matrix for the specified mode
-
getOdPathMatrix
public OdPathMatrix getOdPathMatrix(Mode mode)
Retrieve the current OD path for a specified mode- Parameters:
mode- the specified mode- Returns:
- the OD path for this mode
-
getSkimMatrixMap
public Map<OdSkimSubOutputType,OdSkimMatrix> getSkimMatrixMap(Mode mode)
Retrieve the Map of OD Skim matrices for all active OD Skim Output Types for a specified mode- Parameters:
mode- the specified mode- Returns:
- Map of OD Skim matrices for all active OD Skim Output Types
-
-