eu.reservoir.monitoring.core.table
Interface Table

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultTable

public interface Table
extends java.io.Serializable

An interface for a Table that can be used as a ProbeAttributeType.


Method Summary
 Table addRow(java.util.List<TableValue> row)
          Add a row to the table.
 Table addRow(TableRow row)
          Add a row to the table.
 Table defineTable(java.util.List<TableAttribute> attrs)
          Define all columns.
 Table defineTable(TableHeader header)
          Define all columns
 int getColumnCount()
          Get the number of columns in the table.
 TableHeader getColumnDefinitions()
          Get the list of all the column definitions.
 TableRow getRow(int rowNo)
          Get a row.
 int getRowCount()
          Get the number of rows in the table.
 java.util.List<TableRow> toList()
          Convert the Table to a List of TableRows.
 

Method Detail

defineTable

Table defineTable(TableHeader header)
Define all columns


defineTable

Table defineTable(java.util.List<TableAttribute> attrs)
Define all columns.


addRow

Table addRow(TableRow row)
             throws TableException,
                    TypeException
Add a row to the table.

Throws:
TableException
TypeException

addRow

Table addRow(java.util.List<TableValue> row)
             throws TableException,
                    TypeException
Add a row to the table. Pass in a lit of TableValue.

Throws:
TableException
TypeException

getRow

TableRow getRow(int rowNo)
Get a row.


getColumnCount

int getColumnCount()
Get the number of columns in the table.


getRowCount

int getRowCount()
Get the number of rows in the table.


getColumnDefinitions

TableHeader getColumnDefinitions()
Get the list of all the column definitions.


toList

java.util.List<TableRow> toList()
Convert the Table to a List of TableRows.



RESERVOIR Monitoring 0.6.4