edu.cmu.minorthird.ui
Class UIMain
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
viewButton
public static javax.swing.JButton viewButton
main
public Console.Task main
base
protected CommandLineUtil.BaseParams base
gui
protected CommandLineUtil.GUIParams gui
UIMain
public UIMain()
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)