Interface EgoPerception<G extends GTU,P extends Perception<G>>
-
- Type Parameters:
G
- GTU typeP
- perception type
- All Superinterfaces:
PerceptionCategory<G,P>
- All Known Implementing Classes:
DirectEgoPerception
public interface EgoPerception<G extends GTU,P extends Perception<G>> extends PerceptionCategory<G,P>
Ego perception interface.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 13 feb. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Acceleration
getAcceleration()
Returns the acceleration.Length
getLength()
Returns the length.Speed
getSpeed()
Returns the speed.Length
getWidth()
Returns the width.void
updateAcceleration()
Update acceleration.default void
updateAll()
Update all information in the perception category.void
updateLength()
Update length.void
updateSpeed()
Update speed.void
updateWidth()
Update width.
-
-
-
Method Detail
-
updateSpeed
void updateSpeed() throws GTUException
Update speed.- Throws:
GTUException
- if the GTU has not been initialized
-
updateAcceleration
void updateAcceleration() throws GTUException
Update acceleration.- Throws:
GTUException
- if the GTU has not been initialized
-
updateLength
void updateLength() throws GTUException
Update length.- Throws:
GTUException
- if the GTU has not been initialized
-
updateWidth
void updateWidth() throws GTUException
Update width.- Throws:
GTUException
- if the GTU has not been initialized
-
getAcceleration
Acceleration getAcceleration()
Returns the acceleration.- Returns:
- acceleration
-
getSpeed
Speed getSpeed()
Returns the speed.- Returns:
- speed
-
getLength
Length getLength()
Returns the length.- Returns:
- length
-
getWidth
Length getWidth()
Returns the width.- Returns:
- width
-
updateAll
default void updateAll() throws GTUException, NetworkException, ParameterException
Update all information in the perception category.- Specified by:
updateAll
in interfacePerceptionCategory<G extends GTU,P extends Perception<G>>
- Throws:
GTUException
- if the GTU was not initializedNetworkException
- when lanes are not properly linkedParameterException
- when a necessary parameter to carry our perception is not defined (e.g., LOOKAHEAD)
-
-