Class TabDataSet

java.lang.Object
  |
  +--DataSet
        |
        +--TabDataSet

public class TabDataSet
extends DataSet
implements Constants

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

TabDataSet

public TabDataSet()
Method Detail

getData

public boolean getData()
                throws java.lang.Exception
Starts to fetch data from the tabular DataSource.
Overrides:
getData in class DataSet
Returns:
Returns true if fetching was succesfull.
Throws:
Raises - exception- typed exception.

getCorruptedRows

public java.lang.String getCorruptedRows()
Returns a list of the rownumbers of the corrupted rows in the data file.
Returns:
Returns a String consisting of corrupted rows' numbers separated with a comma.

getTitle

public java.lang.String getTitle()
Returns the data's title.
Returns:
Returns the data's title as String.

getCursor

public TabCursor getCursor()
Method returns TabCursor object for browsing of the data.
Returns:
A TabCursor object for browsing of the data.

getIndex

public Index getIndex(int attrNo)
Method gives index for given attribute (column). It also creates it when needed.
Returns:
Index-object for given attribute.

getLongValue

public long getLongValue(int rowNo,
                         int attrNo)
Method returns the value of the given attribute on the given row.
Parameters:
rowNo - - The number of row and number of attribute (column).
attrNo - - The number of attribute (column).
Returns:
The value of the given attribute on the given row.

getDoubleValue

public double getDoubleValue(int rowNo,
                             int attrNo)
Method returns the value of the given attribute on the given row.
Parameters:
rowNo - - The number of row and number of attribute (column).
attrNo - - The number of attribute (column).
Returns:
The value of the given attribute on the given row.

getClassValue

public int getClassValue(int rowNo,
                         int attrNo)
Method returns the value of the given attribute on the given row.
Parameters:
rowNo - - The number of row and number of attribute (column).
attrNo - - The number of attribute (column).
Returns:
The class value of the given attribute on the given row.

getBooleanValue

public boolean getBooleanValue(int rowNo,
                               int attrNo)
Method returns the value of the given attribute on the given row.
Parameters:
rowNo - - The number of row and number of attribute (column).
attrNo - - The number of attribute (column).
Returns:
The boolean value of the given attribute on the given row.

isRowSelected

public boolean isRowSelected(int rowNo)
Method returns true if the given row is selected.
Parameters:
rowNo - - The rownumber.
Returns:
True if the row is selected, otherwise false.

setSelectedRows

public boolean setSelectedRows(int AttrNo,
                               long AttrMin,
                               long AttrMax)
Sets some of the rows in the set as selected.
Parameters:
AttrNo - - The number of attribute (column).
AttrMin - - Attribute's lower limit.
AttrMax - - Attribute's upper limit.
Returns:
True if the selection was successful

setSelectedRows

public boolean setSelectedRows(int AttrNo,
                               double AttrMin,
                               double AttrMax)
Sets some of the rows in the set as selected.
Parameters:
AttrNo - - The number of attribute (column).
AttrMin - - Attribute's lower limit.
AttrMax - - Attribute's upper limit.
Returns:
True if the selection was successful.

setSelectedRows

public boolean setSelectedRows(int AttrNo,
                               int AttrMin,
                               int AttrMax)
Sets some of the rows in the set as selected.
Parameters:
AttrNo - - The number of attribute (column).
AttrMin - - Attribute's lower limit.
AttrMax - - Attribute's upper limit.
Returns:
True if the selection was successful.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            long Attr1Min,
                            long Attr1Max,
                            int Attr2No,
                            long Attr2Min,
                            long Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            long Attr1Min,
                            long Attr1Max,
                            int Attr2No,
                            double Attr2Min,
                            double Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            double Attr1Min,
                            double Attr1Max,
                            int Attr2No,
                            long Attr2Min,
                            long Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            double Attr1Min,
                            double Attr1Max,
                            int Attr2No,
                            double Attr2Min,
                            double Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            int Attr1Min,
                            int Attr1Max,
                            int Attr2No,
                            int Attr2Min,
                            int Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            long Attr1Min,
                            long Attr1Max,
                            int Attr2No,
                            int Attr2Min,
                            int Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            int Attr1Min,
                            int Attr1Max,
                            int Attr2No,
                            long Attr2Min,
                            long Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            double Attr1Min,
                            double Attr1Max,
                            int Attr2No,
                            int Attr2Min,
                            int Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

setSelectedRows

public void setSelectedRows(int Attr1No,
                            int Attr1Min,
                            int Attr1Max,
                            int Attr2No,
                            double Attr2Min,
                            double Attr2Max)
Sets some of the rows in the set as selected.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               long Attr1Min,
                               long Attr1Max,
                               int Attr2No,
                               long Attr2Min,
                               long Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               long Attr1Min,
                               long Attr1Max,
                               int Attr2No,
                               double Attr2Min,
                               double Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               long Attr1Min,
                               long Attr1Max,
                               int Attr2No,
                               int Attr2Min,
                               int Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               double Attr1Min,
                               double Attr1Max,
                               int Attr2No,
                               double Attr2Min,
                               double Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               double Attr1Min,
                               double Attr1Max,
                               int Attr2No,
                               long Attr2Min,
                               long Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               double Attr1Min,
                               double Attr1Max,
                               int Attr2No,
                               int Attr2Min,
                               int Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               int Attr1Min,
                               int Attr1Max,
                               int Attr2No,
                               int Attr2Min,
                               int Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               int Attr1Min,
                               int Attr1Max,
                               int Attr2No,
                               double Attr2Min,
                               double Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows(int Attr1No,
                               int Attr1Min,
                               int Attr1Max,
                               int Attr2No,
                               long Attr2Min,
                               long Attr2Max)
Removes some of the selections.
Parameters:
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.

removeSelectedRows

public void removeSelectedRows()
Removes the selection from all the selected rows.

removeSelectedRows

public void removeSelectedRows(int AttrNo)
Removes the selections of a single attribute.
Parameters:
AttrNo - - The number of attribute (column).

removeSelectedRows

public void removeSelectedRows(int AttrNo,
                               int AttrMin,
                               int AttrMax)
Removes the selections of a single attribute from the given range.
Parameters:
AttrNo - - The number of attribute (column).
Attr1 - - Lower limit.
Attr2 - - Upper limit.

removeSelectedRows

public void removeSelectedRows(int AttrNo,
                               long AttrMin,
                               long AttrMax)
Removes the selections of a single attribute from the given range.
Parameters:
AttrNo - - The number of attribute (column).
Attr1 - - Lower limit.
Attr2 - - Upper limit.

removeSelectedRows

public void removeSelectedRows(int AttrNo,
                               double AttrMin,
                               double AttrMax)
Removes the selections of a single attribute from the given range.
Parameters:
AttrNo - - The number of attribute (column).
Attr1 - - Lower limit.
Attr2 - - Upper limit.

selectionActive

public boolean selectionActive()
Tells if something is selected from the data.
Returns:
True if at least 1 row is selected.

getNumberofRows

public int getNumberofRows()
Method returns the number of rows in the dataset.
Returns:
The number of rows in the dataset.

getNumberofAttributes

public int getNumberofAttributes()
Method returns the number of attributes (columns) in the dataset.
Returns:
The number of attributes (columns) in the dataset.

getAttributeName

public java.lang.String getAttributeName(int attrNo)
Method returns the name of the given attribute (column).
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The name of the given attribute (column).

getAttributeNumber

public int getAttributeNumber(java.lang.String attrname)
Method returns the number of the given attribute.
Parameters:
attrname - - Name of the attribute.
Returns:
The number of the given attribute, -1 if the name cannot be found.

getAttributeMeasurement

public java.lang.String getAttributeMeasurement(int attrNo)
Method returns the measurement of the given attribute.
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The measurement of the given attribute.

getAttributeType

public int getAttributeType(int attrNo)
Method returns the type of the given attribute: 0=long, 1=double, 2=class.
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The type of the given attribute: 0=long, 1=double, 2=class.

getNumberofClasses

public int getNumberofClasses(int attrNo)
Method returns the number of class values the class typed attribute contains.
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The number of class values the class typed attribute contains.

getValueofClass

public java.lang.String getValueofClass(int attrNo,
                                        int classNo)
Method returns the value (string) of the given class of the given attribute.
Parameters:
attrNo - - Number of the attribute (column).
classNo - - Number of the class.
Returns:
The value (string) of the given class of the given attribute.

getMinLong

public long getMinLong(int attrNo)
Method returns the minimum value of the given attribute.
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The minimum value of the given attribute.

getMaxLong

public long getMaxLong(int attrNo)
Method returns the maximum value of the given attribute.
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The maximum value of the given attribute.

getMinDouble

public double getMinDouble(int attrNo)
Method returns the minimum value of the given attribute.
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The minimum value of the given attribute.

getMaxDouble

public double getMaxDouble(int attrNo)
Method returns the minimum value of the given attribute.
Parameters:
attrNo - - Number of the attribute (column).
Returns:
The minimum value of the given attribute.

getDataState

public java.lang.Object[] getDataState()
Method returns the state of the data for saving the selections and constraints.
Returns:
Object array with 3 objects representing the state of the data.

setDataState

public void setDataState(java.lang.Object[] objArr)
Method sets the selections and constraints as they were received from the getDataState() -method.
Parameters:
objArr - - Object array with 3 objects representing the state of the data.

addTabDataView2D

public void addTabDataView2D(TabDataView2D dv)
Method adds the given TabDataView2D -object to TabDataSet's structures.
Parameters:
dv - - TabDataView2D -object.

removeTabDataView2D

public void removeTabDataView2D(TabDataView2D dv)
Method removes the given TabDataView2D -object from TabDataSet's structures.
Parameters:
dv - - TabDataView2D -object.

getSelectionVector

public java.util.Vector getSelectionVector(int attrno)
Method returns the given attribute's selections made from the AttributeView.
Parameters:
attrno - - Attribute's number.
Returns:
A Vector having an even number of figures representing the selections.

addAttributeView

public void addAttributeView(AttributeView av)
Method adds the given AttributeView -object to TabDataSet's structures.
Parameters:
av - - AttributeView-object.

removeAttributeView

public void removeAttributeView(AttributeView av)
Method removes the given AttributeView -object from TabDataSet's structures.
Parameters:
av - - AttributeView-object.

addConstraintToTDW2D

public void addConstraintToTDW2D(int tag,
                                 int attrno,
                                 int min,
                                 int max)
Method adds a constraint to the TabCursor-object.
Parameters:
tag - - unique number for the constraint (now attribute's number is used).
attrno - - attribute's number.
min - - lower limit.
max - - upper limit-

addConstraintToTDW2D

public void addConstraintToTDW2D(int tag,
                                 int attrno,
                                 long min,
                                 long max)
Method adds a constraint to the TabDataView2D-object.
Parameters:
tag - - unique number for the constraint (now attribute's number is used).
attrno - - attribute's number.
min - - lower limit.
max - - upper limit-

addConstraintToTDW2D

public void addConstraintToTDW2D(int tag,
                                 int attrno,
                                 double min,
                                 double max)
Method adds a constraint to the TabDataView2D-object.
Parameters:
tag - - unique number for the constraint (now attribute's number is used).
attrno - - attribute's number.
min - - lower limit.
max - - upper limit-

removeConstraintFromTDW2D

public void removeConstraintFromTDW2D(int tag)
Method removes a constraint from the TabDataView2D-object.
Parameters:
tag - - unique number for the constraint (now attribute's number is used).

setSelectionType

public void setSelectionType(int sel)
Method sets the selection type as union or intersection and updates the selections to the data.
Parameters:
sel - - 1 = union, 2 = intersection

getDataStringArray

public 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.
Returns:
String[rowcount+1][colcount+1].

getDataSelectionArray

public boolean[] getDataSelectionArray()
Method returns a boolean array showing all the selected rows
Returns:
boolean array showing all the selected rows.