T
- class of the tactical planner generatedpublic interface LaneBasedTacticalPlannerFactory<T extends LaneBasedTacticalPlanner> extends ModelComponentFactory
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 | Method and Description |
---|---|
T |
create(LaneBasedGTU gtu)
Creates a new tactical planner for the given GTU.
|
default Length |
peekDesiredHeadway(GTUType gtuType,
Speed speed,
Parameters parameters)
Peek to see the desired headway of the next GTU to be generated at the given speed.
|
default Speed |
peekDesiredSpeed(GTUType gtuType,
Speed speedLimit,
Speed maxGtuSpeed,
Parameters parameters)
Peek to see the desired speed of the next GTU to be generated at the given location.
|
getParameters
T create(LaneBasedGTU gtu) throws GTUException
gtu
- LaneBasedGTU; GTUGTUException
- if the gtu is not suitable in any way for the creation of the tactical plannerdefault Speed peekDesiredSpeed(GTUType gtuType, Speed speedLimit, Speed maxGtuSpeed, Parameters parameters) throws GTUException
null
, at which point the GTU generator will use some other speed.gtuType
- GTUType; GTU typespeedLimit
- Speed; speed limitmaxGtuSpeed
- Speed; maximum GTU speedparameters
- Parameters; parameters for the next GTUnull
at which point the GTU
generator will use some other speedGTUException
- on any exceptiondefault Length peekDesiredHeadway(GTUType gtuType, Speed speed, Parameters parameters) throws GTUException
null
, at which point the GTU generator will only generate GTU's at fixed locations.gtuType
- GTUType; GTU typespeed
- Speed; speed the GTU might be generated atparameters
- Parameters; parameters for the next GTUnull
at which point
the GTU generator will only generate GTU's at fixed locationsGTUException
- on any exceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.