Package org.opentrafficsim.draw.graphs
Class GraphPath.Section<L>
java.lang.Object
org.opentrafficsim.draw.graphs.GraphPath.Section<L>
- Type Parameters:
L
- underlying type
- All Implemented Interfaces:
Iterable<L>
Class for sections.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Details
-
Section
Constructor.- Parameters:
length
- Length; length of the sectionspeedLimit
- Speed; speed limit on the sectionsections
- List<S>; list of underlying objects
-
-
Method Details
-
getLength
Returns the section length.- Returns:
- Length; section length
-
getSpeedLimit
Returns the speed limit on the section.- Returns:
- Speed; speed limit on the section
-
getSource
Returns the source object.- Parameters:
series
- int; number- Returns:
- S; underlying object of the series
-
iterator
-