Package org.opentrafficsim.kpi.sampling
Class SimpleColumn<T>
- java.lang.Object
-
- org.opentrafficsim.kpi.sampling.SimpleColumn<T>
-
- Type Parameters:
T- value type
- All Implemented Interfaces:
Identifiable,Column<T>
public class SimpleColumn<T> extends java.lang.Object implements Column<T>
Simple column implementation.Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description SimpleColumn(java.lang.String id, java.lang.String description, java.lang.Class<T> valueType)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns the column description.java.lang.StringgetId()java.lang.Class<T>getValueType()Returns the type of the values in the column.
-
-
-
Constructor Detail
-
SimpleColumn
public SimpleColumn(java.lang.String id, java.lang.String description, java.lang.Class<T> valueType)Constructor.- Parameters:
id- String; iddescription- String; descriptionvalueType- Class<T>; value type
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceIdentifiable
-
getDescription
public java.lang.String getDescription()
Returns the column description.- Specified by:
getDescriptionin interfaceColumn<T>- Returns:
- String; column description
-
getValueType
public java.lang.Class<T> getValueType()
Returns the type of the values in the column.- Specified by:
getValueTypein interfaceColumn<T>- Returns:
- Class<?>; type of the values in the column
-
-