public abstract class AbstractLanePerception extends AbstractPerception<LaneBasedGTU> implements LanePerception
This class allows PerceptionCategorys that are either eager or lazy. All categories will have the updateAll
method invoked prior to an operational plan being determined. Categories may ignore this and instead evaluate results only
when the tactical planner requests them.
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.
| 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGtuaddPerceptionCategory, contains, getPerceptionCategory, getPerceptionCategoryOrNull, removePerceptionCategoryprotected static final ParameterTypeLength PERCEPTION
protected static final ParameterTypeLength LOOKAHEAD
protected static final ParameterTypeLength LOOKBACK
public AbstractLanePerception(LaneBasedGTU gtu)
gtu - LaneBasedGTU; GTUpublic AbstractLanePerception(LaneBasedGTU gtu, Mental mental)
gtu - LaneBasedGTU; GTUmental - Mental; mental modulepublic final LaneStructure getLaneStructure() throws ParameterException
getLaneStructure in interface LanePerceptionParameterException - if parameter is not definedpublic Mental getMental()
getMental in interface LanePerceptionnull if not usedpublic void perceive()
throws GTUException,
NetworkException,
ParameterException
perceive in interface Perception<LaneBasedGTU>perceive in class AbstractPerception<LaneBasedGTU>GTUExceptionNetworkExceptionParameterExceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.