de.ls5.jlearn.interfaces
Interface AsyncOracle

All Superinterfaces:
Oracle, Serializable
All Known Implementing Classes:
AsyncOracleImpl

public interface AsyncOracle
extends Oracle

An asynchronous oracle buffers queries, which can be retrieved and processed.

Author:
merten

Method Summary
 void answerQuery(Word query, Word answer)
          Provide an answer for a query previously retrieved from this asynchronous oracle.
 List<Word> getQueries(int max)
          Retrieve a list of queries currently buffered in this asynchronous oracle.
 
Methods inherited from interface de.ls5.jlearn.interfaces.Oracle
processQuery
 

Method Detail

getQueries

List<Word> getQueries(int max)
Retrieve a list of queries currently buffered in this asynchronous oracle.

Parameters:
max - the maximal number of queries to be retrieved
Returns:
a List of query Word objects

answerQuery

void answerQuery(Word query,
                 Word answer)
Provide an answer for a query previously retrieved from this asynchronous oracle.

Parameters:
query - a query previously retrieved from this asynchronous oracle
answer - the result of the query


Copyright © 2011. All Rights Reserved.