Class AbstractGraphSpace<S>

  • Type Parameters:
    S - underlying type of path sections
    All Implemented Interfaces:
    java.lang.Iterable<S>
    Direct Known Subclasses:
    GraphCrossSection, GraphPath

    public abstract class AbstractGraphSpace<S>
    extends java.lang.Object
    implements java.lang.Iterable<S>
    Common functionality between a cross-section and a path.

    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 23 okt. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractGraphSpace​(java.util.List<java.lang.String> seriesNames)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName​(int series)
      Returns the name of the series.
      int getNumberOfSeries()
      Returns the number of series.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Constructor Detail

      • AbstractGraphSpace

        public AbstractGraphSpace​(java.util.List<java.lang.String> seriesNames)
        Constructor.
        Parameters:
        seriesNames - List<String>; names of series
    • Method Detail

      • getName

        public final java.lang.String getName​(int series)
        Returns the name of the series.
        Parameters:
        series - int; series
        Returns:
        String; name of the series
      • getNumberOfSeries

        public final int getNumberOfSeries()
        Returns the number of series.
        Returns:
        int; number of series