public class LaneBasedGTUFollowingTacticalPlannerFactory extends Object implements LaneBasedTacticalPlannerFactory<LaneBasedGTUFollowingTacticalPlanner>, Serializable
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 |
---|
LaneBasedGTUFollowingTacticalPlannerFactory(GTUFollowingModelOld carFollowingModel)
Constructor with fixed stateless car-following and lane change model.
|
Modifier and Type | Method and Description |
---|---|
LaneBasedGTUFollowingTacticalPlanner |
create(LaneBasedGTU gtu)
Creates a new tactical planner for the given GTU.
|
Parameters |
getParameters()
Returns parameters for the given component.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
peekDesiredHeadway, peekDesiredSpeed
public LaneBasedGTUFollowingTacticalPlannerFactory(GTUFollowingModelOld carFollowingModel)
carFollowingModel
- GTUFollowingModelOld; car following modelpublic final Parameters getParameters()
Parameters parameters = this.subComponent1Factory.getParameters(); this.subComponent2Factory.getParameters().setAllIn(parameters); parameters.setDefaultParameters(componentClass); parameters.setDefaultParameters(staticUtilityClass); return parameters;where all parameters used in
componentClass
are defined or forwarded in componentClass
.// forwarded public static final ParameterTypeAcceleration A = ParameterTypes.A; // defined public static final ParameterTypeDouble FACTOR = new ParameterTypeDouble("factor", "factor on response", 1.0);The same holds for static utilities that are used. Parameters should be defined at the utility class, and parameters of used utilities should be included.
getParameters
in interface ModelComponentFactory
public final LaneBasedGTUFollowingTacticalPlanner create(LaneBasedGTU gtu) throws GTUException
create
in interface LaneBasedTacticalPlannerFactory<LaneBasedGTUFollowingTacticalPlanner>
gtu
- LaneBasedGTU; GTUGTUException
- if the gtu is not suitable in any way for the creation of the tactical plannerCopyright © 2014–2019 Delft University of Technology. All rights reserved.