public interface DefaultSimplePerception extends LaneBasedPerceptionCategory
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 | Method and Description |
|---|---|
Lane |
bestAccessibleAdjacentLane(Lane currentLane,
org.opentrafficsim.core.network.LateralDirectionality lateralDirection,
org.djunits.value.vdouble.scalar.Length longitudinalPosition)
Determine whether there is a lane to the left or to the right of this lane, which is accessible from this lane, or null
if no lane could be found.
|
Map<Lane,Set<Lane>> |
getAccessibleAdjacentLanes(org.opentrafficsim.core.network.LateralDirectionality lateralDirection) |
Map<Lane,Set<Lane>> |
getAccessibleAdjacentLanesLeft() |
Map<Lane,Set<Lane>> |
getAccessibleAdjacentLanesRight() |
Headway |
getBackwardHeadway() |
Headway |
getForwardHeadwayGTU() |
Headway |
getForwardHeadwayObject() |
LanePathInfo |
getLanePathInfo()
Retrieve the last perceived lane path info.
|
Collection<Headway> |
getNeighboringHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection) |
Collection<Headway> |
getNeighboringHeadwaysLeft() |
Collection<Headway> |
getNeighboringHeadwaysRight() |
Collection<Headway> |
getParallelHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection) |
Collection<Headway> |
getParallelHeadwaysLeft() |
Collection<Headway> |
getParallelHeadwaysRight() |
org.djunits.value.vdouble.scalar.Speed |
getSpeedLimit() |
default void |
updateAccessibleAdjacentLanes()
Update the accessible adjacent lanes.
|
void |
updateAccessibleAdjacentLanesLeft()
Update the accessible adjacent lanes on the left.
|
void |
updateAccessibleAdjacentLanesRight()
Update the accessible adjacent lanes on the right.
|
default void |
updateAll() |
void |
updateBackwardHeadway()
Update the backward headway and first object (e.g., a GTU) behind.
|
void |
updateForwardHeadwayGTU()
Update the forward headway and first object (a GTU) in front.
|
void |
updateForwardHeadwayObject()
Update the forward headway and first object (but not a GTU) in front.
|
void |
updateLanePathInfo() |
void |
updateNeighboringHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
Update the objects (e.g., GTUs) in parallel, in front and behind for the lane in the given direction, with their headway
relative to our GTU, and information about the status of the adjacent objects.
|
void |
updateNeighboringHeadwaysLeft()
Update the objects (e.g., GTUs) in parallel, in front and behind on the left neighboring lane, with their headway
relative to our GTU, and information about the status of the adjacent objects.
|
void |
updateNeighboringHeadwaysRight()
Update the objects (e.g., GTUs) in parallel, in front and behind on the right neighboring lane, with their headway
relative to our GTU, and information about the status of the adjacent objects.
|
void |
updateParallelHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
Update the parallel objects (e.g., GTUs) for the given direction, with information about their status and parallel
overlap with our GTU.
|
void |
updateParallelHeadwaysLeft()
Update the parallel objects (e.g., GTUs) on the left, with information about their status and parallel overlap with our
GTU.
|
void |
updateParallelHeadwaysRight()
Update the parallel objects (e.g., GTUs) on the right, with information about their status and parallel overlap with our
GTU.
|
void |
updateSpeedLimit()
Update speedLimit.
|
void updateLanePathInfo()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.network.NetworkException,
org.opentrafficsim.base.parameters.ParameterException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not initialized yet.org.opentrafficsim.core.network.NetworkException - when the speed limit for a GTU type cannot be retrieved from the network.org.opentrafficsim.base.parameters.ParameterException - in case of not being able to retrieve parameter ParameterTypes.LOOKAHEADvoid updateForwardHeadwayGTU()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.network.NetworkException,
org.opentrafficsim.base.parameters.ParameterException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedorg.opentrafficsim.base.parameters.ParameterException - if parameter is not defined or out of boundsorg.opentrafficsim.core.network.NetworkException - in case of network exceptionvoid updateForwardHeadwayObject()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.network.NetworkException,
org.opentrafficsim.base.parameters.ParameterException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedorg.opentrafficsim.base.parameters.ParameterException - if parameter is not defined or out of boundsorg.opentrafficsim.core.network.NetworkException - in case of network exceptionvoid updateBackwardHeadway()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException,
org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedorg.opentrafficsim.base.parameters.ParameterException - if parameter is not defined or out of boundsorg.opentrafficsim.core.network.NetworkException - in case of network exceptiondefault void updateAccessibleAdjacentLanes()
throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedvoid updateAccessibleAdjacentLanesLeft()
throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedvoid updateAccessibleAdjacentLanesRight()
throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedvoid updateNeighboringHeadwaysLeft()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException,
org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedorg.opentrafficsim.base.parameters.ParameterException - if parameter is not defined or out of boundsorg.opentrafficsim.core.network.NetworkException - in case of network exceptionvoid updateNeighboringHeadwaysRight()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException,
org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedorg.opentrafficsim.base.parameters.ParameterException - if parameter is not defined or out of boundsorg.opentrafficsim.core.network.NetworkException - in case of network exceptionvoid updateNeighboringHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException,
org.opentrafficsim.core.network.NetworkException
lateralDirection - the direction to update the parallel headway collection fororg.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedorg.opentrafficsim.base.parameters.ParameterException - if parameter is not defined or out of boundsorg.opentrafficsim.core.network.NetworkException - in case of network exceptionvoid updateParallelHeadwaysLeft()
throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedvoid updateParallelHeadwaysRight()
throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedvoid updateParallelHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
throws org.opentrafficsim.core.gtu.GTUException
lateralDirection - the direction to return the neighboring headway collection fororg.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedvoid updateSpeedLimit()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.gtu.GTUException - when the GTU was not yet initializedorg.opentrafficsim.core.network.NetworkException - in case of network exceptionLanePathInfo getLanePathInfo()
Headway getForwardHeadwayGTU()
Headway getForwardHeadwayObject()
Headway getBackwardHeadway()
Map<Lane,Set<Lane>> getAccessibleAdjacentLanesLeft()
Map<Lane,Set<Lane>> getAccessibleAdjacentLanesRight()
Map<Lane,Set<Lane>> getAccessibleAdjacentLanes(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
lateralDirection - the direction to return the accessible adjacent lane map forCollection<Headway> getNeighboringHeadwaysLeft()
Collection<Headway> getNeighboringHeadwaysRight()
Collection<Headway> getNeighboringHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
lateralDirection - the direction to return the parallel headway collection forCollection<Headway> getParallelHeadwaysLeft()
Collection<Headway> getParallelHeadwaysRight()
Collection<Headway> getParallelHeadways(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
lateralDirection - the direction to return the neighboring headway collection fororg.djunits.value.vdouble.scalar.Speed getSpeedLimit()
default void updateAll()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException,
org.opentrafficsim.core.network.NetworkException
updateAll in interface org.opentrafficsim.core.gtu.perception.PerceptionCategory<LaneBasedGTU,LanePerception>org.opentrafficsim.core.gtu.GTUExceptionorg.opentrafficsim.base.parameters.ParameterExceptionorg.opentrafficsim.core.network.NetworkExceptionLane bestAccessibleAdjacentLane(Lane currentLane, org.opentrafficsim.core.network.LateralDirectionality lateralDirection, org.djunits.value.vdouble.scalar.Length longitudinalPosition)
currentLane - the lane to look for the best accessible adjacent lanelateralDirection - the direction (LEFT, RIGHT) to look atlongitudinalPosition - Length; the position of the GTU along currentLaneCopyright © 2014–2018 Delft University of Technology. All rights reserved.