Interface GraphPath.Section<S>

  • Type Parameters:
    S - underlying type
    All Superinterfaces:
    Iterable<S>
    Enclosing class:
    GraphPath<S>

    public static interface GraphPath.Section<S>
    extends 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 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