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