Package rbf

Class RBFGUI

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

public class RBFGUI extends dialog.TabbedGUI
Class for a graphical user interface for the radial basis function network programs.
Since:
2007.07.08
See Also:
  • Field Details

  • Constructor Details

    • RBFGUI

      public RBFGUI()
      Create a radial basis function network GUI.

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

      Since:
      2007.07.08 (Christian Borgelt)
    • RBFGUI

      public RBFGUI(Component owner)
      Create a radial basis function network GUI.
      Parameters:
      owner - the component that is to own this dialog
      Since:
      2007.07.08 (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.07.08 (Christian Borgelt)
    • setDomainsFile

      public void setDomainsFile(File file)
      Set the domains file.
      Overrides:
      setDomainsFile in class dialog.TabbedGUI
      Parameters:
      file - the domains file to set
      Since:
      2007.07.24 (Christian Borgelt)
    • setDataFile

      public void setDataFile(File file)
      Set the data file.
      Overrides:
      setDataFile in class dialog.TabbedGUI
      Parameters:
      file - the data file to set
      Since:
      2007.07.24 (Christian Borgelt)
    • setTestFile

      public void setTestFile(File file)
      Set the test file.
      Overrides:
      setTestFile in class dialog.TabbedGUI
      Parameters:
      file - the test file to set
      Since:
      2007.07.24 (Christian Borgelt)
    • showRBF

      protected void showRBF(JTextField model, JTextField data)
      Show a RBF model.
      Parameters:
      model - the text field with the RBF model file name
      data - the text field with the data file name
      Since:
      2007.07.08 (Christian Borgelt)
    • showRBF

      protected void showRBF(File model, File data)
      Show a RBF model.
      Parameters:
      model - the file to load the RBF model tree from
      data - the file to load the table data from
      Since:
      2007.07.08 (Christian Borgelt)
    • createExecutor

      protected util.Executor createExecutor(int i)
      Get command for the current dialog tab.
      Specified by:
      createExecutor in class dialog.TabbedGUI
      Parameters:
      i - the index of the dialog tab
      Returns:
      the command to execute
      Since:
      2007.07.08 (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.07.08 (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 testing basic functionality.
      Parameters:
      args - the command line arguments
      Since:
      2007.07.08 (Christian Borgelt)