T - IDM classpublic class AbstractIDMFactory<T extends AbstractIDM> extends Object implements CarFollowingModelFactory<T>
 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 | 
|---|
AbstractIDMFactory(T idm,
                  nl.tudelft.simulation.jstats.streams.StreamInterface randomStream)
Sets the idm model, which should be state-less. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
generateCarFollowingModel()
Returns a new instance of a car-following model. 
 | 
org.opentrafficsim.base.parameters.Parameters | 
getParameters()
Returns parameters for the given component. 
 | 
public AbstractIDMFactory(T idm, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream)
idm - T; idm model, which should be state-lessrandomStream - StreamInterface; random number streampublic final T generateCarFollowingModel()
generateCarFollowingModel in interface CarFollowingModelFactory<T extends AbstractIDM>public org.opentrafficsim.base.parameters.Parameters getParameters()
                                                            throws org.opentrafficsim.base.parameters.ParameterException
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 ModelComponentFactoryorg.opentrafficsim.base.parameters.ParameterException - on parameter exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.