All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Interface weka.experiment.ResultListener
- public interface ResultListener
- extends Serializable
Interface for objects able to listen for results obtained
by a ResultProducer
- Version:
- $Revision: 1.1 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
-
acceptResult(ResultProducer, Object[], Object[])
- Accepts results from a ResultProducer.
-
isResultRequired(ResultProducer, Object[])
- Determines whether the results for a specified key must be
generated.
-
postProcess(ResultProducer)
- Perform any postprocessing.
-
preProcess(ResultProducer)
- Prepare for the results to be received.
preProcess
public abstract void preProcess(ResultProducer rp) throws Exception
- Prepare for the results to be received.
- Parameters:
- rp - the ResultProducer that will generate the results
- Throws: Exception
- if an error occurs during preprocessing.
postProcess
public abstract void postProcess(ResultProducer rp) throws Exception
- Perform any postprocessing. When this method is called, it indicates
that no more results will be sent that need to be grouped together
in any way.
- Parameters:
- rp - the ResultProducer that generated the results
- Throws: Exception
- if an error occurs
acceptResult
public abstract void acceptResult(ResultProducer rp,
Object key[],
Object result[]) throws Exception
- Accepts results from a ResultProducer.
- Parameters:
- rp - the ResultProducer that generated the results
- key - an array of Objects (Strings or Doubles) that uniquely
identify a result for a given ResultProducer with given compatibilityState
- result - the results stored in an array. The objects stored in
the array may be Strings, Doubles, or null (for the missing value).
- Throws: Exception
- if the result could not be accepted.
isResultRequired
public abstract boolean isResultRequired(ResultProducer rp,
Object key[]) throws Exception
- Determines whether the results for a specified key must be
generated.
- Parameters:
- rp - the ResultProducer wanting to generate the results
- key - an array of Objects (Strings or Doubles) that uniquely
identify a result for a given ResultProducer with given compatibilityState
- Returns:
- true if the result should be generated
- Throws: Exception
- if it could not be determined if the result
is needed.
All Packages Class Hierarchy This Package Previous Next Index WEKA's home