Class TraditionalStaticPathOutputTypeAdapter
- java.lang.Object
-
- org.goplanit.output.adapter.OutputTypeAdapterImpl
-
- org.goplanit.output.adapter.PathOutputTypeAdapterImpl
-
- org.goplanit.assignment.traditionalstatic.TraditionalStaticPathOutputTypeAdapter
-
- All Implemented Interfaces:
OutputTypeAdapter
,PathOutputTypeAdapter
public class TraditionalStaticPathOutputTypeAdapter extends PathOutputTypeAdapterImpl
Adapter providing access to the data of the TraditionalStaticAssignment class relevant for OD path 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 TraditionalStaticPathOutputTypeAdapter(OutputType outputType, TrafficAssignment trafficAssignment)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TraditionalStaticAssignment
getAssignment()
Access the assignmentOptional<OdPathMatrix>
getOdPathMatrix(Mode mode)
Retrieve an OD path matrix object for a specified mode-
Methods inherited from class org.goplanit.output.adapter.PathOutputTypeAdapterImpl
getPathOutputPropertyValue
-
Methods inherited from class org.goplanit.output.adapter.OutputTypeAdapterImpl
createConvertedUnitsValue, getIterationIndexForSubOutputType, 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
getIterationIndexForSubOutputType, getOutputType
-
-
-
-
Constructor Detail
-
TraditionalStaticPathOutputTypeAdapter
public TraditionalStaticPathOutputTypeAdapter(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
-
getOdPathMatrix
public Optional<OdPathMatrix> getOdPathMatrix(Mode mode)
Retrieve an OD path matrix object for a specified mode- Parameters:
mode
- the specified mode- Returns:
- the OD path object
-
-