1 package org.opentrafficsim.graphs; 2 3 import org.opentrafficsim.core.network.NetworkException; 4 import org.opentrafficsim.road.gtu.lane.AbstractLaneBasedGTU; 5 import org.opentrafficsim.road.network.lane.Lane; 6 7 /** 8 * Interface implemented by graphs that sample movements of a lane-based GTU. 9 * <p> 10 * Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 11 * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 12 * <p> 13 * $LastChangedDate: 2015-09-14 01:33:02 +0200 (Mon, 14 Sep 2015) $, @version $Revision: 1401 $, by $Author: averbraeck $, 14 * initial version 5 jan. 2015 <br> 15 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 16 */ 17 public interface LaneBasedGTUSampler 18 { 19 /** 20 * Add the movement of an AbstractLaneBasedGTU to a graph. 21 * @param gtu AbstractLaneBasedGTU; the AbstractLaneBasedGTU 22 * @param lane Lane; the Lane for which the movement must be added 23 * @throws NetworkException on network-related inconsistency 24 */ 25 void addData(AbstractLaneBasedGTU gtu, Lane lane) throws NetworkException; 26 27 /** 28 * Force redraw of the graph. 29 */ 30 void reGraph(); 31 }