Class PerceivedGtuBase
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObjectBase
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedGtuSimple
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedGtuBase
- All Implemented Interfaces:
Comparable<PerceivedObject>,Identifiable,PerceivedGtu,PerceivedObject
Base class for perceived GTU's which stores the information.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedGtu
PerceivedGtu.Behavior, PerceivedGtu.Maneuver, PerceivedGtu.SignalsNested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObject
PerceivedObject.Kinematics, PerceivedObject.ObjectType -
Constructor Summary
ConstructorsConstructorDescriptionPerceivedGtuBase(String id, GtuType gtuType, Length length, Length width, PerceivedObject.Kinematics kinematics, PerceivedGtu.Signals signals, PerceivedGtu.Maneuver maneuver, PerceivedGtu.Behavior behavior) Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.object.PerceivedGtuSimple
getGtuType, getManeuver, getSignals, getWidth, ofMethods inherited from class org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObjectBase
getId, getKinematics, getLength, getObjectTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedGtu
movedMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObject
compareTo, getAcceleration, getDistance, getKinematics, getLength, getObjectType, getSpeed
-
Constructor Details
-
PerceivedGtuBase
public PerceivedGtuBase(String id, GtuType gtuType, Length length, Length width, PerceivedObject.Kinematics kinematics, PerceivedGtu.Signals signals, PerceivedGtu.Maneuver maneuver, PerceivedGtu.Behavior behavior) Constructor.- Parameters:
id- GTU idgtuType- GTU typelength- length of the GTUwidth- width of the GTUkinematics- kinematicssignals- signalsmaneuver- maneuverbehavior- behavior- Throws:
NullPointerException- when any input argument isnull
-
-
Method Details
-
getBehavior
Description copied from interface:PerceivedGtuReturns information on the behavior. This includes the car-following model, parameters, desired speed, route, lane change desire and social pressure.- Specified by:
getBehaviorin interfacePerceivedGtu- Overrides:
getBehaviorin classPerceivedGtuSimple- Returns:
- information on the behavior
-
hashCode
public int hashCode()- Overrides:
hashCodein classPerceivedGtuSimple
-
equals
- Overrides:
equalsin classPerceivedGtuSimple
-
toString
- Overrides:
toStringin classPerceivedGtuSimple
-