View Javadoc
1   package org.opentrafficsim.road.gtu.generator;
2   
3   import java.util.Map;
4   
5   import org.opentrafficsim.core.geometry.DirectedPoint;
6   
7   import nl.tudelft.simulation.dsol.animation.Locatable;
8   
9   /**
10   * Interface for GTU generators. As generators can be quite distinct and function autonomously, this interface only regards
11   * information for animation.
12   * <p>
13   * Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
14   * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
15   * <p>
16   * @version $Revision$, $LastChangedDate$, by $Author$, initial version 11 jan. 2018 <br>
17   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
18   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
19   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
20   */
21  public interface GtuGeneratorQueue extends Locatable
22  {
23  
24      /**
25       * Returns the locations and lengths of generation queues. Note that the provided location may differ from the generator
26       * location, as one generator may generate GTU's at different points.
27       * @return Map&lt;DirectedPoint, Integer&gt;; locations and lengths of generation queues
28       */
29      Map<DirectedPoint, Integer> getQueueLengths();
30  
31  }