public class EgoPerception extends AbstractPerceptionCategory
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.
| Constructor and Description |
|---|
EgoPerception(Perception perception) |
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Acceleration |
getAcceleration()
Returns the acceleration.
|
org.djunits.value.vdouble.scalar.Length |
getLength()
Returns the length.
|
org.djunits.value.vdouble.scalar.Speed |
getSpeed()
Returns the speed.
|
org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Acceleration> |
getTimeStampedAcceleration()
Return the time stamped acceleration.
|
org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Length> |
getTimeStampedLength()
Return the time stamped length.
|
org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Speed> |
getTimeStampedSpeed()
Return the time stamped speed.
|
org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Length> |
getTimeStampedWidth()
Return the time stamped width.
|
org.djunits.value.vdouble.scalar.Length |
getWidth()
Returns the width.
|
String |
toString() |
void |
updateAcceleration()
Update acceleration.
|
void |
updateAll()
Updates all information in the category.
|
void |
updateLength()
Update length.
|
void |
updateSpeed()
Update speed.
|
void |
updateWidth()
Update width.
|
getGtu, getPerception, getTimestamppublic EgoPerception(Perception perception)
perception - perceptionpublic final void updateSpeed()
throws GTUException
GTUException - if the GTU has not been initializedpublic final void updateAcceleration()
throws GTUException
GTUException - if the GTU has not been initializedpublic final void updateLength()
throws GTUException
GTUException - if the GTU has not been initializedpublic final void updateWidth()
throws GTUException
GTUException - if the GTU has not been initializedpublic final org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
public final org.djunits.value.vdouble.scalar.Speed getSpeed()
public final org.djunits.value.vdouble.scalar.Length getLength()
public final org.djunits.value.vdouble.scalar.Length getWidth()
public final org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Speed> getTimeStampedSpeed()
public final org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Acceleration> getTimeStampedAcceleration()
public final org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Length> getTimeStampedLength()
public final org.opentrafficsim.base.TimeStampedObject<org.djunits.value.vdouble.scalar.Length> getTimeStampedWidth()
public final void updateAll()
throws GTUException,
NetworkException,
ParameterException
updateAll in class AbstractPerceptionCategoryGTUException - 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–2016 Delft University of Technology. All rights reserved.