G
- GTU typeP
- perception typepublic class DirectEgoPerception<G extends GTU,P extends Perception<G>> extends AbstractPerceptionCategory<G,P> implements EgoPerception<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.
Constructor and Description |
---|
DirectEgoPerception(P perception) |
Modifier and Type | Method and Description |
---|---|
Acceleration |
getAcceleration()
Returns the acceleration.
|
Length |
getLength()
Returns the length.
|
Speed |
getSpeed()
Returns the speed.
|
TimeStampedObject<Acceleration> |
getTimeStampedAcceleration()
Return the time stamped acceleration.
|
TimeStampedObject<Length> |
getTimeStampedLength()
Return the time stamped length.
|
TimeStampedObject<Speed> |
getTimeStampedSpeed()
Return the time stamped speed.
|
TimeStampedObject<Length> |
getTimeStampedWidth()
Return the time stamped width.
|
Length |
getWidth()
Returns the width.
|
String |
toString() |
void |
updateAcceleration()
Update acceleration.
|
void |
updateLength()
Update length.
|
void |
updateSpeed()
Update speed.
|
void |
updateWidth()
Update width.
|
getGtu, getObjectOrNull, getPerception, getTimestamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
updateAll
public DirectEgoPerception(P perception)
perception
- P; perceptionpublic final void updateSpeed() throws GTUException
updateSpeed
in interface EgoPerception<G extends GTU,P extends Perception<G>>
GTUException
- if the GTU has not been initializedpublic final void updateAcceleration() throws GTUException
updateAcceleration
in interface EgoPerception<G extends GTU,P extends Perception<G>>
GTUException
- if the GTU has not been initializedpublic final void updateLength() throws GTUException
updateLength
in interface EgoPerception<G extends GTU,P extends Perception<G>>
GTUException
- if the GTU has not been initializedpublic final void updateWidth() throws GTUException
updateWidth
in interface EgoPerception<G extends GTU,P extends Perception<G>>
GTUException
- if the GTU has not been initializedpublic final Acceleration getAcceleration()
getAcceleration
in interface EgoPerception<G extends GTU,P extends Perception<G>>
public final Speed getSpeed()
getSpeed
in interface EgoPerception<G extends GTU,P extends Perception<G>>
public final Length getLength()
getLength
in interface EgoPerception<G extends GTU,P extends Perception<G>>
public final Length getWidth()
getWidth
in interface EgoPerception<G extends GTU,P extends Perception<G>>
public final TimeStampedObject<Speed> getTimeStampedSpeed()
public final TimeStampedObject<Acceleration> getTimeStampedAcceleration()
public final TimeStampedObject<Length> getTimeStampedLength()
public final TimeStampedObject<Length> getTimeStampedWidth()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.