de.ls5.jlearn.interfaces
Interface BatchOracle

All Superinterfaces:
Oracle, Serializable
All Known Implementing Classes:
AbstractBatchOracle, LengthSortBatchOracle, MultithreadBatchOracle, PrefixFirstBatchOracle, SequentialBatchOracle

public interface BatchOracle
extends Oracle

This interface encapsulates access to the SUT (System Under Test). System adapter or e.g. query filters should implement this interface. It extends the plain oracle to also handle batches of queries in order to address concerns like prefix-optimizations, parallelization etc. outside the core algorithms Learning algorthims capable of working in batch mode will automatically detect a batch oracle and produce queries in batches and not sequentially. It is REQUIRED that implementations are thread-safe!

Author:
fh

Method Summary
 Map<Word,Word> processQueries(List<Word> queries)
          Process an incoming collection of words of input symbols and return a map from queries to output words produced as reacion to the inputs
 
Methods inherited from interface de.ls5.jlearn.interfaces.Oracle
processQuery
 

Method Detail

processQueries

Map<Word,Word> processQueries(List<Word> queries)
                              throws LearningException
Process an incoming collection of words of input symbols and return a map from queries to output words produced as reacion to the inputs

Parameters:
queries - list of Word objects respresenting the query the system is supposed to process
Returns:
Map holding the results for each query
Throws:
LearningException


Copyright © 2011. All Rights Reserved.