public abstract class AbstractPlotInstances extends Object implements 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.
|
String[] |
getOptions()
Gets the current option settings for the OptionHandler.
|
PlotData2D |
getPlotData(String name)
Assembles and returns the plot.
|
Instances |
getPlotInstances()
Returns the generated plot instances.
|
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(String[] options)
Sets the OptionHandler's options using the given list.
|
void |
setUp()
Performs checks, sets up the structure for the plot instances.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeCopy
public Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
public 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(String name) throws Exception
name
- the name of the plotException
- if plot generation failspublic void cleanUp()
Copyright © 2020 University of Waikato, Hamilton, NZ. All rights reserved.