public interface ResultProducer extends Serializable
Possible implementations of ResultProducer:
Modifier and Type | Method and Description |
---|---|
void |
doRun(int run)
Gets the results for a specified run number.
|
void |
doRunKeys(int run)
Gets the keys for a specified run number.
|
String |
getCompatibilityState()
Gets a description of the internal settings of the result
producer, sufficient for distinguishing a ResultProducer
instance from another with different settings (ignoring
those settings set through this interface).
|
String[] |
getKeyNames()
Gets the names of each of the key columns produced for a single run.
|
Object[] |
getKeyTypes()
Gets the data types of each of the key columns produced for a single run.
|
String[] |
getResultNames()
Gets the names of each of the result columns produced for a single run.
|
Object[] |
getResultTypes()
Gets the data types of each of the result columns produced for a
single run.
|
void |
postProcess()
Perform any postprocessing.
|
void |
preProcess()
Prepare to generate results.
|
void |
setAdditionalMeasures(String[] additionalMeasures)
Sets a list of method names for additional measures to look for
in SplitEvaluators.
|
void |
setInstances(Instances instances)
Sets the dataset that results will be obtained for.
|
void |
setResultListener(ResultListener listener)
Sets the object to send results of each run to.
|
void setInstances(Instances instances)
instances
- a value of type 'Instances'.void setResultListener(ResultListener listener)
listener
- a value of type 'ResultListener'void setAdditionalMeasures(String[] additionalMeasures)
additionalMeasures
- a list of method namesvoid preProcess() throws Exception
Exception
- if an error occurs during preprocessing.void postProcess() throws Exception
Exception
- if an error occursvoid doRun(int run) throws Exception
run
- the run number to generate results for.Exception
- if a problem occurs while getting the resultsvoid doRunKeys(int run) throws Exception
run
- the run number to get keys for.Exception
- if a problem occurs while getting the keysString[] getKeyNames() throws Exception
Exception
- if the key names could not be determined (perhaps
because of a problem from a nested sub-resultproducer)Object[] getKeyTypes() throws Exception
Exception
- if the key types could not be determined (perhaps
because of a problem from a nested sub-resultproducer)String[] getResultNames() throws Exception
Exception
- if the result names could not be determined (perhaps
because of a problem from a nested sub-resultproducer)Object[] getResultTypes() throws Exception
Exception
- if the result types could not be determined (perhaps
because of a problem from a nested sub-resultproducer)String getCompatibilityState()
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.