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-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 13 * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>. 14 * <p> 15 * @version $Revision$, $LastChangedDate$, by $Author$, initial version 3 mrt. 2018 <br> 16 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 17 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 18 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a> 19 */ 20 public interface Initialisable 21 { 22 23 /** 24 * Initialize car-following model. 25 * @param gtu LaneBasedGTU; gtu 26 */ 27 void init(LaneBasedGTU gtu); 28 29 }