@Alias(value={"mini","minigui"}) public class MiniGUI extends AbstractApplication
Modifier and Type | Class and Description |
---|---|
(package private) class |
MiniGUI.SettingsComboboxModel
Class to interface between the saved settings list and a JComboBox.
|
AbstractApplication.Parameterizer
Modifier and Type | Field and Description |
---|---|
protected static String |
ACTION_QUIT
Quit action, for mnemonics.
|
private String |
APP_PREFIX
Prefix for application package.
|
protected JComboBox<String> |
appCombo
Combo box for choosing the application to run.
|
private JTextField |
commandLine
Command line output field.
|
(package private) JFrame |
frame
The frame
|
private static Logging |
LOG
ELKI logger for the GUI.
|
private Class<? extends AbstractApplication> |
maincls
Application to configure / run.
|
static String |
NEWLINE
Newline used in output.
|
protected LogPanel |
outputArea
Logging output area.
|
(package private) JPanel |
panel
The main panel.
|
protected DynamicParameters |
parameters
Parameter storage.
|
protected ParameterTable |
parameterTable
The parameter table.
|
protected JButton |
runButton
The "run" button.
|
static String |
SAVED_SETTINGS_FILENAME
Filename for saved settings.
|
protected JComboBox<String> |
savedCombo
Combo box for saved settings.
|
protected MiniGUI.SettingsComboboxModel |
savedSettingsModel
Model to link the combobox with.
|
protected SavedSettingsFile |
store
Settings storage.
|
REFERENCE, VERSION
Constructor and Description |
---|
MiniGUI()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doSetParameters(List<String> params)
Do the actual setParameters invocation.
|
private String |
format(Object... params)
Format objects to a command line.
|
private void |
formatTo(StringBuilder buf,
List<?> params)
Format a list of strings to a buffer.
|
private void |
formatTo(StringBuilder buf,
String s)
Format a single string for the command line.
|
protected void |
loadLatest()
Auto-load the last task from the history file.
|
static void |
main(String[] args)
Main method that just spawns the UI.
|
protected void |
reportErrors(SerializedParameterization config)
Report errors in a single error log record.
|
void |
run()
Runs the application.
|
private void |
setupAppChooser()
Setup the application chooser.
|
private void |
setupCommandLine()
Setup command line field
|
private void |
setupLoadSaveButtons()
Create the load and save buttons.
|
private void |
setupLoggingArea()
Setup logging area
|
private void |
setupParameterTable()
Setup the parameter table
|
protected void |
startTask()
Do a full run of the KDDTask with the specified parameters.
|
protected void |
updateParameterTable()
Serialize the parameter table and run setParameters().
|
printErrorMessage, runCLIApplication, usage
public static final String SAVED_SETTINGS_FILENAME
public static final String NEWLINE
private static final Logging LOG
protected static final String ACTION_QUIT
JFrame frame
JPanel panel
protected LogPanel outputArea
protected ParameterTable parameterTable
protected DynamicParameters parameters
protected SavedSettingsFile store
protected MiniGUI.SettingsComboboxModel savedSettingsModel
protected JButton runButton
private Class<? extends AbstractApplication> maincls
private JTextField commandLine
private String APP_PREFIX
private void setupAppChooser()
private void setupParameterTable()
private void setupLoadSaveButtons()
private void setupCommandLine()
private void setupLoggingArea()
protected void updateParameterTable()
protected void doSetParameters(List<String> params)
params
- Parametersprivate String format(Object... params)
params
- Parameters to format (Strings, or list of strings)private void formatTo(StringBuilder buf, List<?> params)
buf
- Output bufferparams
- List of stringsprivate void formatTo(StringBuilder buf, String s)
buf
- Output buffers
- Stringprotected void loadLatest()
protected void startTask()
protected void reportErrors(SerializedParameterization config)
config
- Parameterizationpublic void run() throws UnableToComplyException
AbstractApplication
run
in class AbstractApplication
UnableToComplyException
- if an error occurs during running the
applicationpublic static void main(String[] args)
args
- command line parametersCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.