1 package org.opentrafficsim.road.gtu.lane.tactical.following; 2 3 import org.opentrafficsim.road.gtu.lane.LaneBasedGtu; 4 5 /** 6 * Interface that can be implemented by desired headway models and desired speed models, such that they can be coupled to their 7 * simulation context. Note that these models need to be able to work without this context, as part of peeking by GTU 8 * generators. For instance, they can provide some default or average value. When the GTU is successfully generated, the 9 * {@code init()} method is invoked by {@code AbstractCarFollowingModel}, and the model can work fully throughout the GTUs life 10 * span thereafter. 11 * <p> 12 * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 13 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 14 * </p> 15 * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a> 16 * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a> 17 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a> 18 */ 19 public interface Initialisable 20 { 21 22 /** 23 * Initialize car-following model. 24 * @param gtu LaneBasedGtu; gtu 25 */ 26 void init(LaneBasedGtu gtu); 27 28 }