Package | Description |
---|---|
org.opentrafficsim.road.gtu.lane.perception.categories |
Categories define a set of perceivable information.
|
org.opentrafficsim.road.gtu.lane.perception.headway |
Copyright (c) 2013-2017 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.
|
Modifier and Type | Method and Description |
---|---|
abstract HeadwayGTU |
HeadwayGtuType.createHeadwayGtu(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length distance)
Creates a headway object from a GTU, downstream or upstream.
|
abstract HeadwayGTU |
HeadwayGtuType.createHeadwayGtu(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear)
Creates a headway object from a GTU, parallel.
|
Modifier and Type | Method and Description |
---|---|
SortedSet<HeadwayGTU> |
NeighborsPerception.getFirstFollowers(org.opentrafficsim.core.network.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(org.opentrafficsim.core.network.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(org.opentrafficsim.core.network.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(org.opentrafficsim.core.network.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(org.opentrafficsim.core.network.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(org.opentrafficsim.core.network.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> |
NeighborsPerception.getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
SortedSet<HeadwayGTU> |
DirectNeighborsPerception.getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
SortedSet<HeadwayGTU> |
DelayedNeighborsPerception.getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.
|
SortedSet<HeadwayGTU> |
NeighborsPerception.getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
SortedSet<HeadwayGTU> |
DirectNeighborsPerception.getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
SortedSet<HeadwayGTU> |
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.
|
org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayGTU>> |
DirectNeighborsPerception.getTimeStampedFirstFollowers(org.opentrafficsim.core.network.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.
|
org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayGTU>> |
DirectNeighborsPerception.getTimeStampedFirstLeaders(org.opentrafficsim.core.network.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.
|
org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayGTU>> |
DirectNeighborsPerception.getTimeStampedFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's REAR is back of the own vehicle REAR.
|
org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayGTU>> |
DirectNeighborsPerception.getTimeStampedLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractHeadwayGTU
Container for a reference to information about a (lane based) GTU and a headway.
|
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(org.djunits.value.vdouble.scalar.Length headway,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.
|
HeadwayGTU |
HeadwayGTU.moved(org.djunits.value.vdouble.scalar.Length headway,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.
|
Modifier and Type | Method and Description |
---|---|
SortedSet<HeadwayGTU> |
HeadwayConflict.getDownstreamConflictingGTUs()
Returns a set of conflicting GTU's downstream of the start of the conflict ordered close to far from the conflict.
|
SortedSet<HeadwayGTU> |
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,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length conflictingLength,
SortedSet<HeadwayGTU> upstreamConflictingGTUs,
SortedSet<HeadwayGTU> downstreamConflictingGTUs,
org.djunits.value.vdouble.scalar.Length conflictingVisibility,
org.djunits.value.vdouble.scalar.Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink)
Constructor without stop lines.
|
HeadwayConflict(ConflictType conflictType,
ConflictPriority conflictPriority,
Class<? extends ConflictRule> conflictRuleType,
String id,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length conflictingLength,
SortedSet<HeadwayGTU> upstreamConflictingGTUs,
SortedSet<HeadwayGTU> downstreamConflictingGTUs,
org.djunits.value.vdouble.scalar.Length conflictingVisibility,
org.djunits.value.vdouble.scalar.Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink)
Constructor without stop lines.
|
HeadwayConflict(ConflictType conflictType,
ConflictPriority conflictPriority,
Class<? extends ConflictRule> conflictRuleType,
String id,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length conflictingLength,
SortedSet<HeadwayGTU> upstreamConflictingGTUs,
SortedSet<HeadwayGTU> downstreamConflictingGTUs,
org.djunits.value.vdouble.scalar.Length conflictingVisibility,
org.djunits.value.vdouble.scalar.Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink,
HeadwayStopLine stopLine,
HeadwayStopLine conflictingStopLine)
Constructor.
|
HeadwayConflict(ConflictType conflictType,
ConflictPriority conflictPriority,
Class<? extends ConflictRule> conflictRuleType,
String id,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length conflictingLength,
SortedSet<HeadwayGTU> upstreamConflictingGTUs,
SortedSet<HeadwayGTU> downstreamConflictingGTUs,
org.djunits.value.vdouble.scalar.Length conflictingVisibility,
org.djunits.value.vdouble.scalar.Speed conflictingSpeedLimit,
CrossSectionLink conflictingLink,
HeadwayStopLine stopLine,
HeadwayStopLine conflictingStopLine)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.djunits.value.vdouble.scalar.Acceleration |
ConflictUtil.approachConflicts(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SortedSet<HeadwayConflict> conflicts,
SortedSet<HeadwayGTU> leaders,
CarFollowingModel carFollowingModel,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
SpeedLimitInfo speedLimitInfo,
ConflictUtil.ConflictPlans conflictPlans,
LaneBasedGTU gtu)
Approach conflicts by applying appropriate acceleration (or deceleration).
|
static org.djunits.value.vdouble.scalar.Acceleration |
CarFollowingUtil.followLeaders(CarFollowingModel carFollowingModel,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo,
SortedSet<HeadwayGTU> leaders)
Follow a set of headway GTUs.
|
static boolean |
ConflictUtil.stopForGiveWayConflict(HeadwayConflict conflict,
SortedSet<HeadwayGTU> leaders,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel)
Approach a give-way conflict.
|
static boolean |
ConflictUtil.stopForPriorityConflict(HeadwayConflict conflict,
SortedSet<HeadwayGTU> leaders,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
ConflictUtil.ConflictPlans yieldPlans)
Approach a priority conflict.
|
static boolean |
ConflictUtil.stopForStopConflict(HeadwayConflict conflict,
SortedSet<HeadwayGTU> leaders,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel)
Approach a stop conflict.
|
Modifier and Type | Method and Description |
---|---|
(package private) static HeadwayGTU |
Synchronization.getFollower(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders,
HeadwayGTU follower,
org.djunits.value.vdouble.scalar.Length ownLength)
Returns the upstream gtu of the given gtu.
|
(package private) HeadwayGTU |
LmrsData.getSyncVehicle(Set<HeadwayGTU> adjLeaders)
Returns the gtu from the set that is the current sync vehicle, or
null of there is no sync vehicle or it is not
in the set. |
(package private) static HeadwayGTU |
Synchronization.getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
Modifier and Type | Method and Description |
---|---|
(package private) static SortedSet<HeadwayGTU> |
Synchronization.removeAllUpstreamOfConflicts(SortedSet<HeadwayGTU> 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 |
---|---|
(package private) static boolean |
Synchronization.canBeAhead(HeadwayGTU adjacentVehicle,
org.djunits.value.vdouble.scalar.Length xCur,
int nCur,
org.djunits.value.vdouble.scalar.Speed ownSpeed,
org.djunits.value.vdouble.scalar.Length ownLength,
org.djunits.value.vdouble.scalar.Speed tagSpeed,
double dCoop,
org.djunits.value.vdouble.scalar.Acceleration b,
org.djunits.value.vdouble.scalar.Duration tMin,
org.djunits.value.vdouble.scalar.Duration tMax,
org.djunits.value.vdouble.scalar.Length x0,
org.djunits.value.vdouble.scalar.Duration t0,
org.djunits.value.vdouble.scalar.Duration lc,
double desire)
Returns whether a driver estimates it can be ahead of an adjacent vehicle for merging.
|
(package private) static HeadwayGTU |
Synchronization.getFollower(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders,
HeadwayGTU follower,
org.djunits.value.vdouble.scalar.Length ownLength)
Returns the upstream gtu of the given gtu.
|
(package private) static HeadwayGTU |
Synchronization.getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
(package private) boolean |
LmrsData.isNewLeader(HeadwayGTU gtu)
Checks if the given leader is a new leader.
|
(package private) boolean |
LmrsData.isSyncVehicle(HeadwayGTU gtu)
Returns whether the provided gtu is the gtu that is synchronized to.
|
(package private) void |
LmrsData.setSyncVehicle(HeadwayGTU gtu)
Remembers the gtu that is synchronized to.
|
(package private) static org.djunits.value.vdouble.scalar.Acceleration |
Synchronization.tagAlongAcceleration(HeadwayGTU leader,
org.djunits.value.vdouble.scalar.Speed followerSpeed,
org.djunits.value.vdouble.scalar.Length followerLength,
org.djunits.value.vdouble.scalar.Speed tagSpeed,
double desire,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
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 |
---|---|
(package private) static HeadwayGTU |
Synchronization.getFollower(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders,
HeadwayGTU follower,
org.djunits.value.vdouble.scalar.Length ownLength)
Returns the upstream gtu of the given gtu.
|
(package private) HeadwayGTU |
LmrsData.getSyncVehicle(Set<HeadwayGTU> adjLeaders)
Returns the gtu from the set that is the current sync vehicle, or
null of there is no sync vehicle or it is not
in the set. |
(package private) static HeadwayGTU |
Synchronization.getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
(package private) static SortedSet<HeadwayGTU> |
Synchronization.removeAllUpstreamOfConflicts(SortedSet<HeadwayGTU> 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.
|
Copyright © 2014–2017 Delft University of Technology. All rights reserved.