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() |
HeadwayGTU |
getBackwardHeadwayGTU() |
HeadwayGTU |
getForwardHeadwayGTU() |
LaneBasedGTU |
getGTU() |
Collection<HeadwayGTU> |
getNeighboringGTUsLeft() |
Collection<HeadwayGTU> |
getNeighboringGTUsRight() |
Set<LaneBasedGTU> |
getParallelGTUsLeft() |
Set<LaneBasedGTU> |
getParallelGTUsRight() |
org.djunits.value.vdouble.scalar.Speed |
getSpeedLimit() |
TimeStampedObject<Map<Lane,Set<Lane>>> |
getTimeStampedAccessibleAdjacentLanesLeft() |
TimeStampedObject<Map<Lane,Set<Lane>>> |
getTimeStampedAccessibleAdjacentLanesRight() |
TimeStampedObject<HeadwayGTU> |
getTimeStampedBackwardHeadwayGTU() |
TimeStampedObject<HeadwayGTU> |
getTimeStampedForwardHeadwayGTU() |
TimeStampedObject<Collection<HeadwayGTU>> |
getTimeStampedNeighboringGTUsLeft() |
TimeStampedObject<Collection<HeadwayGTU>> |
getTimeStampedNeighboringGTUsRight() |
TimeStampedObject<Set<LaneBasedGTU>> |
getTimeStampedParallelGTUsLeft() |
TimeStampedObject<Set<LaneBasedGTU>> |
getTimeStampedParallelGTUsRight() |
TimeStampedObject<Set<org.opentrafficsim.core.perception.PerceivedObject>> |
getTimeStampedPerceivedObjects() |
TimeStampedObject<org.djunits.value.vdouble.scalar.Speed> |
getTimeStampedSpeedLimit() |
Collection<HeadwayGTU> |
neighboringGTUCollection(org.opentrafficsim.core.network.LateralDirectionality lateralDirection) |
Set<LaneBasedGTU> |
parallelGTUs(org.opentrafficsim.core.network.LateralDirectionality lateralDirection) |
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 |
updateBackwardHeadwayGTU()
Update who's behind us and how far away the nearest GTU is.
|
void |
updateForwardHeadwayGTU()
Update who's in front of us and how far away the nearest GTU is.
|
void |
updateLaneTrafficLeft()
Update the information about the GTUs left of our GTU, and behind us or ahead on the left hand side.
|
void |
updateLaneTrafficRight()
Update the information about the GTUs right of our GTU, and behind us or ahead on the left hand side.
|
void |
updateParallelGTUsLeft()
Update the information about the GTUs parallel to our GTU on the left side.
|
void |
updateParallelGTUsRight()
Update the information about the 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()
HeadwayGTU getForwardHeadwayGTU()
HeadwayGTU getBackwardHeadwayGTU()
Map<Lane,Set<Lane>> getAccessibleAdjacentLanesLeft()
Map<Lane,Set<Lane>> getAccessibleAdjacentLanesRight()
Collection<HeadwayGTU> getNeighboringGTUsLeft()
Collection<HeadwayGTU> getNeighboringGTUsRight()
Set<LaneBasedGTU> getParallelGTUsLeft()
Set<LaneBasedGTU> getParallelGTUsRight()
org.djunits.value.vdouble.scalar.Speed getSpeedLimit()
Map<Lane,Set<Lane>> accessibleAdjacentLaneMap(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
lateralDirection
- the direction to return the accessible adjacent lane map forSet<LaneBasedGTU> parallelGTUs(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
lateralDirection
- the direction to return the parallel GTU map forCollection<HeadwayGTU> neighboringGTUCollection(org.opentrafficsim.core.network.LateralDirectionality lateralDirection)
lateralDirection
- the direction to return the neighboring GTU collection forTimeStampedObject<HeadwayGTU> getTimeStampedForwardHeadwayGTU()
TimeStampedObject<HeadwayGTU> getTimeStampedBackwardHeadwayGTU()
TimeStampedObject<Map<Lane,Set<Lane>>> getTimeStampedAccessibleAdjacentLanesLeft()
TimeStampedObject<Map<Lane,Set<Lane>>> getTimeStampedAccessibleAdjacentLanesRight()
TimeStampedObject<Collection<HeadwayGTU>> getTimeStampedNeighboringGTUsLeft()
TimeStampedObject<Collection<HeadwayGTU>> getTimeStampedNeighboringGTUsRight()
TimeStampedObject<Set<LaneBasedGTU>> getTimeStampedParallelGTUsLeft()
TimeStampedObject<Set<LaneBasedGTU>> getTimeStampedParallelGTUsRight()
TimeStampedObject<org.djunits.value.vdouble.scalar.Speed> getTimeStampedSpeedLimit()
TimeStampedObject<Set<org.opentrafficsim.core.perception.PerceivedObject>> getTimeStampedPerceivedObjects() throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException
- when GTU was not initializedvoid 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.void updateForwardHeadwayGTU() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException
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.void updateBackwardHeadwayGTU() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException
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.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 updateParallelGTUsLeft() throws org.opentrafficsim.core.gtu.GTUException
org.opentrafficsim.core.gtu.GTUException
- when the GTU was not initialized yet.void updateParallelGTUsRight() 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.GTUException
- when the GTU was not initialized yet.org.opentrafficsim.core.network.NetworkException
- when there is an inconsistency in the lanes on this networkvoid updateLaneTrafficRight() throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException
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 networkCopyright © 2014–2016 Delft University of Technology. All rights reserved.