public abstract class AbstractPlotInstances extends java.lang.Object implements java.io.Serializable, OptionHandler
| Constructor and Description |
|---|
AbstractPlotInstances()
Initializes the container.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlot(boolean setup)
Returns whether all the data is available and the plot instances can be
used for plotting.
|
void |
cleanUp()
For freeing up memory.
|
Instances |
getInstances()
Returns the training data.
|
java.lang.String[] |
getOptions()
Gets the current option settings for the OptionHandler.
|
PlotData2D |
getPlotData(java.lang.String name)
Assembles and returns the plot.
|
Instances |
getPlotInstances()
Returns the generated plot instances.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration of all the available options.
|
void |
setInstances(Instances value)
Sets the instances that are the basis for the plot instances.
|
void |
setOptions(java.lang.String[] options)
Sets the OptionHandler's options using the given list.
|
void |
setUp()
Performs checks, sets up the structure for the plot instances.
|
public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic void setInstances(Instances value)
value - the training data to initialize withpublic Instances getInstances()
public void setUp()
public boolean canPlot(boolean setup)
setup - whether to call setup as wellpublic Instances getPlotInstances()
public PlotData2D getPlotData(java.lang.String name) throws java.lang.Exception
name - the name of the plotjava.lang.Exception - if plot generation failspublic void cleanUp()