IDMFactory.java

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

  2. import nl.tudelft.simulation.jstats.streams.StreamInterface;

  3. /**
  4.  * Factory for IDM.
  5.  * <p>
  6.  * Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  7.  * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
  8.  * <p>
  9.  * @version $Revision$, $LastChangedDate$, by $Author$, initial version Sep 15, 2016 <br>
  10.  * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
  11.  * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
  12.  * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
  13.  */
  14. public class IDMFactory extends AbstractIDMFactory<IDM>
  15. {

  16.     /**
  17.      * Constructor.
  18.      * @param randomStream StreamInterface; random number stream
  19.      */
  20.     public IDMFactory(final StreamInterface randomStream)
  21.     {
  22.         super(new IDM(), randomStream);
  23.     }

  24.     /** {@inheritDoc} */
  25.     @Override
  26.     public final String toString()
  27.     {
  28.         return "IDMFactory";
  29.     }

  30. }