public enum Synchronization extends Enum<Synchronization> implements LmrsParameters
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Enum Constant and Description |
---|
ACTIVE
Synchronization where a suitable leader is actively targeted, in relation to infrastructure.
|
COOPERATION
Synchronization that only includes stopping for a dead-end and simple cooperation.
|
NONE
Synchronization that only includes stopping for a dead-end.
|
PASSIVE
Synchronization where current leaders are taken.
|
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
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) abstract org.djunits.value.vdouble.scalar.Acceleration |
cooperate(LanePerception perception,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
SpeedLimitInfo sli,
CarFollowingModel cfm,
org.opentrafficsim.core.network.LateralDirectionality lat,
Desire ownDesire)
Determine acceleration for cooperation.
|
(package private) static org.djunits.value.vdouble.scalar.Acceleration |
gentleUrgency(org.djunits.value.vdouble.scalar.Acceleration a,
double desire,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc)
Return limited deceleration.
|
(package private) static HeadwayGTU |
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 |
getTargetLeader(HeadwayGTU gtu,
SortedSet<HeadwayGTU> leaders)
Returns the leader of one gtu from a set.
|
(package private) static SortedSet<HeadwayGTU> |
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.
|
(package private) static org.djunits.value.vdouble.scalar.Length |
requiredBufferSpace(org.djunits.value.vdouble.scalar.Speed speed,
int nCur,
org.djunits.value.vdouble.scalar.Length x0,
org.djunits.value.vdouble.scalar.Duration t0,
org.djunits.value.vdouble.scalar.Duration lc,
double dCoop)
Returns the required buffer space to perform a lane change and further lane changes.
|
(package private) static org.djunits.value.vdouble.scalar.Acceleration |
stopForEnd(org.djunits.value.vdouble.scalar.Length xCur,
org.djunits.value.vdouble.scalar.Length xMerge,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
org.djunits.value.vdouble.scalar.Speed ownSpeed,
CarFollowingModel cfm,
SpeedLimitInfo sli)
Calculates acceleration to stop for a split or dead-end, accounting for infrastructure.
|
(package private) abstract org.djunits.value.vdouble.scalar.Acceleration |
synchronize(LanePerception perception,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
SpeedLimitInfo sli,
CarFollowingModel cfm,
double desire,
org.opentrafficsim.core.network.LateralDirectionality lat,
LmrsData lmrsData)
Determine acceleration for synchronization.
|
(package private) static org.djunits.value.vdouble.scalar.Acceleration |
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.
|
static Synchronization |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Synchronization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Synchronization NONE
public static final Synchronization COOPERATION
public static final Synchronization PASSIVE
public static final Synchronization ACTIVE
public static Synchronization[] values()
for (Synchronization c : Synchronization.values()) System.out.println(c);
public static Synchronization valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullabstract org.djunits.value.vdouble.scalar.Acceleration synchronize(LanePerception perception, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.opentrafficsim.core.network.LateralDirectionality lat, LmrsData lmrsData) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
perception
- perceptionbc
- behavioral characteristicssli
- speed limit infocfm
- car-following modeldesire
- level of lane change desirelat
- lateral direction for synchronizationlmrsData
- LMRS dataorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not definedorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
- perception exceptionabstract org.djunits.value.vdouble.scalar.Acceleration cooperate(LanePerception perception, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc, SpeedLimitInfo sli, CarFollowingModel cfm, org.opentrafficsim.core.network.LateralDirectionality lat, Desire ownDesire) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
perception
- perceptionbc
- behavioral characteristicssli
- speed limit infocfm
- car-following modellat
- lateral direction for cooperationownDesire
- own lane change desireorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not definedorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
- perception exceptionstatic SortedSet<HeadwayGTU> removeAllUpstreamOfConflicts(SortedSet<HeadwayGTU> set, LanePerception perception, RelativeLane relativeLane) throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
set
- set of GTUsperception
- perceptionrelativeLane
- relative laneorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
- if the IntersectionPerception
category is not presentstatic org.djunits.value.vdouble.scalar.Acceleration gentleUrgency(org.djunits.value.vdouble.scalar.Acceleration a, double desire, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
b
for d < dCoop
. Beyond dCoop
the limit
is a linear interpolation between b
and bCrit
.a
- acceleration to limitdesire
- lane change desirebc
- behavioral characteristicsorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- when parameter is no available or value out of rangestatic HeadwayGTU getFollower(HeadwayGTU gtu, SortedSet<HeadwayGTU> leaders, HeadwayGTU follower, org.djunits.value.vdouble.scalar.Length ownLength)
gtu
- gtuleaders
- leaders of own vehiclefollower
- following vehicle of own vehicleownLength
- own vehicle lengthstatic org.djunits.value.vdouble.scalar.Acceleration 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) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
leader
- leaderfollowerSpeed
- follower speedfollowerLength
- follower lengthtagSpeed
- maximum tag along speeddesire
- lane change desirebc
- behavioral characteristicssli
- speed limit infocfm
- car-following modelorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not presentstatic boolean 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) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.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 desireorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if parameter is not definedstatic org.djunits.value.vdouble.scalar.Length requiredBufferSpace(org.djunits.value.vdouble.scalar.Speed speed, int nCur, org.djunits.value.vdouble.scalar.Length x0, org.djunits.value.vdouble.scalar.Duration t0, org.djunits.value.vdouble.scalar.Duration lc, double dCoop)
speed
- representative speednCur
- number of required lane changesx0
- anticipation distancet0
- anticipation timelc
- lane change durationdCoop
- cooperation thresholdstatic org.djunits.value.vdouble.scalar.Acceleration stopForEnd(org.djunits.value.vdouble.scalar.Length xCur, org.djunits.value.vdouble.scalar.Length xMerge, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc, org.djunits.value.vdouble.scalar.Speed ownSpeed, CarFollowingModel cfm, SpeedLimitInfo sli) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
xCur
- remaining distance to endxMerge
- distance until merge pointbc
- behavioral characteristicsownSpeed
- own speedcfm
- car-following modelsli
- speed limit infoorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if parameter is not definedstatic HeadwayGTU getTargetLeader(HeadwayGTU gtu, SortedSet<HeadwayGTU> leaders)
gtu
- gtuleaders
- leadersCopyright © 2014–2017 Delft University of Technology. All rights reserved.