Interface GraphPath.Section<S>

Type Parameters:
S - underlying type
All Superinterfaces:
java.lang.Iterable<S>
Enclosing class:
GraphPath<S>

public static interface GraphPath.Section<S>
extends java.lang.Iterable<S>
Interface for sections.

Copyright (c) 2013-2019 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

    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.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • 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