Package | Description |
---|---|
org.opentrafficsim.road.gtu.generator |
Generate GTUs according to some prescription.
|
org.opentrafficsim.road.gtu.lane.perception |
Implementation of lane-based perception for the GTU.
|
org.opentrafficsim.road.gtu.lane.perception.categories.neighbors |
Contains perception categories to perceive neighbors.
|
org.opentrafficsim.road.gtu.lane.perception.headway |
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
org.opentrafficsim.road.gtu.lane.tactical.util |
Static methods for composition in tactical planners.
|
org.opentrafficsim.road.gtu.lane.tactical.util.lmrs |
LMRS (Lane change Model with Relaxation and Synchronization) utilities for tactical planner.
|
org.opentrafficsim.road.network.lane.conflict |
Contains classes describing intersection conflicts.
|
Modifier and Type | Method and Description |
---|---|
LaneBasedGTUGenerator.Placement |
TTCRoomChecker.canPlace(SortedSet<HeadwayGTU> leaders,
LaneBasedGTUCharacteristics characteristics,
Duration since,
Set<DirectedLanePosition> initialPosition)
Return the maximum safe speed and position for a new GTU with the specified characteristics.
|
LaneBasedGTUGenerator.Placement |
LaneBasedGTUGenerator.RoomChecker.canPlace(SortedSet<HeadwayGTU> leaders,
LaneBasedGTUCharacteristics characteristics,
Duration since,
Set<DirectedLanePosition> initialPosition)
Return the maximum safe speed and position for a new GTU with the specified characteristics.
|
LaneBasedGTUGenerator.Placement |
CFRoomChecker.canPlace(SortedSet<HeadwayGTU> leaders,
LaneBasedGTUCharacteristics characteristics,
Duration since,
Set<DirectedLanePosition> initialPosition)
Return the maximum safe speed and position for a new GTU with the specified characteristics.
|
Modifier and Type | Method and Description |
---|---|
HeadwayGTU |
UpstreamNeighborsIterable.perceive(LaneBasedGTU perceivingGtu,
LaneBasedGTU object,
Length distance)
Returns a perceived version of the underlying object.
|
HeadwayGTU |
DownstreamNeighborsIterable.perceive(LaneBasedGTU perceivingGtu,
LaneBasedGTU object,
Length distance)
Returns a perceived version of the underlying object.
|
Modifier and Type | Method and Description |
---|---|
HeadwayGTU |
HeadwayGtuType.createDownstreamGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance)
Creates a headway object from a GTU, downstream.
|
HeadwayGTU |
HeadwayGtuType.PerceivedHeadwayGtuType.createDownstreamGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance)
Creates a headway object from a GTU, downstream.
|
default HeadwayGTU |
HeadwayGtuType.createHeadwayGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance,
boolean downstream)
Creates a headway object from a GTU, downstream or upstream.
|
HeadwayGTU |
HeadwayGtuType.PerceivedHeadwayGtuType.createHeadwayGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance,
boolean downstream)
Creates a headway object from a GTU, downstream or upstream.
|
HeadwayGTU |
HeadwayGtuType.createParallelGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length overlapFront,
Length overlap,
Length overlapRear)
Creates a headway object from a GTU, parallel.
|
HeadwayGTU |
HeadwayGtuType.PerceivedHeadwayGtuType.createParallelGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length overlapFront,
Length overlap,
Length overlapRear)
Creates a headway object from a GTU, parallel.
|
HeadwayGTU |
HeadwayGtuType.createUpstreamGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance)
Creates a headway object from a GTU, downstream.
|
HeadwayGTU |
HeadwayGtuType.PerceivedHeadwayGtuType.createUpstreamGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance)
Creates a headway object from a GTU, downstream.
|
Modifier and Type | Method and Description |
---|---|
SortedSet<HeadwayGTU> |
NeighborsPerception.getFirstFollowers(LateralDirectionality lat)
Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
HistoricalNeighborsPerception.getFirstFollowers(LateralDirectionality lat)
Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
DirectNeighborsPerception.getFirstFollowers(LateralDirectionality lat)
Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
DelayedNeighborsPerception.getFirstFollowers(LateralDirectionality lat)
Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
NeighborsPerception.getFirstLeaders(LateralDirectionality lat)
Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
HistoricalNeighborsPerception.getFirstLeaders(LateralDirectionality lat)
Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
DirectNeighborsPerception.getFirstLeaders(LateralDirectionality lat)
Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate
GTU.
|
SortedSet<HeadwayGTU> |
DelayedNeighborsPerception.getFirstLeaders(LateralDirectionality lat)
Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate
GTU.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
NeighborsPerception.getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
HistoricalNeighborsPerception.getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
DirectNeighborsPerception.getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
DelayedNeighborsPerception.getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
static AbstractDelayedNeighborsPerception.NeighborsInfoType<PerceptionCollectable<HeadwayGTU,LaneBasedGTU>> |
AbstractDelayedNeighborsPerception.NeighborsInfoType.getIterableType(String id)
Returns a (cached) info type for a sorted set of GTU's.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
NeighborsPerception.getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
HistoricalNeighborsPerception.getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
DirectNeighborsPerception.getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
DelayedNeighborsPerception.getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
static AbstractDelayedNeighborsPerception.NeighborsInfoType<SortedSet<HeadwayGTU>> |
AbstractDelayedNeighborsPerception.NeighborsInfoType.getSortedSetType(String id)
Returns a (cached) info type for a sorted set of GTU's.
|
TimeStampedObject<SortedSet<HeadwayGTU>> |
DirectNeighborsPerception.getTimeStampedFirstFollowers(LateralDirectionality lat)
Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate
GTU.
|
TimeStampedObject<SortedSet<HeadwayGTU>> |
DirectNeighborsPerception.getTimeStampedFirstLeaders(LateralDirectionality lat)
Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate
GTU.
|
TimeStampedObject<PerceptionCollectable<HeadwayGTU,LaneBasedGTU>> |
DirectNeighborsPerception.getTimeStampedFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's REAR is back of the own vehicle REAR.
|
TimeStampedObject<PerceptionCollectable<HeadwayGTU,LaneBasedGTU>> |
DirectNeighborsPerception.getTimeStampedLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
static SortedSet<HeadwayGTU> |
NeighborsUtil.perceive(SortedSet<NeighborsUtil.DistanceGTU> base,
HeadwayGtuType headwayGtuType,
LaneBasedGTU perceivingGtu,
boolean downstream)
Translation from a set of
DistanceGTU 's, to a sorted set of HeadwayGTU 's. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHeadwayGTU
Container for a reference to information about a (lane based) GTU and a headway.
|
class |
HeadwayGTUPerceived
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
class |
HeadwayGTUReal
Container for a reference to information about a (lane based) GTU and a headway.
|
class |
HeadwayGTURealCopy
Container for a reference to information about a (lane based) GTU and a headway.
|
class |
HeadwayGTUSimple
Container for a reference to information about a (lane based) GTU and a headway.
|
class |
HeadwayGTUType
Container for a reference to information about a (lane based) GTU and a headway.
|
Modifier and Type | Method and Description |
---|---|
HeadwayGTU |
HeadwayGTUReal.moved(Length headway,
Speed speed,
Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.
|
HeadwayGTU |
HeadwayGTU.moved(Length headway,
Speed speed,
Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.
|
Modifier and Type | Method and Description |
---|---|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
HeadwayConflict.getDownstreamConflictingGTUs()
Returns a set of conflicting GTU's downstream of the start of the conflict ordered close to far from the conflict.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
HeadwayConflict.getUpstreamConflictingGTUs()
Returns a set of conflicting GTU's upstream of the start of the conflict ordered close to far from the conflict.
|
Constructor and Description |
---|
HeadwayConflict(ConflictType conflictType,
ConflictPriority conflictPriority,
Class<? extends ConflictRule> conflictRuleType,
String id,
Length distance,
Length length,
Length conflictingLength,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs,
Length conflictingVisibility,
Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink,
HeadwayConflict.Width width)
Constructor without stop lines.
|
HeadwayConflict(ConflictType conflictType,
ConflictPriority conflictPriority,
Class<? extends ConflictRule> conflictRuleType,
String id,
Length distance,
Length length,
Length conflictingLength,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs,
Length conflictingVisibility,
Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink,
HeadwayConflict.Width width)
Constructor without stop lines.
|
HeadwayConflict(ConflictType conflictType,
ConflictPriority conflictPriority,
Class<? extends ConflictRule> conflictRuleType,
String id,
Length distance,
Length length,
Length conflictingLength,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs,
Length conflictingVisibility,
Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink,
HeadwayConflict.Width width,
HeadwayStopLine stopLine,
HeadwayStopLine conflictingStopLine)
Constructor.
|
HeadwayConflict(ConflictType conflictType,
ConflictPriority conflictPriority,
Class<? extends ConflictRule> conflictRuleType,
String id,
Length distance,
Length length,
Length conflictingLength,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs,
Length conflictingVisibility,
Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink,
HeadwayConflict.Width width,
HeadwayStopLine stopLine,
HeadwayStopLine conflictingStopLine)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Acceleration |
CarFollowingUtil.followSingleLeader(CarFollowingModel carFollowingModel,
Parameters parameters,
Speed speed,
SpeedLimitInfo speedLimitInfo,
HeadwayGTU leader)
Follow a set of headway GTUs.
|
Modifier and Type | Method and Description |
---|---|
static Acceleration |
ConflictUtil.approachConflicts(Parameters parameters,
PerceptionCollectable<HeadwayConflict,Conflict> conflicts,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
CarFollowingModel carFollowingModel,
Length vehicleLength,
Length vehicleWidth,
Speed speed,
Acceleration acceleration,
SpeedLimitInfo speedLimitInfo,
ConflictUtil.ConflictPlans conflictPlans,
LaneBasedGTU gtu)
Approach conflicts by applying appropriate acceleration (or deceleration).
|
static boolean |
ConflictUtil.stopForGiveWayConflict(HeadwayConflict conflict,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
Speed speed,
Acceleration acceleration,
Length vehicleLength,
Parameters parameters,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel,
ParameterTypeAcceleration bType)
Approach a give-way conflict.
|
static boolean |
ConflictUtil.stopForPriorityConflict(HeadwayConflict conflict,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
Speed speed,
Length vehicleLength,
Parameters parameters,
ConflictUtil.ConflictPlans yieldPlans)
Approach a priority conflict.
|
static boolean |
ConflictUtil.stopForStopConflict(HeadwayConflict conflict,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
Speed speed,
Acceleration acceleration,
Length vehicleLength,
Parameters parameters,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel,
ParameterTypeAcceleration bType)
Approach a stop conflict.
|
Modifier and Type | Method and Description |
---|---|
static HeadwayGTU |
Synchronization.getFollower(HeadwayGTU gtu,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
HeadwayGTU follower,
Length ownLength)
Returns the upstream gtu of the given gtu.
|
static HeadwayGTU |
Synchronization.getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
Modifier and Type | Method and Description |
---|---|
static PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
Synchronization.removeAllUpstreamOfConflicts(PerceptionCollectable<HeadwayGTU,LaneBasedGTU> set,
LanePerception perception,
RelativeLane relativeLane)
Removes all GTUs from the set, that are found upstream on the conflicting lane of a conflict in the current lane.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Synchronization.canBeAhead(HeadwayGTU adjacentVehicle,
Length xCur,
int nCur,
Speed ownSpeed,
Length ownLength,
Speed tagSpeed,
double dCoop,
Acceleration b,
Duration tMin,
Duration tMax,
Length x0,
Duration t0,
Duration lc,
double desire)
Returns whether a driver estimates it can be ahead of an adjacent vehicle for merging.
|
static HeadwayGTU |
Synchronization.getFollower(HeadwayGTU gtu,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
HeadwayGTU follower,
Length ownLength)
Returns the upstream gtu of the given gtu.
|
static HeadwayGTU |
Synchronization.getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
static Acceleration |
Synchronization.tagAlongAcceleration(HeadwayGTU leader,
Speed followerSpeed,
Length followerLength,
Speed tagSpeed,
double desire,
Parameters params,
SpeedLimitInfo sli,
CarFollowingModel cfm)
Calculates acceleration by following an adjacent vehicle, with tagging along if desire is not very high and speed is low.
|
Modifier and Type | Method and Description |
---|---|
static HeadwayGTU |
Synchronization.getFollower(HeadwayGTU gtu,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
HeadwayGTU follower,
Length ownLength)
Returns the upstream gtu of the given gtu.
|
static HeadwayGTU |
Synchronization.getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
static PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
Synchronization.removeAllUpstreamOfConflicts(PerceptionCollectable<HeadwayGTU,LaneBasedGTU> set,
LanePerception perception,
RelativeLane relativeLane)
Removes all GTUs from the set, that are found upstream on the conflicting lane of a conflict in the current lane.
|
Modifier and Type | Method and Description |
---|---|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
Conflict.getDownstreamGtus(LaneBasedGTU perceivingGtu,
HeadwayGtuType headwayGtuType,
Length visibility)
Provides the downstream GTUs.
|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
Conflict.getUpstreamGtus(LaneBasedGTU perceivingGtu,
HeadwayGtuType headwayGtuType,
Length visibility)
Provides the upstream GTUs.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.