IDMPlusMultiFactory.java

package org.opentrafficsim.road.gtu.lane.tactical.following;

import org.opentrafficsim.base.parameters.ParameterSet;
import org.opentrafficsim.base.parameters.Parameters;

/**
 * <p>
 * Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
 * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
 * <p>
 * @version $Revision$, $LastChangedDate$, by $Author$, initial version Sep 15, 2016 <br>
 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
 */
public class IDMPlusMultiFactory implements CarFollowingModelFactory<IDMPlusMulti>
{

    /** Single instance as it is state-less. */
    private final IDMPlusMulti idmPlusMulti = new IDMPlusMulti();

    /** {@inheritDoc} */
    @Override
    public final IDMPlusMulti generateCarFollowingModel()
    {
        return this.idmPlusMulti;
    }

    /** {@inheritDoc} */
    @Override
    public Parameters getParameters()
    {
        ParameterSet parameters = new ParameterSet();
        parameters.setDefaultParameters(AbstractIDM.class);
        return parameters;
    }

    /** {@inheritDoc} */
    @Override
    public final String toString()
    {
        return "IDMPlusMultiFactory";
    }

}