| Package | Description |
|---|---|
| org.opentrafficsim.road.definitions |
The RoadDefinitions package contains interfaces that give access to the core definitions that can be used to interpret the
RoadNetwork and the RoadPerceivableContext.
|
| org.opentrafficsim.road.gtu.lane.perception |
Implementation of lane-based perception for the GTU.
|
| org.opentrafficsim.road.network | |
| org.opentrafficsim.road.network.factory |
Factories for Links, Lanes, Nodes.
|
| org.opentrafficsim.road.network.lane |
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
|
| Modifier and Type | Method and Description |
|---|---|
LaneType |
RoadDefinitions.getLaneType(LaneType.DEFAULTS laneTypeEnum)
Retrieve a defined default LaneType based on its enum.
|
LaneType |
RoadDefinitions.getLaneType(String laneTypeId)
Retrieve a defined LaneType based on its id.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap<String,LaneType> |
RoadDefinitions.getLaneTypes()
Retrieve a safe copy of the map of defined LaneTypes in this network.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RoadDefinitions.addLaneType(LaneType laneType)
Add a Lane type to the map.
|
| Modifier and Type | Method and Description |
|---|---|
Map<LaneType,Speed> |
GTUTypeAssumptions.getMaxSpeeds(GTUType gtuType)
Return a safe copy of the maximum speed for all LaneTypes for a certain GTUType as an assumption for that GTUType.
|
| Modifier and Type | Method and Description |
|---|---|
Speed |
GTUTypeAssumptions.getLaneTypeMaxSpeed(GTUType gtuType,
LaneType laneType)
Return the maximum speed on a LaneType for a certain GTUType as an assumption for that GTUType.
|
void |
GTUTypeAssumptions.setLaneTypeMaxSpeed(GTUType gtuType,
LaneType laneType,
Speed maxSpeed)
Set the maximum speed for a certain GTUType on a certain LaneType as an assumption for that GTUType.
|
| Modifier and Type | Method and Description |
|---|---|
LaneType |
OTSRoadNetwork.getLaneType(LaneType.DEFAULTS laneTypeEnum)
Retrieve a defined default LaneType based on its enum.
|
LaneType |
OTSRoadNetwork.getLaneType(String laneTypeId)
Retrieve a defined LaneType based on its id.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap<String,LaneType> |
OTSRoadNetwork.getLaneTypes()
Retrieve a safe copy of the map of defined LaneTypes in this network.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OTSRoadNetwork.addLaneType(LaneType laneType)
Add a Lane type to the map.
|
| Modifier and Type | Method and Description |
|---|---|
LaneFactory |
LaneFactory.leftToRight(double leftLanes,
Length laneWidth,
LaneType laneType,
Speed speedLimit)
Prepare the factory to add lanes from left to right.
|
static Lane |
LaneFactory.makeLane(RoadNetwork network,
String name,
OTSRoadNode from,
OTSRoadNode to,
OTSPoint3D[] intermediatePoints,
LaneType laneType,
Speed speedLimit,
OTSSimulatorInterface simulator)
Create a simple Lane.
|
static Lane[] |
LaneFactory.makeMultiLane(RoadNetwork network,
String name,
OTSRoadNode from,
OTSRoadNode to,
OTSPoint3D[] intermediatePoints,
int laneCount,
int laneOffsetAtStart,
int laneOffsetAtEnd,
LaneType laneType,
Speed speedLimit,
OTSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes.
This method returns an array of Lane. |
static Lane[] |
LaneFactory.makeMultiLane(RoadNetwork network,
String name,
OTSRoadNode from,
OTSRoadNode to,
OTSPoint3D[] intermediatePoints,
int laneCount,
LaneType laneType,
Speed speedLimit,
OTSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes.
This method returns an array of Lane. |
static Lane[] |
LaneFactory.makeMultiLaneBezier(RoadNetwork network,
String name,
OTSRoadNode n1,
OTSRoadNode n2,
OTSRoadNode n3,
OTSRoadNode n4,
int laneCount,
int laneOffsetAtStart,
int laneOffsetAtEnd,
LaneType laneType,
Speed speedLimit,
OTSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes, based on a Bezier curve.
This method returns an array of Lane. |
LaneFactory |
LaneFactory.rightToLeft(double rightLanes,
Length laneWidth,
LaneType laneType,
Speed speedLimit)
Prepare the factory to add lanes from right to left.
|
| Modifier and Type | Method and Description |
|---|---|
LaneType |
Lane.getLaneType() |
LaneType |
LaneType.inv()
Construct a new Lane type based on another Lane type with longitudinally inverted compatibility.
|
| Modifier and Type | Method and Description |
|---|---|
GTUCompatibility<LaneType> |
LaneType.getCompatibility() |
| Constructor and Description |
|---|
Lane(CrossSectionLink parentLink,
String id,
Length lateralOffset,
Length width,
LaneType laneType,
Map<GTUType,Speed> speedLimitMap)
Construct a new Lane.
|
Lane(CrossSectionLink parentLink,
String id,
Length lateralOffset,
Length width,
LaneType laneType,
Speed speedLimit)
Construct a new Lane.
|
Lane(CrossSectionLink parentLink,
String id,
Length lateralOffsetAtStart,
Length lateralOffsetAtEnd,
Length beginWidth,
Length endWidth,
LaneType laneType,
Map<GTUType,Speed> speedLimitMap)
Construct a new Lane.
|
Lane(CrossSectionLink parentLink,
String id,
Length lateralOffsetAtStart,
Length lateralOffsetAtEnd,
Length beginWidth,
Length endWidth,
LaneType laneType,
Map<GTUType,Speed> speedLimitMap,
boolean fixGradualLateralOffset)
Construct a new Lane.
|
Lane(CrossSectionLink parentLink,
String id,
Length lateralOffsetAtStart,
Length lateralOffsetAtEnd,
Length beginWidth,
Length endWidth,
LaneType laneType,
Speed speedLimit)
Construct a new Lane.
|
Lane(CrossSectionLink parentLink,
String id,
Length lateralOffsetAtStart,
Length lateralOffsetAtEnd,
Length beginWidth,
Length endWidth,
LaneType laneType,
Speed speedLimit,
boolean fixGradualLateralOffset)
Construct a new Lane.
|
Lane(CrossSectionLink parentLink,
String id,
List<CrossSectionSlice> crossSectionSlices,
LaneType laneType,
Map<GTUType,Speed> speedLimitMap)
Construct a new Lane.
|
Lane(CrossSectionLink parentLink,
String id,
List<CrossSectionSlice> crossSectionSlices,
LaneType laneType,
Speed speedLimit)
Construct a new Lane.
|
LaneType(String id,
LaneType parent,
GTUCompatibility<LaneType> compatibility,
RoadNetwork network)
Create a new Lane type with a compatibility set.
|
| Constructor and Description |
|---|
LaneType(String id,
GTUCompatibility<LaneType> compatibility,
RoadNetwork network)
Create a new Lane type with a compatibility set.
|
LaneType(String id,
LaneType parent,
GTUCompatibility<LaneType> compatibility,
RoadNetwork network)
Create a new Lane type with a compatibility set.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.