public abstract class AbstractPlotInstances extends java.lang.Object implements java.io.Serializable, OptionHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_FinishUpCalled
whether processing has been finished up already.
|
protected Instances |
m_Instances
the full dataset.
|
protected Instances |
m_PlotInstances
the plotable instances.
|
| 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.
|
protected void |
check()
Default implementation only ensures that a dataset has been set.
|
void |
cleanUp()
For freeing up memory.
|
protected abstract PlotData2D |
createPlotData(java.lang.String name)
Assembles and returns the plot.
|
protected abstract void |
determineFormat()
Sets up the structure for the plot instances.
|
protected void |
finishUp()
Performs optional post-processing.
|
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.
|
protected void |
initialize()
Initializes the member variables.
|
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.
|
protected Instances m_Instances
protected Instances m_PlotInstances
protected boolean m_FinishUpCalled
protected void initialize()
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 OptionHandlerprotected abstract void determineFormat()
public void setInstances(Instances value)
value - the training data to initialize withpublic Instances getInstances()
protected void check()
public void setUp()
protected void finishUp()
public boolean canPlot(boolean setup)
setup - whether to call setup as wellpublic Instances getPlotInstances()
protected abstract PlotData2D createPlotData(java.lang.String name) throws java.lang.Exception
name - the name of the plotjava.lang.Exception - if plot generation failspublic PlotData2D getPlotData(java.lang.String name) throws java.lang.Exception
name - the name of the plotjava.lang.Exception - if plot generation failspublic void cleanUp()