public interface Perception extends Serializable
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 |
|---|---|
void |
addPerceptionCategory(PerceptionCategory perceptionCategory)
Adds given perception category to the perception.
|
<T extends PerceptionCategory> |
contains(Class<T> clazz)
Returns whether the given perception category is present.
|
GTU |
getGtu()
Return the GTU of this perception.
|
<T extends PerceptionCategory> |
getPerceptionCategory(Class<T> category)
Returns the given perception category.
|
void |
perceive()
Update the perceived information and store it in a stateful manner.
|
void |
removePerceptionCategory(PerceptionCategory perceptionCategory)
Remove give perception category.
|
void perceive()
throws GTUException,
NetworkException,
ParameterException
GTUException - when GTU has not been properly initialized.NetworkException - in case of inconsistencies in the network during perception calculations.ParameterException - in case of a parameter error.GTU getGtu() throws GTUException
GTUException - if the GTU has not been initializedvoid addPerceptionCategory(PerceptionCategory perceptionCategory)
perceptionCategory - perception category<T extends PerceptionCategory> boolean contains(Class<T> clazz)
T - perception categoryclazz - perception category class<T extends PerceptionCategory> T getPerceptionCategory(Class<T> category) throws OperationalPlanException
T - perception categorycategory - perception category classOperationalPlanException - if the perception category is not presentvoid removePerceptionCategory(PerceptionCategory perceptionCategory)
perceptionCategory - perception category to removeCopyright © 2014–2017 Delft University of Technology. All rights reserved.