T - class of the tactical planner generatedpublic abstract class AbstractLaneBasedTacticalPlannerFactory<T extends LaneBasedTacticalPlanner> extends Object implements LaneBasedTacticalPlannerFactory<T>
nextCarFollowingModel() to generate a new tactical planner. Implementations should also use
 getCarFollowingParameters() in the getParameters() method to include the parameters a car-following model
 requires.
 
 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.
 
| Constructor and Description | 
|---|
AbstractLaneBasedTacticalPlannerFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory,
                                       PerceptionFactory perceptionFactory)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected String | 
getCarFollowingModelFactoryString()
Returns a  
String representation of the car-following model factory. | 
protected org.opentrafficsim.base.parameters.Parameters | 
getCarFollowingParameters()
Returns the parameters for the car-following model using the factory. 
 | 
PerceptionFactory | 
getPerceptionFactory()
Returns the perception factory. 
 | 
protected CarFollowingModel | 
nextCarFollowingModel(LaneBasedGTU gtu)
Returns the next car following model. 
 | 
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. 
 | 
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. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreategetParameterspublic AbstractLaneBasedTacticalPlannerFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory, PerceptionFactory perceptionFactory)
carFollowingModelFactory - CarFollowingModelFactory<? extends CarFollowingModel>; car-following model factoryperceptionFactory - PerceptionFactory; perception factoryprotected final CarFollowingModel nextCarFollowingModel(LaneBasedGTU gtu)
gtu - LaneBasedGTU; gtuprotected final org.opentrafficsim.base.parameters.Parameters getCarFollowingParameters()
                                                                                 throws org.opentrafficsim.base.parameters.ParameterException
getParameters() method of implementing sub-classes.org.opentrafficsim.base.parameters.ParameterException - on illegal parameter valueprotected final String getCarFollowingModelFactoryString()
String representation of the car-following model factory. This method may be used in the
 toString() method of implementing sub-classes.public final 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.peekDesiredSpeed in interface LaneBasedTacticalPlannerFactory<T extends LaneBasedTacticalPlanner>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 exceptionpublic final 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.peekDesiredHeadway in interface LaneBasedTacticalPlannerFactory<T extends LaneBasedTacticalPlanner>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 exceptionpublic PerceptionFactory getPerceptionFactory()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.