View Javadoc
1   package org.opentrafficsim.kpi.interfaces;
2   
3   import java.util.List;
4   
5   import org.djunits.value.vdouble.scalar.Length;
6   import org.opentrafficsim.base.Identifiable;
7   
8   /**
9    * Represents a link for sampling.
10   * <p>
11   * Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
13   * </p>
14   * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
15   * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a>
16   * @author <a href="https://dittlab.tudelft.nl">Wouter Schakel</a>
17   * @param <L> lane data type
18   */
19  public interface LinkData<L extends LaneData> extends Identifiable
20  {
21  
22      /**
23       * Returns the length of the link.
24       * @return Length; length of the link
25       */
26      Length getLength();
27  
28      /**
29       * Returns the lanes of the link.
30       * @return List&lt;L&gt;; list of lanes of the link
31       */
32      List<L> getLaneDatas();
33  
34  }