public interface Synchronization extends LmrsParameters
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static Synchronization |
ACTIVE
Synchronization where a suitable leader is actively targeted, in relation to infrastructure.
|
static Synchronization |
DEADEND
Synchronization that only includes stopping for a dead-end.
|
static Synchronization |
PASSIVE
Synchronization where current leaders are taken.
|
static Synchronization |
PASSIVE_MOVING
Synchronization where current leaders are taken.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
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 Acceleration |
gentleUrgency(Acceleration a,
double desire,
Parameters params)
Return limited deceleration.
|
static HeadwayGTU |
getFollower(HeadwayGTU gtu,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
HeadwayGTU follower,
Length ownLength)
Returns the upstream gtu of the given gtu.
|
static Length |
getMergeDistance(LanePerception perception,
LateralDirectionality lat)
Returns the distance to the next merge, stopping within this distance is futile for a lane change.
|
static HeadwayGTU |
getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
static PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
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.
|
static Length |
requiredBufferSpace(Speed speed,
int nCur,
Length x0,
Duration t0,
Duration lc,
double dCoop)
Returns the required buffer space to perform a lane change and further lane changes.
|
static Acceleration |
stopForEnd(Length xCur,
Length xMerge,
Parameters params,
Speed ownSpeed,
CarFollowingModel cfm,
SpeedLimitInfo sli)
Calculates acceleration to stop for a split or dead-end, accounting for infrastructure.
|
Acceleration |
synchronize(LanePerception perception,
Parameters params,
SpeedLimitInfo sli,
CarFollowingModel cfm,
double desire,
LateralDirectionality lat,
LmrsData lmrsData)
Determine acceleration for synchronization.
|
static Acceleration |
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.
|
static final Synchronization DEADEND
static final Synchronization PASSIVE
static final Synchronization PASSIVE_MOVING
static final Synchronization ACTIVE
static Length getMergeDistance(LanePerception perception, LateralDirectionality lat) throws OperationalPlanException
perception
- LanePerception; perceptionlat
- LateralDirectionality; lateral directionOperationalPlanException
- if there is no infrastructure perceptionAcceleration synchronize(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, LateralDirectionality lat, LmrsData lmrsData) throws ParameterException, OperationalPlanException
perception
- perceptionparams
- parameterssli
- speed limit infocfm
- car-following modeldesire
- level of lane change desirelat
- lateral direction for synchronizationlmrsData
- LMRS dataParameterException
- if a parameter is not definedOperationalPlanException
- perception exceptionstatic PerceptionCollectable<HeadwayGTU,LaneBasedGTU> removeAllUpstreamOfConflicts(PerceptionCollectable<HeadwayGTU,LaneBasedGTU> set, LanePerception perception, RelativeLane relativeLane) throws OperationalPlanException
set
- set of GTUsperception
- perceptionrelativeLane
- relative laneOperationalPlanException
- if the IntersectionPerception
category is not presentstatic Acceleration gentleUrgency(Acceleration a, double desire, Parameters params) throws ParameterException
b
for d < dCoop
. Beyond dCoop
the limit
is a linear interpolation between b
and bCrit
.a
- acceleration to limitdesire
- lane change desireparams
- parametersParameterException
- when parameter is no available or value out of rangestatic HeadwayGTU getFollower(HeadwayGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, HeadwayGTU follower, Length ownLength)
gtu
- gtuleaders
- leaders of own vehiclefollower
- following vehicle of own vehicleownLength
- own vehicle lengthstatic Acceleration tagAlongAcceleration(HeadwayGTU leader, Speed followerSpeed, Length followerLength, Speed tagSpeed, double desire, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm) throws ParameterException
leader
- leaderfollowerSpeed
- follower speedfollowerLength
- follower lengthtagSpeed
- maximum tag along speeddesire
- lane change desireparams
- parameterssli
- speed limit infocfm
- car-following modelParameterException
- if a parameter is not presentstatic boolean 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) throws ParameterException
adjacentVehicle
- adjacent vehiclexCur
- remaining distancenCur
- number of lane changes to performownSpeed
- own speedownLength
- own lengthtagSpeed
- maximum tag along speeddCoop
- cooperation thresholdb
- critical decelerationtMin
- minimum headwaytMax
- normal headwayx0
- anticipation distancet0
- anticipation timelc
- lane change durationdesire
- lane change desireParameterException
- if parameter is not definedstatic Length requiredBufferSpace(Speed speed, int nCur, Length x0, Duration t0, Duration lc, double dCoop)
speed
- representative speednCur
- number of required lane changesx0
- anticipation distancet0
- anticipation timelc
- lane change durationdCoop
- cooperation thresholdstatic Acceleration stopForEnd(Length xCur, Length xMerge, Parameters params, Speed ownSpeed, CarFollowingModel cfm, SpeedLimitInfo sli) throws ParameterException
xCur
- remaining distance to endxMerge
- distance until merge pointparams
- parametersownSpeed
- own speedcfm
- car-following modelsli
- speed limit infoParameterException
- if parameter is not definedstatic HeadwayGTU getTargetLeader(HeadwayGTU gtu, SortedSet<HeadwayGTU> leaders)
gtu
- gtuleaders
- leadersCopyright © 2014–2018 Delft University of Technology. All rights reserved.