public final class ConflictUtil extends Object
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static class |
ConflictUtil.ConflictPlans
Holds the tactical plans of a driver considering conflicts.
|
Modifier and Type | Field and Description |
---|---|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration |
MIN_GAP
Minimum time gap between events.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeLength |
STOP_AREA
Area before stop line where one is considered arrived at the intersection.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble |
TIME_FACTOR
Multiplication factor on time for conservative assessment.
|
Modifier and Type | Method and Description |
---|---|
static org.djunits.value.vdouble.scalar.Acceleration |
approachConflicts(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SortedSet<HeadwayConflict> conflicts,
SortedSet<AbstractHeadwayGTU> leaders,
CarFollowingModel carFollowingModel,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo,
ConflictUtil.ConflictPlans conflictPlans)
Approach conflicts by applying appropriate acceleration (or deceleration).
|
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration MIN_GAP
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble TIME_FACTOR
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeLength STOP_AREA
public static org.djunits.value.vdouble.scalar.Acceleration approachConflicts(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, SortedSet<HeadwayConflict> conflicts, SortedSet<AbstractHeadwayGTU> leaders, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Length vehicleLength, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, ConflictUtil.ConflictPlans conflictPlans) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
behavioralCharacteristics
- behavioral characteristicsconflicts
- set of conflicts to approachleaders
- leading vehiclescarFollowingModel
- car-following modelvehicleLength
- length of vehiclespeed
- current speedspeedLimitInfo
- speed limit infoconflictPlans
- set of plans for conflictorg.opentrafficsim.core.gtu.GTUException
- in case of an unsupported conflict ruleorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not defined or out of boundsCopyright © 2014–2016 Delft University of Technology. All rights reserved.