public final class GraphLaneUtil extends Object
GraphPaths and GraphCrossSections for graphs, based on lanes.
 
 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 | Method and Description | 
|---|---|
| static GraphCrossSection<KpiLaneDirection> | createCrossSection(List<String> names,
                  DirectedLinkPosition linkPosition)Creates a cross section at the provided link and position. | 
| static GraphCrossSection<KpiLaneDirection> | createCrossSection(List<String> names,
                  List<KpiLaneDirection> lanes,
                  List<Length> positions,
                  Speed speed)Creates a cross section. | 
| static GraphCrossSection<KpiLaneDirection> | createCrossSection(String name,
                  DirectedLanePosition lanePosition)Creates a cross section at the provided lane and position. | 
| static GraphPath<KpiLaneDirection> | createPath(List<String> names,
          List<LaneDirection> first)Creates a path starting at the provided lanes and moving downstream for as long as no lane finds a loop (on to any of the
 lanes) and there's a unique link all lanes have downstream. | 
| static GraphPath<KpiLaneDirection> | createPath(String name,
          LaneDirection first)Creates a path starting at the provided lane and moving downstream until a dead-end, split, or loop. | 
| static GraphPath<KpiLaneDirection> | createSingleLanePath(String name,
                    LaneDirection lane)Creates a single-lane path. | 
public static GraphPath<KpiLaneDirection> createPath(String name, LaneDirection first) throws NetworkException
name - String; path namefirst - LaneDirection; first laneNetworkException - when the lane does not have any set speed limitpublic static GraphPath<KpiLaneDirection> createPath(List<String> names, List<LaneDirection> first) throws NetworkException
names - List<String>; lane namesfirst - List<LaneDirection>; first lanesNetworkException - when a lane does not have any set speed limitpublic static GraphPath<KpiLaneDirection> createSingleLanePath(String name, LaneDirection lane) throws NetworkException
name - String; namelane - LaneDirection; laneNetworkException - when a lane does not have any set speed limitpublic static GraphCrossSection<KpiLaneDirection> createCrossSection(String name, DirectedLanePosition lanePosition) throws NetworkException
name - String; namelanePosition - DirectedLanePosition; lane positionNetworkException - when the lane does not have any set speed limitpublic static GraphCrossSection<KpiLaneDirection> createCrossSection(List<String> names, DirectedLinkPosition linkPosition) throws NetworkException
names - List<String>; lane nameslinkPosition - DirectedLinkPosition; link positionNetworkException - when a lane does not have any set speed limitpublic static GraphCrossSection<KpiLaneDirection> createCrossSection(List<String> names, List<KpiLaneDirection> lanes, List<Length> positions, Speed speed)
names - List<String>;; nameslanes - List<KpiLaneDirection>;; lanespositions - List<Length>; positionsspeed - Speed; speedCopyright © 2014–2019 Delft University of Technology. All rights reserved.