jadex.application.space.envsupport.evaluation
Class DataTable

java.lang.Object
  extended by jadex.application.space.envsupport.evaluation.DataTable

public class DataTable
extends Object

Basic data structure for all collected data.


Field Summary
protected  String[] columnnames
          The table column names.
protected  Map columns
          The map of column indices.
protected  String name
          The table name.
protected  List rows
          The data rows.
 
Constructor Summary
DataTable(String name, String[] columnnames)
          Create a new data table.
 
Method Summary
 void addRow(Object[] row)
          Add a data row.
 int getColumnIndex(String columnname)
          Get the column index for a column name.
 String[] getColumnNames()
          Get the columnnames.
 Object getData(int row, int column)
          Get the data element from a specific row and column.
 String getName()
          Get the name.
 List getRows()
          Get the data rows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
The table name.


columnnames

protected String[] columnnames
The table column names.


rows

protected List rows
The data rows.


columns

protected Map columns
The map of column indices.

Constructor Detail

DataTable

public DataTable(String name,
                 String[] columnnames)
Create a new data table.

Method Detail

addRow

public void addRow(Object[] row)
Add a data row.

Parameters:
row - The data row.

getRows

public List getRows()
Get the data rows.

Returns:
The data rows.

getColumnNames

public String[] getColumnNames()
Get the columnnames.

Returns:
The columnnames.

getColumnIndex

public int getColumnIndex(String columnname)
Get the column index for a column name.

Parameters:
columnname - The column name.
Returns:
The column index.

getData

public Object getData(int row,
                      int column)
Get the data element from a specific row and column.


getName

public String getName()
Get the name.

Returns:
The name.


Copyright © 2010. All Rights Reserved.