Package org.goplanit.output.adapter
Class PathOutputTypeAdapterImpl
- java.lang.Object
-
- org.goplanit.output.adapter.OutputTypeAdapterImpl
-
- org.goplanit.output.adapter.PathOutputTypeAdapterImpl
-
- All Implemented Interfaces:
OutputTypeAdapter
,PathOutputTypeAdapter
- Direct Known Subclasses:
TraditionalStaticPathOutputTypeAdapter
public abstract class PathOutputTypeAdapterImpl extends OutputTypeAdapterImpl implements PathOutputTypeAdapter
Top-level abstract class which defines the common methods required by Path output type adapters- Author:
- gman6028
-
-
Field Summary
-
Fields inherited from class org.goplanit.output.adapter.OutputTypeAdapterImpl
outputType
-
-
Constructor Summary
Constructors Constructor Description PathOutputTypeAdapterImpl(OutputType outputType, TrafficAssignment trafficAssignment)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<?>
getPathOutputPropertyValue(OutputProperty outputProperty, OdDataIterator<? extends ManagedDirectedPath> odPathIterator, Mode mode, TimePeriod timePeriod, PathOutputIdentificationType pathOutputType)
Returns the specified output property values for the current cell in the ODPathIterator-
Methods inherited from class org.goplanit.output.adapter.OutputTypeAdapterImpl
createConvertedUnitsValue, getAssignment, 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
-
Methods inherited from interface org.goplanit.output.adapter.PathOutputTypeAdapter
getOdPathMatrix
-
-
-
-
Constructor Detail
-
PathOutputTypeAdapterImpl
public PathOutputTypeAdapterImpl(OutputType outputType, TrafficAssignment trafficAssignment)
Constructor- Parameters:
outputType
- the output type for the current persistencetrafficAssignment
- the traffic assignment used to provide the data
-
-
Method Detail
-
getPathOutputPropertyValue
public Optional<?> getPathOutputPropertyValue(OutputProperty outputProperty, OdDataIterator<? extends ManagedDirectedPath> odPathIterator, Mode mode, TimePeriod timePeriod, PathOutputIdentificationType pathOutputType)
Returns the specified output property values for the current cell in the ODPathIterator- Specified by:
getPathOutputPropertyValue
in interfacePathOutputTypeAdapter
- Parameters:
outputProperty
- the specified output propertyodPathIterator
- the iterator through the current ODPath objectmode
- the current modetimePeriod
- the current time periodpathOutputType
- the type of objects in the path list- Returns:
- the value of the specified property (or an Exception if an error has occurred)
-
-