public class SetupGenerator extends Object implements Serializable, weka.core.OptionHandler
| Modifier and Type | Field and Description |
|---|---|
static weka.core.Tag[] |
TAGS_TYPE
type of parameter.
|
static int |
TYPE_FUNCTION
type: mathematical function.
|
static int |
TYPE_LIST
type: explicit, comma-separated list of values.
|
| Constructor and Description |
|---|
SetupGenerator()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
baseObjectFileTipText()
Returns the tip text for this property.
|
Point<Object> |
evaluate(Point<Object> values)
evalutes the expression for the current iteration.
|
Serializable |
getBaseObject()
Returns the base object.
|
String[] |
getOptions()
returns the options of the current setup.
|
AbstractParameter[] |
getParameters()
Returns the current parameters.
|
Space |
getSpace()
Returns the space currently in use.
|
String |
globalInfo()
Returns a string describing the object.
|
Enumeration |
listOptions()
Gets an enumeration describing the available options.
|
static void |
main(String[] args)
For testing only.
|
String |
parametersFileTipText()
Returns the tip text for this property.
|
void |
reset()
Resets the generation.
|
void |
setBaseObject(Serializable obj)
Sets the base object, can be single object or array of objects.
|
void |
setOptions(String[] options)
Parses the options for this object.
|
void |
setParameters(AbstractParameter[] value)
Sets the parameters to use as basis for the setups.
|
void |
setSpace(Space value)
Updates the space to use for the setup generation.
|
Serializable |
setup(Serializable original,
Point<Object> values)
returns a fully configures object (a copy of the provided one).
|
Enumeration<Serializable> |
setups()
Returns an enumeration of all the setups.
|
Object |
setValue(Object o,
String path,
Object value)
tries to set the value as double, integer (just casts it to int!) or
boolean (false if 0, otherwise true) in the object according to the
specified path.
|
String |
toString()
A string representation of the generator.
|
public static final int TYPE_FUNCTION
public static final int TYPE_LIST
public static final weka.core.Tag[] TAGS_TYPE
public String globalInfo()
public Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlerpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandleroptions - the options to useException - if setting of options failspublic String baseObjectFileTipText()
public void setBaseObject(Serializable obj)
obj - the objectpublic Serializable getBaseObject()
public String parametersFileTipText()
public void setParameters(AbstractParameter[] value)
value - the parameterspublic AbstractParameter[] getParameters()
public void reset()
public void setSpace(Space value)
value - the space to usepublic Space getSpace()
public Point<Object> evaluate(Point<Object> values)
values - the current iteration values (from 'min' to 'max' with
stepsize 'step') for all dimensionspublic Object setValue(Object o, String path, Object value) throws Exception
o - the object to modifypath - the property pathvalue - the value to setException - if neither double nor int could be setpublic Serializable setup(Serializable original, Point<Object> values) throws Exception
original - the object to create a copy from and set the parametersvalues - the current iteration values in all dimensionsException - if setup failspublic Enumeration<Serializable> setups()
public String toString()
Copyright © 2017 University of Waikato, Hamilton, NZ. All Rights Reserved.