1 package org.opentrafficsim.road.gtu.lane.tactical.following; 2 3 import org.djunits.value.vdouble.scalar.Length; 4 import org.djunits.value.vdouble.scalar.Speed; 5 import org.opentrafficsim.base.parameters.ParameterException; 6 import org.opentrafficsim.base.parameters.Parameters; 7 8 /** 9 * Desired headway model. 10 * <p> 11 * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 12 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 13 * </p> 14 * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a> 15 * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a> 16 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a> 17 */ 18 public interface DesiredHeadwayModel 19 { 20 21 /** 22 * Determines the desired headway in equilibrium conditions, i.e. no speed difference with the leader. 23 * @param parameters Parameters; parameters 24 * @param speed Speed; speed to determine the desired headway at 25 * @throws ParameterException if parameter exception occurs 26 * @return desired headway 27 */ 28 Length desiredHeadway(Parameters parameters, Speed speed) throws ParameterException; 29 30 }