Package org.opentrafficsim.draw.graphs
Interface GraphPath.Section<S>
-
- Type Parameters:
S- underlying type
- All Superinterfaces:
Iterable<S>
public static interface GraphPath.Section<S> extends Iterable<S>
Interface for sections.Copyright (c) 2013-2022 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 LengthgetLength()Returns the section length.SgetSource(int series)Returns the source object.SpeedgetSpeedLimit()Returns the speed limit on the section.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
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
-
-