|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
arules.ARuleTable
public class ARuleTable
Class for a tabular representation of a set of association rules.
Field Summary | |
---|---|
protected ARuleSet |
arset
the set of association rules |
protected int |
cnt
the number of table columns |
protected java.lang.String[] |
names
the names of the table columns |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ARuleTable(ARuleSet arset)
Create an association rule table. |
Method Summary | |
---|---|
int |
getColumnCount()
Get the number of columns of the table. |
java.lang.String |
getColumnName(int i)
Get the name of a column. |
int |
getRowCount()
Get the number of rows of the table. |
ARuleSet |
getRules()
Get the association rule set. |
java.lang.Object |
getValueAt(int row,
int col)
Get the value in a table cell. |
static void |
main(java.lang.String[] args)
Main function for testing some basic functionality. |
void |
setRules(ARuleSet arset)
Set the association rule set. |
void |
sort(int field)
Sort the set of association rules. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ARuleSet arset
protected int cnt
protected java.lang.String[] names
Constructor Detail |
---|
public ARuleTable(ARuleSet arset)
arset
- the set of association rulesMethod Detail |
---|
public ARuleSet getRules()
public void setRules(ARuleSet arset)
arset
- the new association rule setpublic void sort(int field)
field
- the identifier of the field to compare firstpublic int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int i)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
i
- the index of the column
public java.lang.Object getValueAt(int row, int col)
row
- the row index of the table cellcol
- the column index of the table cell
public static void main(java.lang.String[] args)
It is tried to parse the file that is given as the first command line argument as a set of association rules.
args
- the command line arguments
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |