|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods required for an object that produces results for different randomizations of a dataset.
Possible implementations of ResultProducer:
Method Summary | |
void |
doRun(int run)
Gets the results for a specified run number. |
void |
doRunKeys(int run)
Gets the keys for a specified run number. |
java.lang.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). |
java.lang.String[] |
getKeyNames()
Gets the names of each of the key columns produced for a single run. |
java.lang.Object[] |
getKeyTypes()
Gets the data types of each of the key columns produced for a single run. |
java.lang.String[] |
getResultNames()
Gets the names of each of the result columns produced for a single run. |
java.lang.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(java.lang.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. |
Method Detail |
public void setInstances(Instances instances)
instances
- a value of type 'Instances'.public void setResultListener(ResultListener listener)
listener
- a value of type 'ResultListener'public void setAdditionalMeasures(java.lang.String[] additionalMeasures)
additionalMeasures
- a list of method namespublic void preProcess() throws java.lang.Exception
java.lang.Exception
- if an error occurs during preprocessing.public void postProcess() throws java.lang.Exception
java.lang.Exception
- if an error occurspublic void doRun(int run) throws java.lang.Exception
run
- the run number to generate results for.
java.lang.Exception
- if a problem occurs while getting the resultspublic void doRunKeys(int run) throws java.lang.Exception
run
- the run number to get keys for.
java.lang.Exception
- if a problem occurs while getting the keyspublic java.lang.String[] getKeyNames() throws java.lang.Exception
java.lang.Exception
- if the key names could not be determined (perhaps
because of a problem from a nested sub-resultproducer)public java.lang.Object[] getKeyTypes() throws java.lang.Exception
java.lang.Exception
- if the key types could not be determined (perhaps
because of a problem from a nested sub-resultproducer)public java.lang.String[] getResultNames() throws java.lang.Exception
java.lang.Exception
- if the result names could not be determined (perhaps
because of a problem from a nested sub-resultproducer)public java.lang.Object[] getResultTypes() throws java.lang.Exception
java.lang.Exception
- if the result types could not be determined (perhaps
because of a problem from a nested sub-resultproducer)public java.lang.String getCompatibilityState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London