|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResultProducer
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 |
|---|
void setInstances(Instances instances)
instances - a value of type 'Instances'.void setResultListener(ResultListener listener)
listener - a value of type 'ResultListener'void setAdditionalMeasures(java.lang.String[] additionalMeasures)
additionalMeasures - a list of method names
void preProcess()
throws java.lang.Exception
java.lang.Exception - if an error occurs during preprocessing.
void postProcess()
throws java.lang.Exception
java.lang.Exception - if an error occurs
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 results
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 keys
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)
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)
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)
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)java.lang.String getCompatibilityState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||