T - class of the strategical planner generatedpublic interface LaneBasedStrategicalPlannerFactory<T extends LaneBasedStrategicalPlanner>
Copyright (c) 2013-2017 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,
org.opentrafficsim.core.network.route.Route route,
org.opentrafficsim.core.network.Node origin,
org.opentrafficsim.core.network.Node destination)
Creates a new strategical planner for the given GTU.
|
default org.djunits.value.vdouble.scalar.Length |
peekDesiredHeadway(org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed speed)
Peek to see the desired headway of the next GTU to be generated at the given speed.
|
default org.djunits.value.vdouble.scalar.Speed |
peekDesiredSpeed(org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed speedLimit,
org.djunits.value.vdouble.scalar.Speed maxGtuSpeed)
Peek to see the desired speed of the next GTU to be generated at the given location.
|
T create(LaneBasedGTU gtu, org.opentrafficsim.core.network.route.Route route, org.opentrafficsim.core.network.Node origin, org.opentrafficsim.core.network.Node destination) throws org.opentrafficsim.core.gtu.GTUException
gtu - GTUroute - route, may be nullorigin - origin, may be nulldestination - destination, may be nullorg.opentrafficsim.core.gtu.GTUException - if the gtu is not suitable in any way for the creation of the strategical plannerdefault org.djunits.value.vdouble.scalar.Speed peekDesiredSpeed(org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed speedLimit,
org.djunits.value.vdouble.scalar.Speed maxGtuSpeed)
throws org.opentrafficsim.core.gtu.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 speedorg.opentrafficsim.core.gtu.GTUException - on parameter exception or network exceptiondefault org.djunits.value.vdouble.scalar.Length peekDesiredHeadway(org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed speed)
throws org.opentrafficsim.core.gtu.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 locationsorg.opentrafficsim.core.gtu.GTUException - on parameter exception or network exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.