View Javadoc
1   package org.opentrafficsim.kpi.sampling;
2   
3   /**
4    * Consistent set of values corresponding to columns. 
5    * <p>
6    * Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
7    * BSD-style license. See <a href="https://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
8    * </p>
9    * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
10   * @author <a href="https://www.tudelft.nl/pknoppers">Peter Knoppers</a>
11   * @author <a href="https://www.transport.citg.tudelft.nl">Wouter Schakel</a>
12   */
13  public interface Record
14  {
15      
16      /**
17       * Returns the column value of this record.
18       * @param column Column&lt;T&gt;; column
19       * @param <T> value type
20       * @return the column value in this record
21       */
22      <T> T getValue(Column<T> column);
23      
24      /**
25       * Returns the column value of this record.
26       * @param id String; column id
27       * @return the column value in this record
28       */
29      Object getValue(String id);
30  
31  }