|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unibz.algorithms.types.Row
public class Row
This class represents both the dataset attributes and the data content of our database. The number of attributes are obviously equal to the number of elements contained in a single dataset row.
Field Summary | |
---|---|
(package private) java.util.ArrayList<java.lang.String> |
row
|
Constructor Summary | |
---|---|
Row()
This constructor initializes the arraylist named row |
|
Row(java.lang.String s)
This constructor receives a string straight from the arff file. |
Method Summary | |
---|---|
void |
addRowAttribute(java.lang.String o)
This method simply adds data into the arraylist |
int |
getSize()
Returns the number of element contained into the arraylist |
java.lang.String |
getValue(int i)
This method returns an indexed value contained into the arraylist |
java.lang.String |
printRow()
This method returns a formatted form of the arraylyst content |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.ArrayList<java.lang.String> row
Constructor Detail |
---|
public Row()
public Row(java.lang.String s)
s
- String that follows arff files structureMethod Detail |
---|
public int getSize()
public void addRowAttribute(java.lang.String o)
o
- String dataset valuepublic java.lang.String getValue(int i)
i
- Index
public java.lang.String printRow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |