public interface LanePerception
extends org.opentrafficsim.core.gtu.perception.Perception
Copyright (c) 2013-2015 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 |
---|---|
Map<Lane,Set<Lane>> |
accessibleAdjacentLaneMap(org.opentrafficsim.core.network.LateralDirectionality lateralDirection) |
Map<Lane,Set<Lane>> |
getAccessibleAdjacentLanesLeft() |
Map<Lane,Set<Lane>> |
getAccessibleAdjacentLanesRight() |
Headway |
getBackwardHeadway() |
Headway |
getForwardHeadway() |
LaneBasedGTU |
getGTU() |
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() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Map<Lane,Set<Lane>>> |
getTimeStampedAccessibleAdjacentLanesLeft() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Map<Lane,Set<Lane>>> |
getTimeStampedAccessibleAdjacentLanesRight() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Headway> |
getTimeStampedBackwardHeadway() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Headway> |
getTimeStampedForwardHeadway() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> |
getTimeStampedNeighboringHeadwaysLeft() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> |
getTimeStampedNeighboringHeadwaysRight() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> |
getTimeStampedParallelHeadwaysLeft() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> |
getTimeStampedParallelHeadwaysRight() |
org.opentrafficsim.core.gtu.perception.TimeStampedObject<org.djunits.value.vdouble.scalar.Speed> |
getTimeStampedSpeedLimit() |
void |
setGTU(LaneBasedGTU gtu)
Sets the GTU -- call this method before any call to the perceive() method!
|
void |
updateAccessibleAdjacentLanesLeft()
Build a set of Lanes that is adjacent to the given lane that this GTU can enter, for the left lateral direction.
|
void |
updateAccessibleAdjacentLanesRight()
Build a set of Lanes that is adjacent to the given lane that this GTU can enter, for the left lateral direction.
|
void |
updateBackwardHeadway()
Update who's behind us and how far away the nearest object (e.g., a GTU) is.
|
void |
updateForwardHeadway()
Update who's in front of us and how far away the nearest object (e.g., a GTU) is.
|
void |
updateLaneTrafficLeft()
Update the information about the objects (e.g., GTUs) left of our GTU, and behind us or ahead on the left hand side.
|
void |
updateLaneTrafficRight()
Update the information about the objects (e.g., GTUs) right of our GTU, and behind us or ahead on the left hand side.
|
void |
updateParallelHeadwaysLeft()
Update the information about the objects (e.g., GTUs) parallel to our GTU on the left side.
|
void |
updateParallelHeadwaysRight()
Update the information about the objects (e.g., GTUs) parallel to our GTU on the right side.
|
void |
updateSpeedLimit()
Update the perceived speed limit.
|
void setGTU(LaneBasedGTU gtu)
gtu
- the GTU for which this is the perception moduleLaneBasedGTU getGTU()
Headway getForwardHeadway()
Headway getBackwardHeadway()
Map<Lane,Set<Lane>> getAccessibleAdjacentLanesLeft()
Map<Lane,Set<Lane>> getAccessibleAdjacentLanesRight()
Map<Lane,Set<Lane>> accessibleAdjacentLaneMap(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()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Headway> getTimeStampedForwardHeadway()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Headway> getTimeStampedBackwardHeadway()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Map<Lane,Set<Lane>>> getTimeStampedAccessibleAdjacentLanesLeft()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Map<Lane,Set<Lane>>> getTimeStampedAccessibleAdjacentLanesRight()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> getTimeStampedNeighboringHeadwaysLeft()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> getTimeStampedNeighboringHeadwaysRight()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> getTimeStampedParallelHeadwaysLeft()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<Collection<Headway>> getTimeStampedParallelHeadwaysRight()
org.opentrafficsim.core.gtu.perception.TimeStampedObject<org.djunits.value.vdouble.scalar.Speed> getTimeStampedSpeedLimit()
void updateForwardHeadway() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.org.opentrafficsim.core.network.NetworkException
- when the headway cannot be determined for this GTU, usually due to routing problems.org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- when there is a parameter problem, e.g., retrieving the forwardHeadwayDistance.void updateBackwardHeadway() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.org.opentrafficsim.core.network.NetworkException
- when the headway cannot be determined for this GTU, usually due to routing problems.org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- when there is a parameter problem, e.g., retrieving the backwardHeadwayDistance.void updateAccessibleAdjacentLanesLeft() throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.void updateAccessibleAdjacentLanesRight() throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.void updateParallelHeadwaysLeft() throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.void updateParallelHeadwaysRight() throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.void updateLaneTrafficLeft() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.org.opentrafficsim.core.network.NetworkException
- when there is an inconsistency in the lanes on this networkorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- when there is a parameter problem.void updateLaneTrafficRight() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.org.opentrafficsim.core.network.NetworkException
- when there is an inconsistency in the lanes on this networkorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- when there is a parameter problem.void updateSpeedLimit() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.network.NetworkException
- when the speed limit for a GTU type cannot be retreived from the network.org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.Copyright © 2014–2016 Delft University of Technology. All rights reserved.