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