public final class LaneFactory extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-28 17:11:47 +0200 (Tue, 28 Jul 2015) $, @version $Revision: 1165 $, by $Author: averbraeck $,
initial version 30 okt. 2014
| Modifier and Type | Method and Description |
|---|---|
static Lane<String,String> |
makeLane(String name,
OTSNode<String> from,
OTSNode<String> to,
OTSPoint3D[] intermediatePoints,
LaneType<String> laneType,
DoubleScalar.Abs<SpeedUnit> speedLimit,
OTSDEVSSimulatorInterface simulator)
Create a simple Lane.
|
static CrossSectionLink<String,String> |
makeLink(String name,
OTSNode<String> from,
OTSNode<String> to,
OTSPoint3D[] intermediatePoints)
Create a Link along intermediate coordinates from one Node to another.
|
static Lane<String,String>[] |
makeMultiLane(String name,
OTSNode<String> from,
OTSNode<String> to,
OTSPoint3D[] intermediatePoints,
int laneCount,
int laneOffsetAtStart,
int laneOffsetAtEnd,
LaneType<String> laneType,
DoubleScalar.Abs<SpeedUnit> speedLimit,
OTSDEVSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes.
This method returns an array of Lane. |
static Lane<String,String>[] |
makeMultiLane(String name,
OTSNode<String> from,
OTSNode<String> to,
OTSPoint3D[] intermediatePoints,
int laneCount,
LaneType<String> laneType,
DoubleScalar.Abs<SpeedUnit> speedLimit,
OTSDEVSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes.
This method returns an array of Lane. |
public static CrossSectionLink<String,String> makeLink(String name, OTSNode<String> from, OTSNode<String> to, OTSPoint3D[] intermediatePoints)
name - String; name of the new Linkfrom - Node; start Node of the new Linkto - Node; end Node of the new LinkintermediatePoints - OTSPoint3D[]; array of intermediate coordinates (may be null)public static Lane<String,String> makeLane(String name, OTSNode<String> from, OTSNode<String> to, OTSPoint3D[] intermediatePoints, LaneType<String> laneType, DoubleScalar.Abs<SpeedUnit> speedLimit, OTSDEVSSimulatorInterface simulator) throws RemoteException, NamingException, NetworkException, OTSGeometryException
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 LaneintermediatePoints - OTSPoint3D[]; intermediate coordinates or null to create a straight roadlaneType - LaneType; type of the new LanespeedLimit - DoubleScalar.Abs<SpeedUnit>; the speed limit on the new Lanesimulator - OTSDEVSSimulatorInterface; the simulatorNamingException - when names cannot be registered for animationRemoteException - on communications failureNetworkException - on network inconsistencyOTSGeometryException - when creation of center line or contour failspublic static Lane<String,String>[] makeMultiLane(String name, OTSNode<String> from, OTSNode<String> to, OTSPoint3D[] intermediatePoints, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType<String> laneType, DoubleScalar.Abs<SpeedUnit> speedLimit, OTSDEVSSimulatorInterface simulator) throws RemoteException, NamingException, NetworkException, OTSGeometryException
name - String; name of the Linkfrom - Node; starting node of the new Laneto - Node; ending node of the new LaneintermediatePoints - OTSPoint3D[]; 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 LanesspeedLimit - DoubleScalar.Abs<SpeedUnit>; the speed limit on all lanessimulator - OTSDEVSSimulatorInterface; the simulatorNamingException - when names cannot be registered for animationRemoteException - on communications failureNetworkException - on topological problemsOTSGeometryException - when creation of center line or contour failspublic static Lane<String,String>[] makeMultiLane(String name, OTSNode<String> from, OTSNode<String> to, OTSPoint3D[] intermediatePoints, int laneCount, LaneType<String> laneType, DoubleScalar.Abs<SpeedUnit> speedLimit, OTSDEVSSimulatorInterface simulator) throws RemoteException, NamingException, NetworkException, OTSGeometryException
name - String; name of the Linkfrom - Node; starting node of the new Laneto - Node; ending node of the new LaneintermediatePoints - OTSPoint3D[]; intermediate coordinates or null to create a straight roadlaneCount - int; number of lanes in the roadlaneType - LaneType; type of the new LanesspeedLimit - DoubleScalar.Abs<SpeedUnit> the speed limit (applies to all generated lanes)simulator - OTSDEVSSimulatorInterface; the simulatorNamingException - when names cannot be registered for animationRemoteException - on communications failureNetworkException - on topological problemsOTSGeometryException - when creation of center line or contour failsCopyright © 2014–2015 Delft University of Technology. All rights reserved.