|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for objects able to listen for results obtained by a ResultProducer
| Method Summary | |
void |
acceptResult(ResultProducer rp,
java.lang.Object[] key,
java.lang.Object[] result)
Accepts results from a ResultProducer. |
java.lang.String[] |
determineColumnConstraints(ResultProducer rp)
Determines if there are any constraints (imposed by the destination) on additional result columns to be produced by resultProducers. |
boolean |
isResultRequired(ResultProducer rp,
java.lang.Object[] key)
Determines whether the results for a specified key must be generated. |
void |
postProcess(ResultProducer rp)
Perform any postprocessing. |
void |
preProcess(ResultProducer rp)
Prepare for the results to be received. |
| Method Detail |
public java.lang.String[] determineColumnConstraints(ResultProducer rp)
throws java.lang.Exception
rp - the ResultProducer to which the constraints will apply
java.lang.Exception - if an error occurs
public void preProcess(ResultProducer rp)
throws java.lang.Exception
rp - the ResultProducer that will generate the results
java.lang.Exception - if an error occurs during preprocessing.
public void postProcess(ResultProducer rp)
throws java.lang.Exception
rp - the ResultProducer that generated the results
java.lang.Exception - if an error occurs
public void acceptResult(ResultProducer rp,
java.lang.Object[] key,
java.lang.Object[] result)
throws java.lang.Exception
rp - the ResultProducer that generated the resultskey - an array of Objects (Strings or Doubles) that uniquely
identify a result for a given ResultProducer with given compatibilityStateresult - the results stored in an array. The objects stored in
the array may be Strings, Doubles, or null (for the missing value).
java.lang.Exception - if the result could not be accepted.
public boolean isResultRequired(ResultProducer rp,
java.lang.Object[] key)
throws java.lang.Exception
rp - the ResultProducer wanting to generate the resultskey - an array of Objects (Strings or Doubles) that uniquely
identify a result for a given ResultProducer with given compatibilityState
java.lang.Exception - if it could not be determined if the result
is needed.
|
|||||||||
| 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