Package org.opentrafficsim.draw.graphs
Class AbstractGraphSpace<S>
java.lang.Object
org.opentrafficsim.draw.graphs.AbstractGraphSpace<S>
- Type Parameters:
S- underlying type of path sections
- All Implemented Interfaces:
Iterable<S>
- Direct Known Subclasses:
GraphCrossSection,GraphPath
Common functionality between a cross-section and a path.
Copyright (c) 2013-2024 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName(int series) Returns the name of the series.intReturns the number of series.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
AbstractGraphSpace
Constructor.- Parameters:
seriesNames- names of series
-
-
Method Details
-
getName
Returns the name of the series.- Parameters:
series- series- Returns:
- name of the series
-
getNumberOfSeries
public int getNumberOfSeries()Returns the number of series.- Returns:
- number of series
-