S - underlying type of path sectionspublic class GraphPath<S> extends AbstractGraphSpace<S>
GraphPath defines the spatial dimension of graphs. It has a number of sections, each of which may have one or more
 source objects depending on the number of series. For example, a 3-lane road may result in a few sections each having 3
 series. Graphs can aggregate the series, or show multiple series.
 
 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.
 
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
GraphPath.Section<S>
Interface for sections. 
 | 
| Constructor and Description | 
|---|
GraphPath(List<String> seriesNames,
         List<GraphPath.Section<S>> sections)
Constructor. 
 | 
GraphPath(String name,
         List<GraphPath.Section<S>> sections)
Constructor for a one-series path. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
GraphPath.Section<S> | 
get(int index)
Returns a section. 
 | 
ImmutableList<GraphPath.Section<S>> | 
getSections()
Returns an immutable list of the sections. 
 | 
Speed | 
getSpeedLimit()
Returns the mean speed over the entire section. 
 | 
Length | 
getStartDistance(GraphPath.Section<S> section)
Returns the start distance of the section. 
 | 
Length | 
getTotalLength()
Returns the total path length. 
 | 
Iterator<S> | 
iterator() | 
Iterator<S> | 
iterator(int series)
Returns an iterator over the sources on the given series. 
 | 
String | 
toString() | 
getName, getNumberOfSeriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic GraphPath(String name, List<GraphPath.Section<S>> sections)
name - String; namesections - List<Section<S>>; sectionspublic GraphPath(List<String> seriesNames, List<GraphPath.Section<S>> sections)
seriesNames - List<String>; names of seriessections - List<Section<S>>; sectionspublic final Length getStartDistance(GraphPath.Section<S> section)
section - Section<S>; Section<S> sectionpublic final Length getTotalLength()
public final Speed getSpeedLimit()
public GraphPath.Section<S> get(int index)
index - int; index of sectionpublic Iterator<S> iterator(int series)
series - int; number of the seriespublic ImmutableList<GraphPath.Section<S>> getSections()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.