Class TraditionalStaticAssignmentOdOutputTypeAdapter
- java.lang.Object
-
- org.goplanit.output.adapter.OutputTypeAdapterImpl
-
- org.goplanit.output.adapter.OdOutputTypeAdapterImpl
-
- org.goplanit.assignment.traditionalstatic.TraditionalStaticAssignmentOdOutputTypeAdapter
-
- All Implemented Interfaces:
OdOutputTypeAdapter
,OutputTypeAdapter
public class TraditionalStaticAssignmentOdOutputTypeAdapter extends OdOutputTypeAdapterImpl
Adapter providing access to the data of the TraditionalStaticAssignment class relevant for origin-destination outputs without exposing the internals of the traffic assignment class itself- Author:
- gman6028
-
-
Field Summary
-
Fields inherited from class org.goplanit.output.adapter.OutputTypeAdapterImpl
outputType
-
-
Constructor Summary
Constructors Constructor Description TraditionalStaticAssignmentOdOutputTypeAdapter(OutputType outputType, TrafficAssignment trafficAssignment)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TraditionalStaticAssignment
getAssignment()
Access the assignmentOptional<OdSkimMatrix>
getOdSkimMatrix(OdSkimSubOutputType odSkimOutputType, Mode mode)
Retrieve an OD skim matrix for a specified OD skim output type and mode-
Methods inherited from class org.goplanit.output.adapter.OdOutputTypeAdapterImpl
getIterationIndexForSubOutputType, getOdOutputPropertyValue
-
Methods inherited from class org.goplanit.output.adapter.OutputTypeAdapterImpl
createConvertedUnitsValue, getOutputType, getOutputTypeIndependentPropertyValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.output.adapter.OutputTypeAdapter
getOutputType
-
-
-
-
Constructor Detail
-
TraditionalStaticAssignmentOdOutputTypeAdapter
public TraditionalStaticAssignmentOdOutputTypeAdapter(OutputType outputType, TrafficAssignment trafficAssignment)
Constructor- Parameters:
outputType
- the output type for the current persistencetrafficAssignment
- the traffic assignment used to provide the data
-
-
Method Detail
-
getAssignment
protected TraditionalStaticAssignment getAssignment()
Access the assignment- Overrides:
getAssignment
in classOutputTypeAdapterImpl
- Returns:
- the assignment
-
getOdSkimMatrix
public Optional<OdSkimMatrix> getOdSkimMatrix(OdSkimSubOutputType odSkimOutputType, Mode mode)
Retrieve an OD skim matrix for a specified OD skim output type and mode- Parameters:
odSkimOutputType
- the specified OD skim output typemode
- the specified mode- Returns:
- the OD skim matrix
-
-