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-2019 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 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. 
 | 
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. 
 | 
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. 
 | 
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 Parameters getCarFollowingParameters() throws ParameterException
getParameters() method of implementing sub-classes.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 Speed peekDesiredSpeed(GTUType gtuType, Speed speedLimit, Speed maxGtuSpeed, Parameters parameters) throws 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 speedGTUException - on any exceptionpublic final 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.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 locationsGTUException - on any exceptionpublic PerceptionFactory getPerceptionFactory()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.