org.wdssii.core
Class DataTable

java.lang.Object
  extended by org.wdssii.core.DataType
      extended by org.wdssii.core.DataTable

public class DataTable
extends DataType

Author:
lakshman

Nested Class Summary
static class DataTable.Column
           
 
Field Summary
private  DataTable.Column[] columns
           
 
Fields inherited from class org.wdssii.core.DataType
attributes, DataUnavailable, MissingData, originLocation, RangeFolded, startTime, typeName
 
Constructor Summary
DataTable(DataTable master)
          copies all the attributes, etc.
DataTable(Location originLoc, Date startTime, String typeName, DataTable.Column[] columns)
          A tabular product.
 
Method Summary
 void addRow(String[] values)
          Make sure to provide the column values in the right order!
 DataTable.Column[] getColumns()
           
 int getNumRows()
           
 
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
 

Field Detail

columns

private final DataTable.Column[] columns
Constructor Detail

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 Height
startTime - 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

Method Detail

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()