userinterface
Class UserInterface

java.lang.Object
  extended by userinterface.UserInterface

public class UserInterface
extends java.lang.Object

This class is a runnable userinterface for an automatic knowledge-aquisition system created by Håvard Rykkelid as part of his masters degree in Artificial Intelligence. This system uses multiple agents and swarm-intellect as some of its tools to gather knowledge from the Internet.

Author:
Håvard Rykkelid

Field Summary
private  java.lang.String agentSettings
           
private  Conveyor conveyor
           
private  javax.swing.JMenuItem exitMenuItem
           
private  javax.swing.JMenu fileMenu
           
private  javax.swing.JLabel inputLabel
           
private  javax.swing.JTextField inputTextField
           
private  javax.swing.JMenuBar jJMenuBar
           
private  javax.swing.JTextField progressTextField
           
private  javax.swing.JButton startButton
           
private  javax.swing.JPanel superContentPane
           
private  SuperFaceAdaptor superFaceAdaptor
           
private  javax.swing.JFrame superFrame
           
private  javax.swing.JLabel termCountLabel
           
private  javax.swing.JTextField termCountTextField
           
private  UIListener uiListener
           
 
Constructor Summary
UserInterface()
          The constructor for UserInterface
 
Method Summary
private  javax.swing.JMenuItem getExitMenuItem()
          This method initializes exitMenuItem
private  javax.swing.JMenu getFileMenu()
          This method initializes fileMenu
private  javax.swing.JTextField getInputTextField()
          This method initializes inputTextField
private  javax.swing.JMenuBar getJJMenuBar()
          This method initializes jJMenuBar
private  javax.swing.JTextField getProgressTextField()
          This method initializes progressTextField
private  javax.swing.JButton getStartButton()
          This method initializes startButton
private  javax.swing.JPanel getSuperContentPane()
          This method initializes superContentPane
private  javax.swing.JFrame getSuperFrame()
          This method initializes superFrame
private  javax.swing.JTextField getTermCountTextField()
          This method initializes termCountTextField
static void main(java.lang.String[] args)
          This is the main method.
private  void start()
          This method is called when the program is ready to start up
 void startStop()
          This is the method that will be executed every time the "startButton" is pressed.
private  void stop()
          A method called if it is decided that the program should stop
 void systemExit()
          This method is run if the window is asked to close.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentSettings

private final java.lang.String agentSettings

superFrame

private javax.swing.JFrame superFrame

superContentPane

private javax.swing.JPanel superContentPane

inputTextField

private javax.swing.JTextField inputTextField

startButton

private javax.swing.JButton startButton

termCountTextField

private javax.swing.JTextField termCountTextField

inputLabel

private javax.swing.JLabel inputLabel

termCountLabel

private javax.swing.JLabel termCountLabel

uiListener

private UIListener uiListener

conveyor

private Conveyor conveyor

jJMenuBar

private javax.swing.JMenuBar jJMenuBar

fileMenu

private javax.swing.JMenu fileMenu

exitMenuItem

private javax.swing.JMenuItem exitMenuItem

superFaceAdaptor

private SuperFaceAdaptor superFaceAdaptor

progressTextField

private javax.swing.JTextField progressTextField
Constructor Detail

UserInterface

public UserInterface()
The constructor for UserInterface

Method Detail

getSuperFrame

private javax.swing.JFrame getSuperFrame()
This method initializes superFrame

Returns:
javax.swing.JFrame

getSuperContentPane

private javax.swing.JPanel getSuperContentPane()
This method initializes superContentPane

Returns:
javax.swing.JPanel

getInputTextField

private javax.swing.JTextField getInputTextField()
This method initializes inputTextField

Returns:
javax.swing.JTextField

getStartButton

private javax.swing.JButton getStartButton()
This method initializes startButton

Returns:
javax.swing.JButton

getTermCountTextField

private javax.swing.JTextField getTermCountTextField()
This method initializes termCountTextField

Returns:
javax.swing.JTextField

getJJMenuBar

private javax.swing.JMenuBar getJJMenuBar()
This method initializes jJMenuBar

Returns:
javax.swing.JMenuBar

getFileMenu

private javax.swing.JMenu getFileMenu()
This method initializes fileMenu

Returns:
javax.swing.JMenu

getExitMenuItem

private javax.swing.JMenuItem getExitMenuItem()
This method initializes exitMenuItem

Returns:
javax.swing.JMenuItem

getProgressTextField

private javax.swing.JTextField getProgressTextField()
This method initializes progressTextField

Returns:
javax.swing.JTextField

main

public static void main(java.lang.String[] args)
This is the main method. The place where the code starts to run.

Parameters:
args - - not used

stop

private void stop()
A method called if it is decided that the program should stop


start

private void start()
This method is called when the program is ready to start up


startStop

public void startStop()
This is the method that will be executed every time the "startButton" is pressed.


systemExit

public void systemExit()
This method is run if the window is asked to close.