Package fim

Class ARuleTable

All Implemented Interfaces:
Serializable, TableModel

public class ARuleTable extends AbstractTableModel
Class for a tabular representation of a set of association rules.
Since:
2004.07.06
See Also:
  • Field Details

    • arset

      protected ARuleSet arset
      the set of association rules
    • names

      protected String[] names
      the names of the table columns
  • Constructor Details

    • ARuleTable

      public ARuleTable(ARuleSet arset)
      Create an association rule table.
      Parameters:
      arset - the set of association rules
      Since:
      2005.07.06 (Christian Borgelt)
  • Method Details

    • getRules

      public ARuleSet getRules()
      Get the association rule set.
      Returns:
      the association rule set
      Since:
      2007.03.12 (Christian Borgelt)
    • setRules

      public void setRules(ARuleSet arset)
      Set the association rule set.
      Parameters:
      arset - the new association rule set
      Since:
      2007.03.12 (Christian Borgelt)
    • sort

      public void sort(int field)
      Sort the set of association rules.
      Parameters:
      field - the identifier of the field to compare first
      Since:
      2005.07.06 (Christian Borgelt)
    • getRowCount

      public int getRowCount()
      Get the number of rows of the table.
      Returns:
      the number of rows of the table
      Since:
      2005.07.06 (Christian Borgelt)
    • getColumnCount

      public int getColumnCount()
      Get the number of columns of the table.
      Returns:
      the number of columns of the table
      Since:
      2005.07.06 (Christian Borgelt)
    • getColumnName

      public String getColumnName(int i)
      Get the name of a column.
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
      Parameters:
      i - the index of the column
      Returns:
      the name of the column with index i
      Since:
      2005.07.06 (Christian Borgelt)
    • getValueAt

      public Object getValueAt(int row, int col)
      Get the value in a table cell.
      Parameters:
      row - the row index of the table cell
      col - the column index of the table cell
      Returns:
      an object representing the contents of the table cell
      Since:
      2005.07.06 (Christian Borgelt)
    • main

      public static void main(String[] args)
      Main function for testing some basic functionality.

      It is tried to parse the file that is given as the first command line argument as a set of association rules.

      Parameters:
      args - the command line arguments
      Since:
      2005.07.06 (Christian Borgelt)