public interface InfrastructurePerception
extends org.opentrafficsim.core.gtu.perception.PerceptionCategory
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.
| Modifier and Type | Method and Description |
|---|---|
SortedSet<RelativeLane> |
getCrossSection()
Returns a set of relative lanes representing the cross section.
|
SortedSet<InfrastructureLaneChangeInfo> |
getInfrastructureLaneChangeInfo(RelativeLane lane)
Returns infrastructure lane change info of a lane.
|
org.djunits.value.vdouble.scalar.Length |
getLegalLaneChangePossibility(RelativeLane fromLane,
org.opentrafficsim.core.network.LateralDirectionality lat)
Returns the distance over which a lane change remains legally possible.
|
org.djunits.value.vdouble.scalar.Length |
getPhysicalLaneChangePossibility(RelativeLane fromLane,
org.opentrafficsim.core.network.LateralDirectionality lat)
Returns the distance over which a lane change remains physically possible.
|
SpeedLimitProspect |
getSpeedLimitProspect(RelativeLane lane)
Returns the prospect for speed limits on a lane (dynamic speed limits may vary between lanes).
|
default void |
updateAll() |
void |
updateCrossSection()
Updates a set of relative lanes representing the cross section.
|
void |
updateInfrastructureLaneChangeInfo(RelativeLane lane)
Updates the infrastructural lane change info.
|
void |
updateLegalLaneChangePossibility(RelativeLane lane,
org.opentrafficsim.core.network.LateralDirectionality lat)
Updates the distance over which lane changes remains legally possible.
|
void |
updatePhysicalLaneChangePossibility(RelativeLane lane,
org.opentrafficsim.core.network.LateralDirectionality lat)
Updates the distance over which lane changes remains physically possible.
|
void |
updateSpeedLimitProspect(RelativeLane lane)
Updates the speed limit prospect.
|
void updateInfrastructureLaneChangeInfo(RelativeLane lane) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
lane - relative lateral laneorg.opentrafficsim.core.gtu.GTUException - if the GTU was not initialized or if the lane is not in the cross sectionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if a parameter is not definedvoid updateSpeedLimitProspect(RelativeLane lane) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
lane - relative lateral laneorg.opentrafficsim.core.gtu.GTUException - if the GTU was not initialized or if the lane is not in the cross sectionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if a parameter is not definedvoid updateLegalLaneChangePossibility(RelativeLane lane, org.opentrafficsim.core.network.LateralDirectionality lat) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
lane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedorg.opentrafficsim.core.gtu.GTUException - if the GTU was not initialized or if the lane is not in the cross sectionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if a parameter is not definedvoid updatePhysicalLaneChangePossibility(RelativeLane lane, org.opentrafficsim.core.network.LateralDirectionality lat) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
lane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedorg.opentrafficsim.core.gtu.GTUException - if the GTU was not initialized or if the lane is not in the cross sectionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if a parameter is not definedvoid updateCrossSection()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException - if the GTU was not initializedorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if a parameter is not definedSortedSet<InfrastructureLaneChangeInfo> getInfrastructureLaneChangeInfo(RelativeLane lane)
_______
_ _A_ _\_________
_ _ _ _ _ _ _ _ _
_________ _ _ ___
\_______
(-) Lane-drop: 1 lane change in 400m (400m per lane change)
(--------) Off-ramp: 3 lane changes in 900m (300m per lane change, critical)
(-) Lane-drop: 1 lane change in 100m (100m per lane change, critical)
(--------) Off-ramp: 3 lane changes in 600m (200m per lane change)
lane - relative lateral laneSpeedLimitProspect getSpeedLimitProspect(RelativeLane lane)
lane - relative lateral laneorg.djunits.value.vdouble.scalar.Length getLegalLaneChangePossibility(RelativeLane fromLane, org.opentrafficsim.core.network.LateralDirectionality lat)
fromLane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedNullPointerException - if lat == nullorg.djunits.value.vdouble.scalar.Length getPhysicalLaneChangePossibility(RelativeLane fromLane, org.opentrafficsim.core.network.LateralDirectionality lat)
fromLane - lane from which the lane change possibility is requestedlat - LEFT or RIGHT, null not allowedNullPointerException - if lat == nullSortedSet<RelativeLane> getCrossSection()
default void updateAll()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
updateAll in interface org.opentrafficsim.core.gtu.perception.PerceptionCategoryorg.opentrafficsim.core.gtu.GTUExceptionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterExceptionCopyright © 2014–2017 Delft University of Technology. All rights reserved.