Package org.goplanit.output.adapter
Class UntypedLinkOutputTypeAdapterImpl<LS extends LinkSegment>
- java.lang.Object
-
- org.goplanit.output.adapter.OutputTypeAdapterImpl
-
- org.goplanit.output.adapter.UntypedLinkOutputTypeAdapterImpl<LS>
-
- All Implemented Interfaces:
OutputTypeAdapter
,UntypedLinkOutputTypeAdapter<LS>
- Direct Known Subclasses:
MacroscopicLinkOutputTypeAdapterImpl
public abstract class UntypedLinkOutputTypeAdapterImpl<LS extends LinkSegment> extends OutputTypeAdapterImpl implements UntypedLinkOutputTypeAdapter<LS>
Top-level abstract class which defines the common methods required by Link output type adapters- Author:
- gman6028
-
-
Field Summary
-
Fields inherited from class org.goplanit.output.adapter.OutputTypeAdapterImpl
outputType
-
-
Constructor Summary
Constructors Constructor Description UntypedLinkOutputTypeAdapterImpl(OutputType outputType, TrafficAssignment trafficAssignment)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<?>
getLinkSegmentOutputPropertyValue(OutputProperty outputProperty, LS linkSegment)
Return the value of a specified output property of a link segment-
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.UntypedLinkOutputTypeAdapter
getDownstreamNodeExternalId, getDownstreamNodeId, getDownstreamNodeLocation, getDownstreamNodeXmlId, getLength, getLinkSegmentExternalId, getLinkSegmentId, getLinkSegmentXmlId, getNumberOfLanes, getPhysicalLinkSegments, getUpstreamNodeExternalId, getUpstreamNodeId, getUpstreamNodeLocation, getUpstreamNodeXmlId
-
-
-
-
Constructor Detail
-
UntypedLinkOutputTypeAdapterImpl
public UntypedLinkOutputTypeAdapterImpl(OutputType outputType, TrafficAssignment trafficAssignment)
Constructor- Parameters:
outputType
- the OutputType this adapter corresponds totrafficAssignment
- TrafficAssignment object which this adapter wraps
-
-
Method Detail
-
getLinkSegmentOutputPropertyValue
public Optional<?> getLinkSegmentOutputPropertyValue(OutputProperty outputProperty, LS linkSegment)
Return the value of a specified output property of a link segment- Specified by:
getLinkSegmentOutputPropertyValue
in interfaceUntypedLinkOutputTypeAdapter<LS extends LinkSegment>
- Parameters:
outputProperty
- the specified output propertylinkSegment
- the specified link segment- Returns:
- the value of the specified output property (or an Exception message if an error occurs)
-
-