public abstract class AbstractLanePerception extends AbstractPerception<LaneBasedGTU> implements LanePerception
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
protected static ParameterTypeLength |
LOOKAHEAD
Look ahead parameter type.
|
protected static ParameterTypeLength |
LOOKBACK
Look back parameter type.
|
protected static ParameterTypeLength |
PERCEPTION
Perception parameter type.
|
Constructor and Description |
---|
AbstractLanePerception(LaneBasedGTU gtu)
Create a new LanePerception module without mental module.
|
AbstractLanePerception(LaneBasedGTU gtu,
Mental mental)
Create a new LanePerception module with mental module.
|
Modifier and Type | Method and Description |
---|---|
LaneStructure |
getLaneStructure() |
Mental |
getMental()
Returns the mental module of perception.
|
void |
perceive() |
addPerceptionCategory, contains, getGtu, getPerceptionCategory, getPerceptionCategoryOrNull, removePerceptionCategory, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGtu
addPerceptionCategory, contains, getPerceptionCategory, getPerceptionCategoryOrNull, removePerceptionCategory
protected static final ParameterTypeLength PERCEPTION
protected static final ParameterTypeLength LOOKAHEAD
protected static final ParameterTypeLength LOOKBACK
public AbstractLanePerception(LaneBasedGTU gtu)
gtu
- GTUpublic AbstractLanePerception(LaneBasedGTU gtu, Mental mental)
gtu
- GTUmental
- Mental; mental modulepublic final LaneStructure getLaneStructure() throws ParameterException
getLaneStructure
in interface LanePerception
ParameterException
- if parameter is not definedpublic Mental getMental()
getMental
in interface LanePerception
null
if not usedpublic void perceive() throws GTUException, NetworkException, ParameterException
perceive
in interface Perception<LaneBasedGTU>
perceive
in class AbstractPerception<LaneBasedGTU>
GTUException
NetworkException
ParameterException
Copyright © 2014–2018 Delft University of Technology. All rights reserved.