| Package | Description |
|---|---|
| org.opentrafficsim.core.car |
Classes that extend the GTU to car behavior.
|
| org.opentrafficsim.core.gtu.generator |
Generate GTUs.
|
| org.opentrafficsim.core.gtu.lane |
The lane-based GTUs are the Generalized Travel Units that stay in lanes,
and need to switch lanes to overtake.
|
| org.opentrafficsim.core.network.animation |
Animation for Links, Lanes, Nodes.
|
| org.opentrafficsim.core.network.factory |
Factories for Links, Lanes, Nodes.
|
| org.opentrafficsim.core.network.lane |
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
|
| org.opentrafficsim.core.network.route |
Routes and route probabilities.
|
| org.opentrafficsim.graphs |
Basic graphs for traffic simulation.
|
| org.opentrafficsim.importexport.osm.output |
OpenStreetMap output.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder.getInitialLongitudinalPositions() |
| Modifier and Type | Method and Description |
|---|---|
LaneBasedTemplateCar.LaneBasedTemplateCarBuilder<ID> |
LaneBasedTemplateCar.LaneBasedTemplateCarBuilder.setInitialLongitudinalPositions(Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions) |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder<ID> |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder.setInitialLongitudinalPositions(Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions) |
| Modifier and Type | Method and Description |
|---|---|
HeadwayGTU |
AbstractGTUGenerator.headway(DoubleScalar.Rel<LengthUnit> maxDistance,
Route route,
Lane generatorLane)
Check the available headway for GTU that is about to be constructed.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Lane,Double> |
LaneBasedGTU.fractionalPositions(RelativePosition relativePosition)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered, as fractions of the length of the lane.
|
Map<Lane,Double> |
AbstractLaneBasedGTU.fractionalPositions(RelativePosition relativePosition)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered, as fractions of the length of the lane.
|
Map<Lane,Double> |
LaneBasedGTU.fractionalPositions(RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered, as fractions of the length of the lane.
|
Map<Lane,Double> |
AbstractLaneBasedGTU.fractionalPositions(RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered, as fractions of the length of the lane.
|
List<Lane> |
AbstractLaneBasedGTU.getLanes() |
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
LaneBasedGTU.positions(RelativePosition relativePosition)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
AbstractLaneBasedGTU.positions(RelativePosition relativePosition)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
LaneBasedGTU.positions(RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
AbstractLaneBasedGTU.positions(RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LaneBasedGTU.addFrontToSubsequentLane(Lane lane)
Register the lane with a GTU, at the start of the lane.
|
void |
AbstractLaneBasedGTU.addFrontToSubsequentLane(Lane lane) |
void |
LaneBasedGTU.addLane(Lane lane,
DoubleScalar.Rel<LengthUnit> position)
insert GTU at a certain position.
|
void |
AbstractLaneBasedGTU.addLane(Lane lane,
DoubleScalar.Rel<LengthUnit> position)
insert GTU at a certain position.
|
double |
LaneBasedGTU.fractionalPosition(Lane lane,
RelativePosition relativePosition)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane, as a fraction
of the length of the lane.
|
double |
AbstractLaneBasedGTU.fractionalPosition(Lane lane,
RelativePosition relativePosition)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane, as a fraction
of the length of the lane.
|
double |
LaneBasedGTU.fractionalPosition(Lane lane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane, as a fraction
of the length of the lane.
|
double |
AbstractLaneBasedGTU.fractionalPosition(Lane lane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane, as a fraction
of the length of the lane.
|
HeadwayGTU |
LaneBasedGTU.headway(Lane lane,
DoubleScalar.Rel<LengthUnit> maxDistance)
Determine by what distance the front of this GTU is behind the rear an other GTU, or the rear of this GTU is ahead of the
front of an other GTU.
|
HeadwayGTU |
AbstractLaneBasedGTU.headway(Lane lane,
DoubleScalar.Rel<LengthUnit> maxDistance)
Determine by what distance the front of this GTU is behind the rear an other GTU, or the rear of this GTU is ahead of the
front of an other GTU.
|
Set<LaneBasedGTU<?>> |
LaneBasedGTU.parallel(Lane lane,
DoubleScalar.Abs<TimeUnit> when)
Determine which GTUs are parallel with us on another lane, based on fractional positions.
|
Set<LaneBasedGTU<?>> |
AbstractLaneBasedGTU.parallel(Lane lane,
DoubleScalar.Abs<TimeUnit> when)
Determine which GTUs are parallel with us on another lane, based on fractional positions.
|
DoubleScalar.Rel<LengthUnit> |
LaneBasedGTU.position(Lane lane,
RelativePosition relativePosition)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane at the current
simulation time.
|
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedGTU.position(Lane lane,
RelativePosition relativePosition)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane at the current
simulation time.
|
DoubleScalar.Rel<LengthUnit> |
LaneBasedGTU.position(Lane lane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedGTU.position(Lane lane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
DoubleScalar.Rel<LengthUnit> |
LaneBasedGTU.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedGTU.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
void |
LaneBasedGTU.removeLane(Lane lane)
Unregister the GTU from a lane.
|
void |
AbstractLaneBasedGTU.removeLane(Lane lane)
Unregister the GTU from a lane.
|
String |
AbstractLaneBasedGTU.toString(Lane lane,
DoubleScalar.Abs<TimeUnit> when)
Description of Car at specified time.
|
| Constructor and Description |
|---|
AbstractLaneBasedGTU(ID id,
GTUType<?> gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions,
DoubleScalar.Abs<SpeedUnit> initialSpeed,
Route route,
OTSDEVSSimulatorInterface simulator)
Construct a Lane Based GTU.
|
AbstractLaneBasedIndividualGTU(ID id,
GTUType<?> gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions,
DoubleScalar.Abs<SpeedUnit> initialSpeed,
DoubleScalar.Rel<LengthUnit> length,
DoubleScalar.Rel<LengthUnit> width,
DoubleScalar.Abs<SpeedUnit> maximumVelocity,
Route route,
OTSDEVSSimulatorInterface simulator)
Construct a new AbstractLaneBasedIndividualGTU.
|
AbstractLaneBasedTemplateGTU(ID id,
TemplateGTUType<?> templateGTUType,
GTUFollowingModel gtuFollowingModel,
Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions,
DoubleScalar.Abs<SpeedUnit> initialSpeed,
Route route) |
| Constructor and Description |
|---|
LaneAnimation(Lane source,
OTSSimulatorInterface simulator,
Color color) |
| Modifier and Type | Method and Description |
|---|---|
static Lane |
LaneFactory.makeLane(String name,
NodeGeotools.STR from,
NodeGeotools.STR to,
com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates,
LaneType<String> laneType,
DoubleScalar.Abs<SpeedUnit> speedLimit,
OTSDEVSSimulatorInterface simulator)
Create a simple Lane.
|
static Lane[] |
LaneFactory.makeMultiLane(String name,
NodeGeotools.STR from,
NodeGeotools.STR to,
com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates,
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[] |
LaneFactory.makeMultiLane(String name,
NodeGeotools.STR from,
NodeGeotools.STR to,
com.vividsolutions.jts.geom.Coordinate[] intermediateCoordinates,
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
NoTrafficLane
Lane without traffic, e.g.
|
class |
SinkLane
Lane that deletes a vehicle and unregisters its animation when the vehicle enters the lanee with its front.
|
class |
SourceLane
Lane that creates GTUs.
|
| Modifier and Type | Method and Description |
|---|---|
Lane |
Lane.bestAccessibleAdjacentLane(LateralDirectionality lateralDirection,
DoubleScalar.Rel<LengthUnit> longitudinalPosition,
GTUType<?> gtuType)
Determine whether there is a lane to the left or to the right of this lane, which is accessible from this lane,
or null if no lane could be found.
|
Lane |
Sensor.getLane() |
Lane |
LaneLocation.getLane() |
Lane |
AbstractSensor.getLane() |
| Modifier and Type | Method and Description |
|---|---|
Set<Lane> |
Lane.accessibleAdjacentLanes(LateralDirectionality lateralDirection,
GTUType<?> gtuType)
Determine the set of lanes to the left or to the right of this lane, which are accessible from this lane, or an
empty set if no lane could be found.
|
Set<Lane> |
Lane.nextLanes()
The next lane(s) are cached, as it is too expensive to make the calculation every time.
|
Set<Lane> |
Lane.prevLanes()
The previous lane(s) are cached, as it is too expensive to make the calculation every time.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Lane.addAccessibleAdjacentLane(Lane adjacentLane,
LateralDirectionality direction)
Indicate that a Lane is adjacent to this Lane.
|
void |
Lane.removeAccessibleAdjacentLane(Lane adjacentLane,
LateralDirectionality direction)
Indicate that a Lane is no longer adjacent to this Lane (may be useful for lanes that are sometimes closed, e.g.
|
| Constructor and Description |
|---|
AbstractSensor(Lane lane,
DoubleScalar.Rel<LengthUnit> longitudinalPosition,
RelativePosition.TYPE positionType) |
LaneLocation(Lane lane,
double fractionalLongitudinalPosition) |
LaneLocation(Lane lane,
DoubleScalar.Rel<LengthUnit> position) |
SensorLaneEnd(Lane lane)
Place a sensor that is triggered with the back of the GTU one ulp (see
Math.ulp(double d)) before
the end of the lane to make sure it will always be triggered, independent of the algorithm used to move the GTU. |
SensorLaneStart(Lane lane)
Place a sensor that is triggered with the front of the GTU at the start of the lane.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<LengthUnit> |
Route.suitability(Lane lane,
DoubleScalar.Rel<LengthUnit> longitudinalPosition,
GTUType<?> gtuType,
DoubleScalar.Rel<TimeUnit> timeHorizon)
Determine the suitability of being at a particular longitudinal position in a particular Lane for following this
Route.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TrajectoryPlot.addData(AbstractLaneBasedGTU<?> car,
Lane lane)
Add the movement of an AbstractLaneBasedGTU to a graph.
|
void |
LaneBasedGTUSampler.addData(AbstractLaneBasedGTU<?> gtu,
Lane lane)
Add the movement of an AbstractLaneBasedGTU to a graph.
|
void |
ContourPlot.addData(AbstractLaneBasedGTU<?> car,
Lane lane)
Add the movement of an AbstractLaneBasedGTU to a graph.
|
| Constructor and Description |
|---|
FundamentalDiagram(String caption,
DoubleScalar.Rel<TimeUnit> aggregationTime,
Lane lane,
DoubleScalar.Rel<LengthUnit> position)
Graph a Fundamental Diagram.
|
| Constructor and Description |
|---|
AccelerationContourPlot(String caption,
List<Lane> path)
Create a new AccelerationContourPlot.
|
ContourPlot(String caption,
org.opentrafficsim.graphs.Axis xAxis,
List<Lane> path,
double redValue,
double yellowValue,
double greenValue,
String valueFormat,
String legendFormat,
double legendStep)
Create a new ContourPlot.
|
DensityContourPlot(String caption,
List<Lane> path)
Create a new DensityContourPlot.
|
FlowContourPlot(String caption,
List<Lane> path)
Create a new FlowContourPlot.
|
SpeedContourPlot(String caption,
List<Lane> path)
Create a new SpeedContourPlot.
|
TrajectoryPlot(String caption,
DoubleScalar.Rel<TimeUnit> sampleInterval,
List<Lane> path)
Create a new TrajectoryPlot.
|
| Modifier and Type | Method and Description |
|---|---|
List<Lane> |
Convert.makeLanes(OSMLink osmlink,
OTSDEVSSimulatorInterface simulator,
WarningListener warningListener)
This method creates lanes out of an OSM link LaneTypes are not jet extensive and can be further increased through
Tags provided by OSM.
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.