Class CategoricalLanePerception
- java.lang.Object
-
- org.opentrafficsim.core.gtu.perception.AbstractPerception<LaneBasedGTU>
-
- org.opentrafficsim.road.gtu.lane.perception.AbstractLanePerception
-
- org.opentrafficsim.road.gtu.lane.perception.CategoricalLanePerception
-
- All Implemented Interfaces:
Serializable,Perception<LaneBasedGTU>,LanePerception
public class CategoricalLanePerception extends AbstractLanePerception
Standard perception completely based on connected perception categories.Copyright (c) 2013-2020 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 Jul 29, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.opentrafficsim.road.gtu.lane.perception.AbstractLanePerception
LOOKAHEAD, LOOKBACK, PERCEPTION
-
-
Constructor Summary
Constructors Constructor Description CategoricalLanePerception(LaneBasedGTU gtu)CategoricalLanePerception(LaneBasedGTU gtu, Mental mental)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()-
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.AbstractLanePerception
getLaneStructure, getMental, perceive
-
Methods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerception
addPerceptionCategory, contains, getGtu, getPerceptionCategory, getPerceptionCategoryOrNull, removePerceptionCategory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opentrafficsim.road.gtu.lane.perception.LanePerception
getGtu
-
Methods inherited from interface org.opentrafficsim.core.gtu.perception.Perception
addPerceptionCategory, contains, getPerceptionCategory, getPerceptionCategoryOrNull, removePerceptionCategory
-
-
-
-
Constructor Detail
-
CategoricalLanePerception
public CategoricalLanePerception(LaneBasedGTU gtu)
- Parameters:
gtu- LaneBasedGTU; GTU
-
CategoricalLanePerception
public CategoricalLanePerception(LaneBasedGTU gtu, Mental mental)
- Parameters:
gtu- LaneBasedGTU; GTUmental- Mental; Mental
-
-
Method Detail
-
toString
public final String toString()
- Overrides:
toStringin classAbstractPerception<LaneBasedGTU>
-
-