T
- class of the strategical planner generatedpublic interface LaneBasedStrategicalPlannerFactory<T extends LaneBasedStrategicalPlanner>
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 | Method and Description |
---|---|
T |
create(LaneBasedGTU gtu,
Route route,
Node origin,
Node destination)
Creates a new strategical planner for the given GTU.
|
default Length |
peekDesiredHeadway(GTUType gtuType,
Speed speed)
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)
Peek to see the desired speed of the next GTU to be generated at the given location.
|
T create(LaneBasedGTU gtu, Route route, Node origin, Node destination) throws GTUException
gtu
- GTUroute
- route, may be nullorigin
- origin, may be nulldestination
- destination, may be nullGTUException
- if the gtu is not suitable in any way for the creation of the strategical plannerdefault Speed peekDesiredSpeed(GTUType gtuType, Speed speedLimit, Speed maxGtuSpeed) throws GTUException
null
, at which point the GTU generator will use some other speed.gtuType
- GTUType; GTU typespeedLimit
- Speed; speed limitmaxGtuSpeed
- Speed; maximum GTU speednull
at which point the GTU
generator will use some other speedGTUException
- on parameter exception or network exceptiondefault Length peekDesiredHeadway(GTUType gtuType, Speed speed) 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 atnull
at which point
the GTU generator only generate GTU's at fixed locationsGTUException
- on parameter exception or network exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.