public class LMRSFactory extends Object implements LaneBasedTacticalPlannerFactory<LMRS>, Serializable
Copyright (c) 2013-2017 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,
PerceptionFactory perceptionFactory)
Constructor using default incentives and passive synchronization.
|
LMRSFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics defaultCarFollowingBehavioralCharacteristics,
PerceptionFactory perceptionFactory,
Synchronization synchronization,
Set<MandatoryIncentive> mandatoryIncentives,
Set<VoluntaryIncentive> voluntaryIncentives,
Set<AccelerationIncentive> accelerationIncentives)
Constructor with full control over incentives and type of synchronization.
|
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 new 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, PerceptionFactory perceptionFactory) throws org.opentrafficsim.core.gtu.GTUException
carFollowingModelFactory
- factory of the car-following modeldefaultCarFollowingBehavioralCharacteristics
- default set of parameters for the car-following modelperceptionFactory
- perception factoryorg.opentrafficsim.core.gtu.GTUException
- if the supplied car-following model does not have an accessible empty constructorpublic LMRSFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics defaultCarFollowingBehavioralCharacteristics, PerceptionFactory perceptionFactory, Synchronization synchronization, Set<MandatoryIncentive> mandatoryIncentives, Set<VoluntaryIncentive> voluntaryIncentives, Set<AccelerationIncentive> accelerationIncentives) throws org.opentrafficsim.core.gtu.GTUException
carFollowingModelFactory
- factory of the car-following modeldefaultCarFollowingBehavioralCharacteristics
- default set of parameters for the car-following modelperceptionFactory
- perception factorysynchronization
- type of synchronizationmandatoryIncentives
- mandatory incentivesvoluntaryIncentives
- voluntary incentivesaccelerationIncentives
- acceleration incentivesorg.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–2017 Delft University of Technology. All rights reserved.