Package org.opentrafficsim.kpi.sampling
Class AbstractTable
- java.lang.Object
-
- org.opentrafficsim.kpi.sampling.AbstractTable
-
- All Implemented Interfaces:
Iterable<Record>,Identifiable,Table
- Direct Known Subclasses:
ListTable,SamplerData
public abstract class AbstractTable extends Object implements Table
AbstractTableimplementation taking care of the columns.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 AbstractTable(String id, String description, Collection<Column<?>> columns)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableList<Column<?>>getColumns()Returns the list of columns.StringgetDescription()Returns the description.StringgetId()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.opentrafficsim.kpi.sampling.Table
getNumberOfColumns, isEmpty
-
-
-
-
Constructor Detail
-
AbstractTable
public AbstractTable(String id, String description, Collection<Column<?>> columns)
Constructor.- Parameters:
id- String; iddescription- String; descriptioncolumns- Collection<Column<?>>; columns
-
-
Method Detail
-
getColumns
public ImmutableList<Column<?>> getColumns()
Returns the list of columns.- Specified by:
getColumnsin interfaceTable- Returns:
- list of columns
-
getId
public String getId()
- Specified by:
getIdin interfaceIdentifiable
-
getDescription
public String getDescription()
Returns the description.- Specified by:
getDescriptionin interfaceTable- Returns:
- description
-
-