| Package | Description |
|---|---|
| org.opentrafficsim.core.car |
Classes that extend the GTU to car behavior.
|
| org.opentrafficsim.core.geometry |
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| org.opentrafficsim.core.gtu.following |
GTU (Car) following models such as IDM+.
|
| org.opentrafficsim.core.gtu.generator |
Generate GTUs according to some prescription.
|
| org.opentrafficsim.core.gtu.lane |
The lane-based GTUs are the Generalized Travel Units that travel in lanes,
and need to switch lanes to overtake.
|
| org.opentrafficsim.core.network |
Classes that build a network with nodes, links, and cross-sections.
|
| org.opentrafficsim.core.network.factory |
Factories for Links, Lanes, Nodes.
|
| org.opentrafficsim.core.network.factory.opendrive |
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| org.opentrafficsim.core.network.factory.xml |
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| org.opentrafficsim.core.network.factory.xml.units |
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| 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.
|
| org.opentrafficsim.simulationengine |
Wrappers and stubs for the DSOL simulation engine.
|
| Modifier and Type | Method and Description |
|---|---|
LaneBasedTemplateCar |
LaneBasedTemplateCar.LaneBasedTemplateCarBuilder.build() |
| Constructor and Description |
|---|
LaneBasedIndividualCar(String id,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> length,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> maximumVelocity,
LaneBasedRouteNavigator routeNavigator,
OTSDEVSSimulatorInterface simulator) |
LaneBasedIndividualCar(String id,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> length,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> maximumVelocity,
LaneBasedRouteNavigator routeNavigator,
OTSDEVSSimulatorInterface simulator,
Class<? extends Renderable2D> animationClass,
GTUColorer gtuColorer)
Construct a new LaneBasedIndividualCar.
|
LaneBasedTemplateCar(String id,
TemplateGTUType templateGtuType,
GTUFollowingModel gtuFollowingModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
CompleteLaneBasedRouteNavigator routeNavigator) |
LaneBasedTemplateCar(String id,
TemplateGTUType templateGtuType,
GTUFollowingModel gtuFollowingModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
CompleteLaneBasedRouteNavigator routeNavigator,
Class<? extends Renderable2D> animationClass) |
| Modifier and Type | Method and Description |
|---|---|
DirectedPoint |
OTSLine3D.getLocation(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position)
Get the location at a position on the line, with its direction.
|
DirectedPoint |
OTSLine3D.getLocationExtended(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position)
Get the location at a position on the line, with its direction.
|
DirectedPoint |
OTSLine3D.getLocationExtendedSI(double positionSI)
Get the location at a position on the line, with its direction.
|
DirectedPoint |
OTSLine3D.getLocationFraction(double fraction)
Get the location at a fraction of the line, with its direction.
|
DirectedPoint |
OTSLine3D.getLocationSI(double positionSI)
Get the location at a position on the line, with its direction.
|
| Modifier and Type | Method and Description |
|---|---|
DualAccelerationStep |
GTUFollowingModel.computeAcceleration(LaneBasedGTU referenceGTU,
Collection<HeadwayGTU> otherGTUs,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit)
Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present
(inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned. Two AccelerationStep values are returned in a DualAccelerationStep. TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their leader, or should slow down for a crossing from accelerating to unsafe speeds. |
DualAccelerationStep |
AbstractGTUFollowingModel.computeAcceleration(LaneBasedGTU referenceGTU,
Collection<HeadwayGTU> otherGTUs,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit)
Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present
(inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned. Two AccelerationStep values are returned in a DualAccelerationStep. TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their leader, or should slow down for a crossing from accelerating to unsafe speeds. |
AccelerationStep |
GTUFollowingModel.computeAcceleration(LaneBasedGTU follower,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> leaderSpeed,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> headway,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their leader, or should slow down for a crossing from accelerating to unsafe speeds. |
AccelerationStep |
GTUFollowingModel.computeAccelerationWithNoLeader(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit)
Compute the acceleration that would be used if the is not leader in sight.
|
AccelerationStep |
AbstractGTUFollowingModel.computeAccelerationWithNoLeader(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit)
Compute the acceleration that would be used if the is not leader in sight.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
AbstractGTUGenerator.enoughSpace(LaneBasedIndividualCar.LaneBasedIndividualCarBuilder carBuilder)
Check if the car to be built is not overlapping with another GTU on the same lane, and if it has enough headway to be
generated safely.
|
HeadwayGTU |
AbstractGTUGenerator.headway(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> maxDistance,
LaneBasedRouteNavigator routeNavigator,
Lane generatorLane)
Check the available headway for GTU that is about to be constructed.
|
| Constructor and Description |
|---|
ListGTUGenerator(String name,
OTSDEVSSimulatorInterface simulator,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position,
LaneBasedRouteGenerator routeGenerator,
GTUColorer gtuColorer,
String fileName)
Construct a GTU generator that takes the times to generate another GTU from an external source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LaneBlock.enterLane(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position)
insert GTU at a certain position.
|
void |
LaneBasedGTU.enterLane(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position)
insert GTU at a certain position.
|
void |
AbstractTrafficLight.enterLane(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position)
insert GTU at a certain position.
|
void |
AbstractLaneBasedGTU.enterLane(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position)
insert GTU at a certain position.
|
double |
LaneBlock.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)
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 |
AbstractTrafficLight.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 |
LaneBlock.fractionalPosition(Lane lane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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 |
LaneBasedGTU.fractionalPosition(Lane lane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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 |
AbstractTrafficLight.fractionalPosition(Lane lane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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.
|
Map<Lane,Double> |
LaneBlock.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)
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> |
AbstractTrafficLight.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> |
LaneBlock.fractionalPositions(RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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> |
LaneBasedGTU.fractionalPositions(RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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> |
AbstractTrafficLight.fractionalPositions(RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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.
|
HeadwayGTU |
LaneBlock.headway(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> maxDistance)
Determine which GTU in front of this GTU, or behind this GTU.
|
HeadwayGTU |
LaneBasedGTU.headway(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> maxDistance)
Determine which GTU in front of this GTU, or behind this GTU.
|
HeadwayGTU |
AbstractTrafficLight.headway(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> maxDistance)
Determine which GTU in front of this GTU, or behind this GTU.
|
HeadwayGTU |
AbstractLaneBasedGTU.headway(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> maxDistance)
Determine which GTU in front of this GTU, or behind this GTU.
|
HeadwayGTU |
LaneBlock.headway(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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 |
LaneBasedGTU.headway(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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 |
AbstractTrafficLight.headway(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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.
|
protected void |
AbstractLaneBasedGTU.move()
Move this GTU to it's current location, then compute (and commit to) the next movement step.
|
Set<LaneBasedGTU> |
LaneBlock.parallel(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us on another lane, based on fractional positions.
|
Set<LaneBasedGTU> |
LaneBasedGTU.parallel(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us on another lane, based on fractional positions.
|
Set<LaneBasedGTU> |
AbstractTrafficLight.parallel(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us on another lane, based on fractional positions.
|
Set<LaneBasedGTU> |
AbstractLaneBasedGTU.parallel(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us on another lane, based on fractional positions.
|
Set<LaneBasedGTU> |
LaneBlock.parallel(LateralDirectionality lateralDirection,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us in a certain lateral direction, based on fractional positions.
|
Set<LaneBasedGTU> |
LaneBasedGTU.parallel(LateralDirectionality lateralDirection,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us in a certain lateral direction, based on fractional positions.
|
Set<LaneBasedGTU> |
AbstractTrafficLight.parallel(LateralDirectionality lateralDirection,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us in a certain lateral direction, based on fractional positions.
|
Set<LaneBasedGTU> |
AbstractLaneBasedGTU.parallel(LateralDirectionality lateralDirection,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Determine which GTUs are parallel with us in a certain lateral direction, based on fractional positions.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
LaneBlock.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.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
AbstractTrafficLight.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.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
LaneBlock.position(Lane lane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
LaneBasedGTU.position(Lane lane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
AbstractTrafficLight.position(Lane lane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
AbstractLaneBasedGTU.position(Lane lane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> |
LaneBlock.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,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> |
AbstractTrafficLight.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,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> |
LaneBlock.positions(RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> |
LaneBasedGTU.positions(RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> |
AbstractTrafficLight.positions(RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> |
AbstractLaneBasedGTU.positions(RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
LaneBlock.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
LaneBasedGTU.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
AbstractTrafficLight.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
AbstractLaneBasedGTU.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
| Constructor and Description |
|---|
AbstractLaneBasedGTU(String id,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
LaneBasedRouteNavigator routeNavigator,
OTSDEVSSimulatorInterface simulator)
Construct a Lane Based GTU.
|
AbstractLaneBasedIndividualGTU(String id,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> length,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> maximumVelocity,
LaneBasedRouteNavigator routeNavigator,
OTSDEVSSimulatorInterface simulator)
Construct a new AbstractLaneBasedIndividualGTU.
|
AbstractLaneBasedTemplateGTU(String id,
TemplateGTUType templateGTUType,
GTUFollowingModel gtuFollowingModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
CompleteLaneBasedRouteNavigator routeNavigator) |
AbstractTrafficLight(String name,
Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position,
OTSDEVSSimulatorInterface simulator) |
LaneBlock(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position,
OTSDEVSSimulatorInterface simulator,
Class<? extends Renderable2D> animationClass) |
LaneBlockOnOff(String name,
Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position,
OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
OTSNetwork.addLink(Link link) |
void |
Network.addLink(Link link) |
void |
OTSNetwork.addNode(Node node) |
void |
Network.addNode(Node node) |
void |
OTSNetwork.addRoute(Route route) |
void |
Network.addRoute(Route route) |
Link |
OTSNetwork.getLink(String nodeId1,
String nodeId2)
Find a link between node1 and node2 and return it if it exists in the network.
|
Link |
Network.getLink(String node1,
String node2)
Find a link between node1 and node2 and return it if it exists in the network.
|
static LateralDirectionality |
LateralDirectionality.offsetDirection(double offset) |
void |
OTSNetwork.removeLink(Link link) |
void |
Network.removeLink(Link link) |
void |
OTSNetwork.removeNode(Node node) |
void |
Network.removeNode(Node node) |
void |
OTSNetwork.removeRoute(Route route) |
void |
Network.removeRoute(Route route) |
| Modifier and Type | Method and Description |
|---|---|
static Lane |
LaneFactory.makeLane(String name,
OTSNode from,
OTSNode to,
OTSPoint3D[] intermediatePoints,
LaneType laneType,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit,
OTSDEVSSimulatorInterface simulator)
Create a simple Lane.
|
static Lane[] |
LaneFactory.makeMultiLane(String name,
OTSNode from,
OTSNode to,
OTSPoint3D[] intermediatePoints,
int laneCount,
int laneOffsetAtStart,
int laneOffsetAtEnd,
LaneType laneType,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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,
OTSNode from,
OTSNode to,
OTSPoint3D[] intermediatePoints,
int laneCount,
LaneType laneType,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit,
OTSDEVSSimulatorInterface simulator)
Create a simple road with the specified number of Lanes.
This method returns an array of Lane. |
| Modifier and Type | Method and Description |
|---|---|
OTSNetwork |
OpenDriveNetworkLaneParser.build(URL url) |
| Modifier and Type | Method and Description |
|---|---|
OTSNetwork |
XmlNetworkLaneParser.build(URL url) |
| Modifier and Type | Method and Description |
|---|---|
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AnglePlaneUnit> |
AngleUnits.parseAngleAbs(String s) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.AnglePlaneUnit> |
AngleUnits.parseAngleRel(String s) |
static String |
AngleUnits.parseAngleUnit(String s) |
static Color |
Colors.parseColor(String colorStr) |
static LongitudinalDirectionality |
Directions.parseDirection(String dirStr) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.LengthUnit> |
LengthUnits.parseLengthAbs(String s) |
static DistContinuousDoubleScalar.Abs<org.djunits.unit.LengthUnit> |
Distributions.parseLengthDistAbs(String s)
Parse an absolute length distribution, e.g.
|
static DistContinuousDoubleScalar.Rel<org.djunits.unit.LengthUnit> |
Distributions.parseLengthDistRel(String s)
Parse a relative length distribution, e.g.
|
static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
LengthUnits.parseLengthRel(String s) |
static String |
LengthUnits.parseLengthUnit(String s) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.LinearDensityUnit> |
LengthUnits.parsePerLengthAbs(String s) |
static String |
LengthUnits.parsePerLengthUnit(String s) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.FrequencyUnit> |
TimeUnits.parsePerTimeAbs(String s) |
static String |
TimeUnits.parsePerTimeUnit(String s) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> |
SpeedUnits.parseSpeedAbs(String s) |
static DistContinuousDoubleScalar.Abs<org.djunits.unit.SpeedUnit> |
Distributions.parseSpeedDistAbs(String s)
Parse an absolute speed distribution, e.g.
|
static DistContinuousDoubleScalar.Rel<org.djunits.unit.SpeedUnit> |
Distributions.parseSpeedDistRel(String s)
Parse a relative speed distribution, e.g.
|
static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.SpeedUnit> |
SpeedUnits.parseSpeedRel(String s) |
static String |
SpeedUnits.parseSpeedUnit(String s) |
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> |
TimeUnits.parseTimeAbs(String s) |
static DistContinuousDoubleScalar.Abs<org.djunits.unit.TimeUnit> |
Distributions.parseTimeDistAbs(String s)
Parse an absolute time distribution, e.g.
|
static DistContinuousDoubleScalar.Rel<org.djunits.unit.TimeUnit> |
Distributions.parseTimeDistRel(String s)
Parse a relative time distribution, e.g.
|
static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit> |
TimeUnits.parseTimeRel(String s) |
static String |
TimeUnits.parseTimeUnit(String s) |
| Modifier and Type | Method and Description |
|---|---|
int |
Lane.addGTU(LaneBasedGTU gtu,
double fractionalPosition)
Add a LaneBasedGTU to the list of this Lane.
|
int |
Lane.addGTU(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> longitudinalPosition)
Add a LaneBasedGTU to the list of this Lane.
|
void |
Lane.addSensor(Sensor sensor,
GTUType gtuType)
Insert the sensor at the right place in the sensor list of this lane.
|
LaneBasedGTU |
Lane.getGtuAfter(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position,
RelativePosition.TYPE relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when) |
LaneBasedGTU |
Lane.getGtuBefore(org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position,
RelativePosition.TYPE relativePosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit> when) |
void |
Lane.removeSensor(Sensor sensor)
Remove a sensor from the sensor list of this lane.
|
void |
Lane.sample(AbstractLaneBasedGTU gtu)
Add the movement of a GTU to all graphs that sample this Lane.
|
void |
Lane.scheduleTriggers(LaneBasedGTU gtu,
double referenceStartSI,
double referenceMoveSI)
Trigger the sensors for a certain time step; from now until the nextEvaluationTime of the GTU.
|
| Constructor and Description |
|---|
Barrier(CrossSectionLink parentLink,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> beginWidth,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
CrossSectionElement(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtBegin,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtEnd,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> beginWidth,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
Lane(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtStart,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtEnd,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> beginWidth,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> endWidth,
LaneType laneType,
LongitudinalDirectionality directionality,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> speedLimit) |
Lane(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtStart,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtEnd,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> beginWidth,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> endWidth,
LaneType laneType,
Map<GTUType,LongitudinalDirectionality> directionalityMap,
Map<GTUType,org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit>> speedLimitMap) |
NoTrafficLane(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtStart,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralOffsetAtEnd,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> beginWidth,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> endWidth) |
RoadMarkerAlong(CrossSectionLink parentLink,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> beginWidth,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
Shoulder(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> beginWidth,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> endWidth) |
Stripe(CrossSectionLink parentLink,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
Stripe(CrossSectionLink parentLink,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width,
Set<GTUType> gtuTypes,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for a number of GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
Stripe(CrossSectionLink parentLink,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for all GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
| Modifier and Type | Method and Description |
|---|---|
void |
Route.addNode(Node node)
Add a node to the end of the node list.
|
void |
CompleteRoute.addNode(Node node)
Add a node to the end of the node list.
|
Node |
Route.destinationNode() |
Node |
Route.getNode(int i) |
Node |
RouteNavigator.lastVisitedNode() |
Node |
CompleteRouteNavigator.lastVisitedNode() |
Node |
CompleteLaneBasedRouteNavigator.lastVisitedNode() |
Node |
RouteNavigator.nextNodeToVisit()
This method does not advance the route pointer.
|
Node |
CompleteRouteNavigator.nextNodeToVisit()
This method does not advance the route pointer.
|
Node |
CompleteLaneBasedRouteNavigator.nextNodeToVisit()
This method does not advance the route pointer.
|
Node |
Route.originNode() |
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
LaneBasedRouteNavigator.suitability(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> longitudinalPosition,
GTUType gtuType,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit> timeHorizon)
Determine the suitability of being at a particular longitudinal position in a particular Lane for following this Route.
|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
CompleteLaneBasedRouteNavigator.suitability(Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> longitudinalPosition,
GTUType gtuType,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit> timeHorizon)
Determine the suitability of being at a particular longitudinal position in a particular Lane for following this Route.
|
Node |
RouteNavigator.visitNextNode()
This method does advance the route pointer (if possible).
|
Node |
CompleteRouteNavigator.visitNextNode()
This method does advance the route pointer (if possible).
|
Node |
CompleteLaneBasedRouteNavigator.visitNextNode()
This method does advance the route pointer (if possible).
|
| Constructor and Description |
|---|
CompleteRoute(String id,
List<Node> nodes)
Create a route based on an initial list of nodes.
|
ProbabilisticLaneBasedRouteGenerator(List<ProbabilisticLaneBasedRouteGenerator.LaneBasedRouteProbability> laneBasedRouteProbabilities,
StreamInterface stream)
Construct a new ProbabilistiRouteGenerator using the given random stream.
|
ProbabilisticRouteGenerator(List<ProbabilisticRouteGenerator.RouteProbability> routeProbabilities,
StreamInterface stream)
Construct a new ProbabilistiRouteGenerator using the given random stream.
|
| 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,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit> aggregationTime,
Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position)
Graph a Fundamental Diagram.
|
| 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 yet extensive and can be further increased through Tags
provided by OSM.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleSimulation |
WrappableSimulation.buildSimulator(ArrayList<AbstractProperty<?>> properties,
Rectangle rect,
boolean exitOnClose)
Build the simulation.
|
SimpleSimulation |
WrappableSimulation.rebuildSimulator(Rectangle rect)
Restart (rebuild) the simulation.
|
SimpleSimulation |
AbstractWrappableSimulation.rebuildSimulator(Rectangle rect)
Restart (rebuild) the simulation.
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.