T - class of the tactical planner generatedpublic interface LaneBasedTacticalPlannerFactory<T extends LaneBasedTacticalPlanner> extends ModelComponentFactory
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)
Creates a new tactical 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,
org.opentrafficsim.base.parameters.Parameters parameters)
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,
org.opentrafficsim.base.parameters.Parameters parameters)
Peek to see the desired speed of the next GTU to be generated at the given location.
|
getParametersT create(LaneBasedGTU gtu) throws org.opentrafficsim.core.gtu.GTUException
gtu - GTUorg.opentrafficsim.core.gtu.GTUException - if the gtu is not suitable in any way for the creation of the tactical 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,
org.opentrafficsim.base.parameters.Parameters parameters)
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 speedparameters - Parameters; parameters for the next GTUnull at which point the GTU
generator will use some other speedorg.opentrafficsim.core.gtu.GTUException - on any exceptiondefault org.djunits.value.vdouble.scalar.Length peekDesiredHeadway(org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Speed speed,
org.opentrafficsim.base.parameters.Parameters parameters)
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 atparameters - Parameters; parameters for the next GTUnull at which point
the GTU generator will only generate GTU's at fixed locationsorg.opentrafficsim.core.gtu.GTUException - on any exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.