edu.udo.cs.yale.datatable
Class SimpleDataTableRow

java.lang.Object
  extended by edu.udo.cs.yale.datatable.SimpleDataTableRow
All Implemented Interfaces:
DataTableRow

public class SimpleDataTableRow
extends java.lang.Object
implements DataTableRow

A data list that contains Object arrays that record experiment results or other data. Each row can consist of an id and an object array which represents the data.

Version:
$Id: SimpleDataTableRow.java,v 1.3 2006/08/03 14:39:33 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  java.lang.String id
           
private  double[] row
           
 
Constructor Summary
SimpleDataTableRow(double[] row)
           
SimpleDataTableRow(double[] row, java.lang.String id)
           
 
Method Summary
 java.lang.String getId()
          Returns the Id of this table row.
 int getNumberOfValues()
          Returns the total number of values.
 double getValue(int index)
          Returns the i-th value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

row

private double[] row

id

private java.lang.String id
Constructor Detail

SimpleDataTableRow

public SimpleDataTableRow(double[] row)

SimpleDataTableRow

public SimpleDataTableRow(double[] row,
                          java.lang.String id)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: DataTableRow
Returns the Id of this table row.

Specified by:
getId in interface DataTableRow


getValue

public double getValue(int index)
Description copied from interface: DataTableRow
Returns the i-th value.

Specified by:
getValue in interface DataTableRow


getNumberOfValues

public int getNumberOfValues()
Description copied from interface: DataTableRow
Returns the total number of values.

Specified by:
getNumberOfValues in interface DataTableRow



Copyright © 2001-2006