Package org.opentrafficsim.draw.graphs
Interface GraphPath.Section<S>
-
- Type Parameters:
S
- underlying type
- All Superinterfaces:
java.lang.Iterable<S>
public static interface GraphPath.Section<S> extends java.lang.Iterable<S>
Interface for sections.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 20 okt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Length
getLength()
Returns the section length.S
getSource(int series)
Returns the source object.Speed
getSpeedLimit()
Returns the speed limit on the section.
-
-
-
Method Detail
-
getLength
Length getLength()
Returns the section length.- Returns:
- Length; section length
-
getSpeedLimit
Speed getSpeedLimit()
Returns the speed limit on the section.- Returns:
- Speed; speed limit on the section
-
getSource
S getSource(int series)
Returns the source object.- Parameters:
series
- int; number- Returns:
- S; underlying object of the series
-
-