databionics.io
Class DataItem

java.lang.Object
  extended by databionics.io.DataItem
Direct Known Subclasses:
Bestmatch, DataClass, Explanation, KeyName, Rule

public abstract class DataItem
extends java.lang.Object

Base class for data items with an index.


Field Summary
protected  int index
          Index of data point.
protected static org.apache.log4j.Logger log
          Log4j logging.
 
Constructor Summary
DataItem()
          Standard constructor
DataItem(int index)
          Constructor with index
 
Method Summary
 int getIndex()
          Get the index of data point.
 void setIndex(int index)
          Set the index of data point.
 java.lang.String toString()
          String representation with default delimiter (tab).
abstract  java.lang.String toString(java.lang.String delimiter)
          String representation with custom delimiter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Log4j logging.


index

protected int index
Index of data point.

Constructor Detail

DataItem

public DataItem()
Standard constructor


DataItem

public DataItem(int index)
Constructor with index

Parameters:
index - The index
Method Detail

getIndex

public int getIndex()
Get the index of data point.


setIndex

public void setIndex(int index)
Set the index of data point.


toString

public java.lang.String toString()
String representation with default delimiter (tab).

Overrides:
toString in class java.lang.Object

toString

public abstract java.lang.String toString(java.lang.String delimiter)
String representation with custom delimiter.



Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.