public class IntersectionPerception extends LaneBasedAbstractPerceptionCategory
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.
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATION| Constructor and Description |
|---|
IntersectionPerception(LanePerception perception) |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<HeadwayConflict> |
getConflicts(RelativeLane lane)
Returns a set of traffic lights along the route.
|
org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayConflict>> |
getTimeStampedConflicts(RelativeLane lane)
Returns a time stamped set of traffic lights along the route.
|
org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayTrafficLight>> |
getTimeStampedTrafficLights(RelativeLane lane)
Returns a time stamped set of traffic lights along the route.
|
SortedSet<HeadwayTrafficLight> |
getTrafficLights(RelativeLane lane)
Returns a set of traffic lights along the route.
|
String |
toString() |
void |
updateAll() |
void |
updateConflicts()
Updates set of conflicts along the route.
|
void |
updateTrafficLights()
Updates set of traffic lights along the route.
|
getGtu, getPerceptionpublic IntersectionPerception(LanePerception perception)
perception - perceptionpublic final void updateAll()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
updateAll in class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategoryorg.opentrafficsim.core.gtu.GTUExceptionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterExceptionpublic final void updateTrafficLights()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException - if the GTU has not been initializedorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if lane structure cannot be made due to missing parameterpublic final void updateConflicts()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
org.opentrafficsim.core.gtu.GTUException - if the GTU has not been initializedorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if lane structure cannot be made due to missing parameterpublic final SortedSet<HeadwayTrafficLight> getTrafficLights(RelativeLane lane)
lane - lanepublic final SortedSet<HeadwayConflict> getConflicts(RelativeLane lane)
lane - lanepublic final org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayTrafficLight>> getTimeStampedTrafficLights(RelativeLane lane)
lane - lanepublic final org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayConflict>> getTimeStampedConflicts(RelativeLane lane)
lane - laneCopyright © 2014–2016 Delft University of Technology. All rights reserved.