|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DataSet | +--TabDataSet
TabDataSet implements a dataset for tabular data.
Fields inherited from class DataSet |
programWindow |
Fields inherited from interface Constants |
DEBUG,
T_BOOLEAN,
T_CLASS,
T_DOUBLE,
T_INTEGER,
T_SELECT,
T_UNSELECT |
Constructor Summary | |
TabDataSet()
|
Method Summary | |
void |
addAttributeView(AttributeView av)
Method adds the given AttributeView -object to TabDataSet's structures. |
void |
addConstraintToTDW2D(int tag,
int attrno,
double min,
double max)
Method adds a constraint to the TabDataView2D-object. |
void |
addConstraintToTDW2D(int tag,
int attrno,
int min,
int max)
Method adds a constraint to the TabCursor-object. |
void |
addConstraintToTDW2D(int tag,
int attrno,
long min,
long max)
Method adds a constraint to the TabDataView2D-object. |
void |
addTabDataView2D(TabDataView2D dv)
Method adds the given TabDataView2D -object to TabDataSet's structures. |
java.lang.String |
getAttributeMeasurement(int attrNo)
Method returns the measurement of the given attribute. |
java.lang.String |
getAttributeName(int attrNo)
Method returns the name of the given attribute (column). |
int |
getAttributeNumber(java.lang.String attrname)
Method returns the number of the given attribute. |
int |
getAttributeType(int attrNo)
Method returns the type of the given attribute: 0=long, 1=double, 2=class. |
boolean |
getBooleanValue(int rowNo,
int attrNo)
Method returns the value of the given attribute on the given row. |
int |
getClassValue(int rowNo,
int attrNo)
Method returns the value of the given attribute on the given row. |
java.lang.String |
getCorruptedRows()
Returns a list of the rownumbers of the corrupted rows in the data file. |
TabCursor |
getCursor()
Method returns TabCursor object for browsing of the data. |
boolean |
getData()
Starts to fetch data from the tabular DataSource. |
boolean[] |
getDataSelectionArray()
Method returns a boolean array showing all the selected rows |
java.lang.Object[] |
getDataState()
Method returns the state of the data for saving the selections and constraints. |
java.lang.String[][] |
getDataStringArray()
Method returns a 2D-String array representing the data with attributes' name's on the first row and rownumbers on the first column. |
double |
getDoubleValue(int rowNo,
int attrNo)
Method returns the value of the given attribute on the given row. |
Index |
getIndex(int attrNo)
Method gives index for given attribute (column). |
long |
getLongValue(int rowNo,
int attrNo)
Method returns the value of the given attribute on the given row. |
double |
getMaxDouble(int attrNo)
Method returns the minimum value of the given attribute. |
long |
getMaxLong(int attrNo)
Method returns the maximum value of the given attribute. |
double |
getMinDouble(int attrNo)
Method returns the minimum value of the given attribute. |
long |
getMinLong(int attrNo)
Method returns the minimum value of the given attribute. |
int |
getNumberofAttributes()
Method returns the number of attributes (columns) in the dataset. |
int |
getNumberofClasses(int attrNo)
Method returns the number of class values the class typed attribute contains. |
int |
getNumberofRows()
Method returns the number of rows in the dataset. |
java.util.Vector |
getSelectionVector(int attrno)
Method returns the given attribute's selections made from the AttributeView. |
java.lang.String |
getTitle()
Returns the data's title. |
java.lang.String |
getValueofClass(int attrNo,
int classNo)
Method returns the value (string) of the given class of the given attribute. |
boolean |
isRowSelected(int rowNo)
Method returns true if the given row is selected. |
void |
removeAttributeView(AttributeView av)
Method removes the given AttributeView -object from TabDataSet's structures. |
void |
removeConstraintFromTDW2D(int tag)
Method removes a constraint from the TabDataView2D-object. |
void |
removeSelectedRows()
Removes the selection from all the selected rows. |
void |
removeSelectedRows(int AttrNo)
Removes the selections of a single attribute. |
void |
removeSelectedRows(int AttrNo,
double AttrMin,
double AttrMax)
Removes the selections of a single attribute from the given range. |
void |
removeSelectedRows(int Attr1No,
double Attr1Min,
double Attr1Max,
int Attr2No,
double Attr2Min,
double Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int Attr1No,
double Attr1Min,
double Attr1Max,
int Attr2No,
int Attr2Min,
int Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int Attr1No,
double Attr1Min,
double Attr1Max,
int Attr2No,
long Attr2Min,
long Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int AttrNo,
int AttrMin,
int AttrMax)
Removes the selections of a single attribute from the given range. |
void |
removeSelectedRows(int Attr1No,
int Attr1Min,
int Attr1Max,
int Attr2No,
double Attr2Min,
double Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int Attr1No,
int Attr1Min,
int Attr1Max,
int Attr2No,
int Attr2Min,
int Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int Attr1No,
int Attr1Min,
int Attr1Max,
int Attr2No,
long Attr2Min,
long Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int AttrNo,
long AttrMin,
long AttrMax)
Removes the selections of a single attribute from the given range. |
void |
removeSelectedRows(int Attr1No,
long Attr1Min,
long Attr1Max,
int Attr2No,
double Attr2Min,
double Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int Attr1No,
long Attr1Min,
long Attr1Max,
int Attr2No,
int Attr2Min,
int Attr2Max)
Removes some of the selections. |
void |
removeSelectedRows(int Attr1No,
long Attr1Min,
long Attr1Max,
int Attr2No,
long Attr2Min,
long Attr2Max)
Removes some of the selections. |
void |
removeTabDataView2D(TabDataView2D dv)
Method removes the given TabDataView2D -object from TabDataSet's structures. |
boolean |
selectionActive()
Tells if something is selected from the data. |
void |
setDataState(java.lang.Object[] objArr)
Method sets the selections and constraints as they were received from the getDataState() -method. |
boolean |
setSelectedRows(int AttrNo,
double AttrMin,
double AttrMax)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
double Attr1Min,
double Attr1Max,
int Attr2No,
double Attr2Min,
double Attr2Max)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
double Attr1Min,
double Attr1Max,
int Attr2No,
int Attr2Min,
int Attr2Max)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
double Attr1Min,
double Attr1Max,
int Attr2No,
long Attr2Min,
long Attr2Max)
Sets some of the rows in the set as selected. |
boolean |
setSelectedRows(int AttrNo,
int AttrMin,
int AttrMax)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
int Attr1Min,
int Attr1Max,
int Attr2No,
double Attr2Min,
double Attr2Max)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
int Attr1Min,
int Attr1Max,
int Attr2No,
int Attr2Min,
int Attr2Max)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
int Attr1Min,
int Attr1Max,
int Attr2No,
long Attr2Min,
long Attr2Max)
Sets some of the rows in the set as selected. |
boolean |
setSelectedRows(int AttrNo,
long AttrMin,
long AttrMax)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
long Attr1Min,
long Attr1Max,
int Attr2No,
double Attr2Min,
double Attr2Max)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
long Attr1Min,
long Attr1Max,
int Attr2No,
int Attr2Min,
int Attr2Max)
Sets some of the rows in the set as selected. |
void |
setSelectedRows(int Attr1No,
long Attr1Min,
long Attr1Max,
int Attr2No,
long Attr2Min,
long Attr2Max)
Sets some of the rows in the set as selected. |
void |
setSelectionType(int sel)
Method sets the selection type as union or intersection and updates the selections to the data. |
Methods inherited from class DataSet |
getDataSource,
setDataSource,
setProgramWindow |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TabDataSet()
Method Detail |
public boolean getData() throws java.lang.Exception
public java.lang.String getCorruptedRows()
public java.lang.String getTitle()
public TabCursor getCursor()
public Index getIndex(int attrNo)
public long getLongValue(int rowNo, int attrNo)
rowNo
- - The number of row and number of attribute (column).attrNo
- - The number of attribute (column).public double getDoubleValue(int rowNo, int attrNo)
rowNo
- - The number of row and number of attribute (column).attrNo
- - The number of attribute (column).public int getClassValue(int rowNo, int attrNo)
rowNo
- - The number of row and number of attribute (column).attrNo
- - The number of attribute (column).public boolean getBooleanValue(int rowNo, int attrNo)
rowNo
- - The number of row and number of attribute (column).attrNo
- - The number of attribute (column).public boolean isRowSelected(int rowNo)
rowNo
- - The rownumber.public boolean setSelectedRows(int AttrNo, long AttrMin, long AttrMax)
AttrNo
- - The number of attribute (column).AttrMin
- - Attribute's lower limit.AttrMax
- - Attribute's upper limit.public boolean setSelectedRows(int AttrNo, double AttrMin, double AttrMax)
AttrNo
- - The number of attribute (column).AttrMin
- - Attribute's lower limit.AttrMax
- - Attribute's upper limit.public boolean setSelectedRows(int AttrNo, int AttrMin, int AttrMax)
AttrNo
- - The number of attribute (column).AttrMin
- - Attribute's lower limit.AttrMax
- - Attribute's upper limit.public void setSelectedRows(int Attr1No, long Attr1Min, long Attr1Max, int Attr2No, long Attr2Min, long Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, long Attr1Min, long Attr1Max, int Attr2No, double Attr2Min, double Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, double Attr1Min, double Attr1Max, int Attr2No, long Attr2Min, long Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, double Attr1Min, double Attr1Max, int Attr2No, double Attr2Min, double Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, int Attr1Min, int Attr1Max, int Attr2No, int Attr2Min, int Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, long Attr1Min, long Attr1Max, int Attr2No, int Attr2Min, int Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, int Attr1Min, int Attr1Max, int Attr2No, long Attr2Min, long Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, double Attr1Min, double Attr1Max, int Attr2No, int Attr2Min, int Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void setSelectedRows(int Attr1No, int Attr1Min, int Attr1Max, int Attr2No, double Attr2Min, double Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, long Attr1Min, long Attr1Max, int Attr2No, long Attr2Min, long Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, long Attr1Min, long Attr1Max, int Attr2No, double Attr2Min, double Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, long Attr1Min, long Attr1Max, int Attr2No, int Attr2Min, int Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, double Attr1Min, double Attr1Max, int Attr2No, double Attr2Min, double Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, double Attr1Min, double Attr1Max, int Attr2No, long Attr2Min, long Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, double Attr1Min, double Attr1Max, int Attr2No, int Attr2Min, int Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, int Attr1Min, int Attr1Max, int Attr2No, int Attr2Min, int Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, int Attr1Min, int Attr1Max, int Attr2No, double Attr2Min, double Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows(int Attr1No, int Attr1Min, int Attr1Max, int Attr2No, long Attr2Min, long Attr2Max)
Attr1No
- - The number of attribute (column).Attr1Min
- - Lower limit of 1st attribute.Attr1Max
- - Upper limit of 1st attribute.Attr2No
- - The number of attribute (column).Attr2Min
- - Lower limit of 2nd attribute.Attr2Max
- - Upper limit of 2nd attribute.public void removeSelectedRows()
public void removeSelectedRows(int AttrNo)
AttrNo
- - The number of attribute (column).public void removeSelectedRows(int AttrNo, int AttrMin, int AttrMax)
AttrNo
- - The number of attribute (column).Attr1
- - Lower limit.Attr2
- - Upper limit.public void removeSelectedRows(int AttrNo, long AttrMin, long AttrMax)
AttrNo
- - The number of attribute (column).Attr1
- - Lower limit.Attr2
- - Upper limit.public void removeSelectedRows(int AttrNo, double AttrMin, double AttrMax)
AttrNo
- - The number of attribute (column).Attr1
- - Lower limit.Attr2
- - Upper limit.public boolean selectionActive()
public int getNumberofRows()
public int getNumberofAttributes()
public java.lang.String getAttributeName(int attrNo)
attrNo
- - Number of the attribute (column).public int getAttributeNumber(java.lang.String attrname)
attrname
- - Name of the attribute.public java.lang.String getAttributeMeasurement(int attrNo)
attrNo
- - Number of the attribute (column).public int getAttributeType(int attrNo)
attrNo
- - Number of the attribute (column).public int getNumberofClasses(int attrNo)
attrNo
- - Number of the attribute (column).public java.lang.String getValueofClass(int attrNo, int classNo)
attrNo
- - Number of the attribute (column).classNo
- - Number of the class.public long getMinLong(int attrNo)
attrNo
- - Number of the attribute (column).public long getMaxLong(int attrNo)
attrNo
- - Number of the attribute (column).public double getMinDouble(int attrNo)
attrNo
- - Number of the attribute (column).public double getMaxDouble(int attrNo)
attrNo
- - Number of the attribute (column).public java.lang.Object[] getDataState()
public void setDataState(java.lang.Object[] objArr)
objArr
- - Object array with 3 objects representing the state of the data.public void addTabDataView2D(TabDataView2D dv)
dv
- - TabDataView2D -object.public void removeTabDataView2D(TabDataView2D dv)
dv
- - TabDataView2D -object.public java.util.Vector getSelectionVector(int attrno)
attrno
- - Attribute's number.public void addAttributeView(AttributeView av)
av
- - AttributeView-object.public void removeAttributeView(AttributeView av)
av
- - AttributeView-object.public void addConstraintToTDW2D(int tag, int attrno, int min, int max)
tag
- - unique number for the constraint (now attribute's number is used).attrno
- - attribute's number.min
- - lower limit.max
- - upper limit-public void addConstraintToTDW2D(int tag, int attrno, long min, long max)
tag
- - unique number for the constraint (now attribute's number is used).attrno
- - attribute's number.min
- - lower limit.max
- - upper limit-public void addConstraintToTDW2D(int tag, int attrno, double min, double max)
tag
- - unique number for the constraint (now attribute's number is used).attrno
- - attribute's number.min
- - lower limit.max
- - upper limit-public void removeConstraintFromTDW2D(int tag)
tag
- - unique number for the constraint (now attribute's number is used).public void setSelectionType(int sel)
sel
- - 1 = union, 2 = intersectionpublic java.lang.String[][] getDataStringArray()
public boolean[] getDataSelectionArray()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |