public class LMRSFactory extends Object implements LaneBasedTacticalPlannerFactory<LMRS>, Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
LMRSFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics defaultCarFollowingBehavioralCharacteristics)
Constructor with car-following model class.
|
Modifier and Type | Method and Description |
---|---|
LMRS |
create(LaneBasedGTU gtu)
Creates a new tactical planner for the given GTU.
|
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics |
getDefaultBehavioralCharacteristics()
Returns a set of behavioral characteristics with default values for the next tactical planner that will be generated.
|
String |
toString() |
public LMRSFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics defaultCarFollowingBehavioralCharacteristics) throws org.opentrafficsim.core.gtu.GTUException
carFollowingModelFactory
- factory of the car-following modeldefaultCarFollowingBehavioralCharacteristics
- default set of parameters for the car-following modelorg.opentrafficsim.core.gtu.GTUException
- if the supplied car-following model does not have an accessible empty constructorpublic final org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics getDefaultBehavioralCharacteristics()
getDefaultBehavioralCharacteristics
in interface LaneBasedTacticalPlannerFactory<LMRS>
public final LMRS create(LaneBasedGTU gtu) throws org.opentrafficsim.core.gtu.GTUException
create
in interface LaneBasedTacticalPlannerFactory<LMRS>
gtu
- GTUorg.opentrafficsim.core.gtu.GTUException
- if the gtu is not suitable in any way for the creation of the tactical plannerCopyright © 2014–2016 Delft University of Technology. All rights reserved.