G
- GTU typeP
- perception typepublic interface EgoPerception<G extends GTU,P extends Perception<G>> extends PerceptionCategory<G,P>
Copyright (c) 2013-2019 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 |
---|---|
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.
|
void updateSpeed() throws GTUException
GTUException
- if the GTU has not been initializedvoid updateAcceleration() throws GTUException
GTUException
- if the GTU has not been initializedvoid updateLength() throws GTUException
GTUException
- if the GTU has not been initializedvoid updateWidth() throws GTUException
GTUException
- if the GTU has not been initializedAcceleration getAcceleration()
Speed getSpeed()
Length getLength()
Length getWidth()
default void updateAll() throws GTUException, NetworkException, ParameterException
updateAll
in interface PerceptionCategory<G extends GTU,P extends Perception<G>>
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)Copyright © 2014–2019 Delft University of Technology. All rights reserved.