edu.cmu.minorthird.ui
Class UIMain

java.lang.Object
  extended by edu.cmu.minorthird.ui.UIMain
All Implemented Interfaces:
CommandLineProcessor.Configurable, Console.Task
Direct Known Subclasses:
ApplyAnnotator, DebugMixup, EditLabels, OnlineLearner, PreprocessTextForClassifier, RunMixup, TestClassifier, TestExtractor, TestMultiClassifier, TrainClassifier, TrainExtractor, TrainMultiClassifier, TrainTestClassifier, TrainTestExtractor, TrainTestMultiClassifier, TrainTestTagger

public abstract class UIMain
extends java.lang.Object
implements CommandLineProcessor.Configurable, Console.Task

Main UI program. With enough support to make it configurable interactively, by command lines, or by a file.


Field Summary
protected  CommandLineUtil.BaseParams base
           
protected  CommandLineUtil.GUIParams gui
           
 Console.Task main
           
static javax.swing.JButton viewButton
           
 
Constructor Summary
UIMain()
           
 
Method Summary
 void callMain(java.lang.String[] args)
          Helper to handle command-line processing, in either gui or text mode.
abstract  void doMain()
          Do the main action, after setting all parameters.
 CommandLineUtil.BaseParams getBaseParameters()
           
 boolean getLabels()
          Returns whether base.labels exits
abstract  java.lang.Object getMainResult()
          Return the result of the action.
 void helloWorld()
           
 void noLabelsMessage(Console console)
           
 void setBaseParameters(CommandLineUtil.BaseParams base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.cmu.minorthird.util.CommandLineProcessor.Configurable
getCLP
 

Field Detail

viewButton

public static javax.swing.JButton viewButton

main

public Console.Task main

base

protected CommandLineUtil.BaseParams base

gui

protected CommandLineUtil.GUIParams gui
Constructor Detail

UIMain

public UIMain()
Method Detail

getBaseParameters

public CommandLineUtil.BaseParams getBaseParameters()

setBaseParameters

public void setBaseParameters(CommandLineUtil.BaseParams base)

helloWorld

public void helloWorld()

doMain

public abstract void doMain()
Do the main action, after setting all parameters.

Specified by:
doMain in interface Console.Task

getMainResult

public abstract java.lang.Object getMainResult()
Return the result of the action.

Specified by:
getMainResult in interface Console.Task

getLabels

public boolean getLabels()
Returns whether base.labels exits

Specified by:
getLabels in interface Console.Task

callMain

public void callMain(java.lang.String[] args)
Helper to handle command-line processing, in either gui or text mode.


noLabelsMessage

public void noLabelsMessage(Console console)