Package fim

Class ARuleGUI

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, Runnable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ARuleGUI extends dialog.TabbedGUI implements ActionListener
Class for a user interface to association rule mining programs.
Since:
2004.09.29
See Also:
  • Field Details

  • Constructor Details

    • ARuleGUI

      public ARuleGUI()
      Create an association rule GUI.

      The dialog is created as a stand-alone program. That is, closing or quitting it terminates the program.

      Since:
      2004.09.29 (Christian Borgelt)
    • ARuleGUI

      public ARuleGUI(Component owner)
      Create an association rule GUI.
      Parameters:
      owner - the component that is to own this dialog
      Since:
      2004.09.29 (Christian Borgelt)
  • Method Details

    • run

      public void run()
      Create the user interface.

      Following the recommendations in the Java tutorial, the user interface is created in the "run" method, which is invoked from the event queue, in order to avoid problems with threads.

      Specified by:
      run in interface Runnable
      Specified by:
      run in class dialog.TabbedGUI
      Since:
      2007.03.12 (Christian Borgelt)
    • getPath

      public File getPath()
      Get the path to the association rule mining programs.
      Overrides:
      getPath in class dialog.TabbedGUI
      Returns:
      the path to the association rule mining programs
      Since:
      2007.03.12 (Christian Borgelt)
    • setPath

      public void setPath(File path)
      Set the path to the association rule mining programs.
      Overrides:
      setPath in class dialog.TabbedGUI
      Parameters:
      path - the path to the association rule mining programs
      Since:
      2007.03.12 (Christian Borgelt)
    • setTrActsFile

      public void setTrActsFile(File file)
      Set the transactions file.
      Parameters:
      file - the transactions file to set
      Since:
      2014.09.25 (Christian Borgelt)
    • setOutputFile

      public void setOutputFile(File file)
      Set the association rule output file.
      Parameters:
      file - the association rule output file to set
      Since:
      2014.09.25 (Christian Borgelt)
    • setItemAppFile

      public void setItemAppFile(File file)
      Set the item appearances file.
      Parameters:
      file - the item appearances file to set
      Since:
      2014.09.25 (Christian Borgelt)
    • showRules

      protected void showRules(JTextField txt)
      Show association rules.
      Parameters:
      txt - the text field containing the file name
      Since:
      2007.03.12 (Christian Borgelt)
    • showRules

      protected void showRules(File file)
      Show a set of association rules.
      Parameters:
      file - the file to load the association rules from
      Since:
      2007.03.12 (Christian Borgelt)
    • showTrActs

      protected void showTrActs(JTextField txt)
      Show a set of transactions.
      Parameters:
      txt - the text field containing the file name
      Since:
      2007.06.06 (Christian Borgelt)
    • showTrActs

      protected void showTrActs(File file)
      Show a set of transactions.
      Parameters:
      file - the file to load the transactions from
      Since:
      2007.06.06 (Christian Borgelt)
    • createExecutor

      protected util.Executor createExecutor(int i)
      Get an executor for the association rule induction program.
      Specified by:
      createExecutor in class dialog.TabbedGUI
      Parameters:
      i - the index of the dialog tab
      Returns:
      the executor for the association rule program
      Since:
      2007.03.12 (Christian Borgelt)
    • getResultMsg

      protected String getResultMsg()
      Get the result message on successful termination.
      Overrides:
      getResultMsg in class dialog.TabbedGUI
      Returns:
      the result message
      Since:
      2007.02.10 (Christian Borgelt)
    • loadConfig

      protected void loadConfig(File file)
      Load a configuration file and set the input fields.
      Specified by:
      loadConfig in class dialog.TabbedGUI
      Parameters:
      file - the file to load the configuration from
      Since:
      2007.07.08 (Christian Borgelt)
    • saveConfig

      protected void saveConfig(File file)
      Save a configuration file
      Specified by:
      saveConfig in class dialog.TabbedGUI
      Parameters:
      file - the file to save the current configuration to
      Since:
      2007.07.08 (Christian Borgelt)
    • main

      public static void main(String[] args)
      Main function for command line invocation.
      Parameters:
      args - the command line arguments
      Since:
      2004.09.29 (Christian Borgelt)