org.wdssii.core
Class DataTable
java.lang.Object
org.wdssii.core.DataType
org.wdssii.core.DataTable
public class DataTable
- extends DataType
- Author:
- lakshman
Methods inherited from class org.wdssii.core.DataType |
addAttributes, copyOf, getAttribute, getAttributes, getLocation, getTime, getTypeName, getUnit, getUTC, setAttribute, setAttributes, setTypeName, toStringDB |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columns
private final DataTable.Column[] columns
DataTable
public DataTable(Location originLoc,
Date startTime,
String typeName,
DataTable.Column[] columns)
- A tabular product.
- Parameters:
originLoc
- An arbitrary location representative of this table. All items in
this table are assumed to be at this location unless there is
a column named Latitude and/or Longitude and/or HeightstartTime
- An arbitrary time representative of this table. All items in this
table are assumed to be at this time. To include items at different
times, create different tables.typeName
- columns
- Provide the populated columns here or start off using the Column(name,unit)
constructor, then call addRow() multiple times.
If providing populated columns, make sure they're all the same size!
DataTable
public DataTable(DataTable master)
- copies all the attributes, etc. from the master. The master can change
without affecting this object
getColumns
public DataTable.Column[] getColumns()
addRow
public void addRow(String[] values)
- Make sure to provide the column values in the right order!
getNumRows
public int getNumRows()