public final class LaneFactory extends Object
Copyright (c) 2013-2014 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 Lane |
makeLane(String name,
NodeGeotools.STR from,
NodeGeotools.STR to,
com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates,
LaneType<String> laneType,
OTSDEVSSimulatorInterface simulator)
Create a simple Lane.
|
static CrossSectionLink<?,?> |
makeLink(String name,
NodeGeotools.STR from,
NodeGeotools.STR to,
com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates)
Create a Link along intermediate coordinates from one Node to another.
|
static Lane[] |
makeMultiLane(String name,
NodeGeotools.STR from,
NodeGeotools.STR to,
com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates,
int laneCount,
int laneOffsetAtStart,
int laneOffsetAtEnd,
LaneType<String> laneType,
OTSDEVSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes.
This method returns an array of Lane. |
static Lane[] |
makeMultiLane(String name,
NodeGeotools.STR from,
NodeGeotools.STR to,
com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates,
int laneCount,
LaneType<String> laneType,
OTSDEVSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes.
This method returns an array of Lane. |
public static CrossSectionLink<?,?> makeLink(String name, NodeGeotools.STR from, NodeGeotools.STR to, com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates)
name - String; name of the new Linkfrom - Node; start Node of the new Linkto - Node; end Node of the new LinkintermediateCoordinates - Coordinate[]; array of intermediate coordinates (may be null)public static Lane makeLane(String name, NodeGeotools.STR from, NodeGeotools.STR to, com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates, LaneType<String> laneType, OTSDEVSSimulatorInterface simulator) throws RemoteException, NamingException, NetworkException
name - String; name of the Lane (and also of the Link that owns it)from - Node; starting node of the new Laneto - Node; ending node of the new LaneintermediateCoordinates - Coordinate[]; intermediate coordinates or null to create a straight roadlaneType - LaneType; type of the new Lanesimulator - OTSDEVSSimulatorInterface; the simulatorNamingException - when names cannot be registered for animationRemoteException - on communications failureNetworkException - on network inconsistencypublic static Lane[] makeMultiLane(String name, NodeGeotools.STR from, NodeGeotools.STR to, com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType<String> laneType, OTSDEVSSimulatorInterface simulator) throws RemoteException, NamingException, NetworkException
name - String; name of the Linkfrom - Node; starting node of the new Laneto - Node; ending node of the new LaneintermediateCoordinates - Coordinate[]; intermediate coordinates or null to create a straight roadlaneCount - int; number of lanes in the roadlaneOffsetAtStart - int; extra offset from design line in lane widths at start of linklaneOffsetAtEnd - int; extra offset from design line in lane widths at end of linklaneType - LaneType; type of the new Lanessimulator - OTSDEVSSimulatorInterface; the simulatorNamingException - when names cannot be registered for animationRemoteException - on communications failureNetworkException - on topological problemspublic static Lane[] makeMultiLane(String name, NodeGeotools.STR from, NodeGeotools.STR to, com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates, int laneCount, LaneType<String> laneType, OTSDEVSSimulatorInterface simulator) throws RemoteException, NamingException, NetworkException
name - String; name of the Linkfrom - Node; starting node of the new Laneto - Node; ending node of the new LaneintermediateCoordinates - Coordinate[]; intermediate coordinates or null to create a straight roadlaneCount - int; number of lanes in the roadlaneType - LaneType; type of the new Lanessimulator - OTSDEVSSimulatorInterface; the simulatorNamingException - when names cannot be registered for animationRemoteException - on communications failureNetworkException - on topological problemsCopyright © 2014–2015 Delft University of Technology. All rights reserved.