| Package | Description |
|---|---|
| org.opentrafficsim.core.car |
Classes that extend the GTU to car behavior.
|
| org.opentrafficsim.core.gtu |
GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.
|
| 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.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.lane |
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
|
| org.opentrafficsim.core.network.lane.changing |
Lane change possibility models.
|
| org.opentrafficsim.core.network.route |
Routes and route probabilities.
|
| org.opentrafficsim.importexport.osm |
OpenStreetMap import.
|
| org.opentrafficsim.importexport.osm.output |
OpenStreetMap output.
|
| Modifier and Type | Method and Description |
|---|---|
GTUType |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder.getGtuType() |
| Modifier and Type | Method and Description |
|---|---|
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder.setGtuType(GTUType gtuType) |
| Constructor and Description |
|---|
LaneBasedIndividualCar(String id,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,org.djunits.value.vdouble.scalar.Length.Rel> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed.Abs initialSpeed,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel width,
org.djunits.value.vdouble.scalar.Speed.Abs maximumVelocity,
LaneBasedRouteNavigator routeNavigator,
OTSDEVSSimulatorInterface simulator) |
LaneBasedIndividualCar(String id,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,org.djunits.value.vdouble.scalar.Length.Rel> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed.Abs initialSpeed,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel width,
org.djunits.value.vdouble.scalar.Speed.Abs maximumVelocity,
LaneBasedRouteNavigator routeNavigator,
OTSDEVSSimulatorInterface simulator,
Class<? extends Renderable2D> animationClass,
GTUColorer gtuColorer)
Construct a new LaneBasedIndividualCar.
|
| Modifier and Type | Field and Description |
|---|---|
static GTUType |
GTUType.ALL
ALL GTUType to be used only for permeability and accessibility.
|
static GTUType |
GTUType.NONE
NONE GTUType to be used only for permeability and accessibility.
|
| Modifier and Type | Method and Description |
|---|---|
GTUType |
TemplateGTUType.getGtuType() |
GTUType |
GTU.getGTUType() |
GTUType |
AbstractGTU.getGTUType() |
static GTUType |
GTUType.makeGTUType(String id)
Construct a new GTUType or (if it already exists) return an existing GTUType.
|
| Constructor and Description |
|---|
AbstractGTU(String id,
GTUType gtuType,
RouteNavigator routeNavigator) |
| Modifier and Type | Method and Description |
|---|---|
GTUType |
AbstractGTUGenerator.getGtuType() |
| Constructor and Description |
|---|
AbstractGTUGenerator(String name,
OTSDEVSSimulatorInterface simulator,
GTUType gtuType,
Class<?> gtuClass,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Speed.Abs,org.djunits.unit.SpeedUnit> initialSpeedDist,
ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Time.Rel,org.djunits.unit.TimeUnit> interarrivelTimeDist,
long maxGTUs,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Time.Abs endTime,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
LaneBasedRouteGenerator routeGenerator,
GTUColorer gtuColorer) |
GTUGeneratorIndividual(String name,
OTSDEVSSimulatorInterface simulator,
GTUType gtuType,
Class<?> gtuClass,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Speed.Abs,org.djunits.unit.SpeedUnit> initialSpeedDist,
ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Time.Rel,org.djunits.unit.TimeUnit> interarrivelTimeDist,
ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist,
ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist,
ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Speed.Abs,org.djunits.unit.SpeedUnit> maximumSpeedDist,
long maxGTUs,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Time.Abs endTime,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
LaneBasedRouteGenerator routeGenerator,
GTUColorer gtuColorer) |
ListGTUGenerator(String name,
OTSDEVSSimulatorInterface simulator,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
org.djunits.value.vdouble.scalar.Speed.Abs initialSpeed,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel 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 | Field and Description |
|---|---|
static GTUType |
LaneBlock.BLOCK_GTU
blocking GTU type.
|
static GTUType |
AbstractTrafficLight.BLOCK_GTU
blocking GTU type.
|
| Modifier and Type | Method and Description |
|---|---|
GTUType |
AbstractLaneBasedTemplateGTU.getGTUType() |
| Constructor and Description |
|---|
AbstractLaneBasedGTU(String id,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,org.djunits.value.vdouble.scalar.Length.Rel> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed.Abs 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.Length.Rel> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed.Abs initialSpeed,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel width,
org.djunits.value.vdouble.scalar.Speed.Abs maximumVelocity,
LaneBasedRouteNavigator routeNavigator,
OTSDEVSSimulatorInterface simulator)
Construct a new AbstractLaneBasedIndividualGTU.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,GTUType> |
OpenDriveNetworkLaneParser.gtuTypes
the GTUTypes that have been created.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,GTUType> |
XmlNetworkLaneParser.gtuTypes
the GTUTypes that have been created.
|
| 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.
|
void |
LaneType.addCompatibility(GTUType gtuType) |
void |
RoadMarkerAlong.addPermeability(GTUType gtuType,
LateralDirectionality lateralDirection)
Add lateral permeability for a GTU type in the direction of the design line of the overarching CrossSectionLink.
|
void |
Stripe.addPermeability(GTUType gtuType,
Stripe.Permeable permeable) |
void |
Lane.addSensor(Sensor sensor,
GTUType gtuType)
Insert the sensor at the right place in the sensor list of this lane.
|
LongitudinalDirectionality |
Lane.getDirectionality(GTUType gtuType) |
SortedMap<Double,List<Sensor>> |
Lane.getSensors(GTUType gtuType)
Retrieve the list of Sensors of this Lane for the given GTUType.
|
List<Sensor> |
Lane.getSensors(org.djunits.value.vdouble.scalar.Length.Rel minimumPosition,
org.djunits.value.vdouble.scalar.Length.Rel maximumPosition,
GTUType gtuType)
Retrieve the list of Sensors of this Lane in the specified distance range for the given GTUType.
|
org.djunits.value.vdouble.scalar.Speed.Abs |
Lane.getSpeedLimit(GTUType gtuType) |
boolean |
LaneType.isCompatible(GTUType gtuType) |
boolean |
RoadMarkerAlong.isPermeable(GTUType gtuType,
LateralDirectionality lateralDirection) |
Set<Lane> |
Lane.nextLanes(GTUType gtuType)
The next lane(s) are cached, as it is too expensive to make the calculation every time.
|
Set<Lane> |
Lane.prevLanes(GTUType gtuType)
The previous lane(s) are cached, as it is too expensive to make the calculation every time.
|
void |
Lane.setSpeedLimit(GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed.Abs speedLimit) |
| Constructor and Description |
|---|
Lane(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.Length.Rel lateralOffsetAtStart,
org.djunits.value.vdouble.scalar.Length.Rel lateralOffsetAtEnd,
org.djunits.value.vdouble.scalar.Length.Rel beginWidth,
org.djunits.value.vdouble.scalar.Length.Rel endWidth,
LaneType laneType,
Map<GTUType,LongitudinalDirectionality> directionalityMap,
Map<GTUType,org.djunits.value.vdouble.scalar.Speed.Abs> speedLimitMap) |
Lane(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.Length.Rel lateralOffsetAtStart,
org.djunits.value.vdouble.scalar.Length.Rel lateralOffsetAtEnd,
org.djunits.value.vdouble.scalar.Length.Rel beginWidth,
org.djunits.value.vdouble.scalar.Length.Rel endWidth,
LaneType laneType,
Map<GTUType,LongitudinalDirectionality> directionalityMap,
Map<GTUType,org.djunits.value.vdouble.scalar.Speed.Abs> speedLimitMap) |
Stripe(CrossSectionLink parentLink,
org.djunits.value.vdouble.scalar.Length.Rel lateralCenterPosition,
org.djunits.value.vdouble.scalar.Length.Rel 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. |
| Constructor and Description |
|---|
LeftSet(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs)
Provide a collection of GTUs that can overtake another collection of GTUs on the left, but not vice versa.
|
LeftSet(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs)
Provide a collection of GTUs that can overtake another collection of GTUs on the left, but not vice versa.
|
LeftSetRightSpeed(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs,
org.djunits.value.vdouble.scalar.Speed.Abs rightOvertakingSpeedMax)
Provide a collection of GTUs that can overtake another collection of GTUs on the left, but not vice versa.
|
LeftSetRightSpeed(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs,
org.djunits.value.vdouble.scalar.Speed.Abs rightOvertakingSpeedMax)
Provide a collection of GTUs that can overtake another collection of GTUs on the left, but not vice versa.
|
RightSet(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs)
Provide a collection of GTUs that can overtake another collection of GTUs on the right, but not vice versa.
|
RightSet(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs)
Provide a collection of GTUs that can overtake another collection of GTUs on the right, but not vice versa.
|
RightSetLeftSpeed(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs,
org.djunits.value.vdouble.scalar.Speed.Abs leftOvertakingSpeedMax)
Provide a collection of GTUs that can overtake another collection of GTUs on the left, but not vice versa.
|
RightSetLeftSpeed(Collection<GTUType> overtakingGTUs,
Collection<GTUType> overtakenGTUs,
org.djunits.value.vdouble.scalar.Speed.Abs leftOvertakingSpeedMax)
Provide a collection of GTUs that can overtake another collection of GTUs on the left, but not vice versa.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.djunits.value.vdouble.scalar.Length.Rel |
AbstractLaneBasedRouteNavigator.computeSuitabilityWithLaneChanges(Lane startLane,
double remainingDistance,
Map<Lane,org.djunits.value.vdouble.scalar.Length.Rel> suitabilities,
int totalLanes,
LateralDirectionality direction,
GTUType gtuType)
Compute the suitability of a lane from which lane changes are required to get to the next point on the Route.
This method weighs the suitability of the nearest suitable lane by (m - n) / m where n is the number of lane changes required and m is the total number of lanes in the CrossSectionLink. |
protected int |
AbstractLaneBasedRouteNavigator.countCompatibleLanes(CrossSectionLink link,
GTUType gtuType)
Determine how many lanes on a CrossSectionLink are compatible with a particular GTU type.
TODO: this method should probably be moved into the CrossSectionLink class |
org.djunits.value.vdouble.scalar.Length.Rel |
LaneBasedRouteNavigator.suitability(Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel longitudinalPosition,
GTUType gtuType,
org.djunits.value.vdouble.scalar.Time.Rel timeHorizon)
Determine the suitability of being at a particular longitudinal position in a particular Lane for following this Route.
|
org.djunits.value.vdouble.scalar.Length.Rel |
CompleteLaneBasedRouteNavigator.suitability(Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel longitudinalPosition,
GTUType gtuType,
org.djunits.value.vdouble.scalar.Time.Rel timeHorizon)
Determine the suitability of being at a particular longitudinal position in a particular Lane for following this Route.
|
| Modifier and Type | Field and Description |
|---|---|
static GTUType |
PredefinedGTUTypes.BIKE
Bicycle.
|
static GTUType |
PredefinedGTUTypes.BOAT
Boat.
|
static GTUType |
PredefinedGTUTypes.CAR
Car.
|
static GTUType |
PredefinedGTUTypes.PEDESTRIAN
Pedestrian.
|
| Modifier and Type | Method and Description |
|---|---|
static LaneType |
Convert.makeLaneType(GTUType gtuType)
This method creates a LaneType which supports the specified GTUType.
|
| Modifier and Type | Method and Description |
|---|---|
static LaneType |
Convert.makeLaneType(List<GTUType> gtuTypes)
This method creates a LaneType which supports all GTUTypes that have been specified in the GTUType List "GTUs".
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.