1 package org.opentrafficsim.road.gtu.lane.tactical.following;
2
3 import org.opentrafficsim.base.parameters.ParameterSet;
4 import org.opentrafficsim.base.parameters.Parameters;
5
6 /**
7 * <p>
8 * Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9 * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
10 * <p>
11 * @version $Revision$, $LastChangedDate$, by $Author$, initial version Sep 15, 2016 <br>
12 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
13 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
14 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
15 */
16 public class IDMPlusMultiFactory implements CarFollowingModelFactory<IDMPlusMulti>
17 {
18
19 /** Single instance as it is state-less. */
20 private final IDMPlusMulti idmPlusMulti = new IDMPlusMulti();
21
22 /** {@inheritDoc} */
23 @Override
24 public final IDMPlusMulti generateCarFollowingModel()
25 {
26 return this.idmPlusMulti;
27 }
28
29 /** {@inheritDoc} */
30 @Override
31 public Parameters getParameters()
32 {
33 ParameterSet parameters = new ParameterSet();
34 parameters.setDefaultParameters(AbstractIDM.class);
35 return parameters;
36 }
37
38 /** {@inheritDoc} */
39 @Override
40 public final String toString()
41 {
42 return "IDMPlusMultiFactory";
43 }
44
45 }