public class TrainerGuiActions
extends java.lang.Object
Constructor and Description |
---|
TrainerGuiActions() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDataDirectory()
Return the current data directory.
|
static javax.swing.Action |
getEditCombinedDataAction(NetworkPanel networkPanel,
Trainable trainable)
Action for viewing two datatables, one for input data; the other for
training data.
|
static javax.swing.Action |
getEditDataAction(NetworkPanel networkPanel,
java.util.List<Neuron> neurons,
NumericMatrix dataHolder,
java.lang.String name)
Action for viewing data in a table that correlate with a set of neurons.
|
static javax.swing.Action |
getOpenCSVAction(SimbrainJTable table,
NumericMatrix dataHolder)
Action for opening data comma separated value file.
|
static javax.swing.AbstractAction |
getPropertiesDialogAction(Trainer trainer)
Show properties dialog for the indicated trainer.
|
static javax.swing.AbstractAction |
getShowPlotAction(NetworkPanel panel,
IterableTrainer trainer)
Show an error plot for this trainer.
|
static void |
setDataDirectory(java.lang.String dir)
Sets the current data directory in user preferences (memory for file
chooser).
|
public static javax.swing.Action getEditDataAction(NetworkPanel networkPanel, java.util.List<Neuron> neurons, NumericMatrix dataHolder, java.lang.String name)
networkPanel
- the parent network panelneurons
- the list of neurons to which the columns corresponddataHolder
- the object that holds the data (with a getData and
setData method)name
- the name of the data (for use in display)public static javax.swing.Action getEditCombinedDataAction(NetworkPanel networkPanel, Trainable trainable)
networkPanel
- the parent network panel.trainable
- the trainable object providing access to input and
output neuronspublic static void setDataDirectory(java.lang.String dir)
dir
- directory to setpublic static java.lang.String getDataDirectory()
public static javax.swing.Action getOpenCSVAction(SimbrainJTable table, NumericMatrix dataHolder)
table
- the simbrain jtabledataHolder
- the object holding the datapublic static javax.swing.AbstractAction getPropertiesDialogAction(Trainer trainer)
trainer
- the trainerpublic static javax.swing.AbstractAction getShowPlotAction(NetworkPanel panel, IterableTrainer trainer)
panel
- the network panel in which to display the plottrainer
- the trainer