de.ls5.jlearn.batchoracles
Class MultithreadBatchOracle

java.lang.Object
  extended by de.ls5.jlearn.batchoracles.AbstractBatchOracle
      extended by de.ls5.jlearn.batchoracles.MultithreadBatchOracle
All Implemented Interfaces:
BatchOracle, Oracle, Serializable

public class MultithreadBatchOracle
extends AbstractBatchOracle

A BatchOracle that processes queries on several threads.

Author:
merten
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
MultithreadBatchOracle()
           
MultithreadBatchOracle(Oracle oracle)
           
MultithreadBatchOracle(Oracle oracle, int numthreads)
           
 
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
 void setOracle(Oracle oracle)
           
 
Methods inherited from class de.ls5.jlearn.batchoracles.AbstractBatchOracle
processQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

MultithreadBatchOracle

public MultithreadBatchOracle()

MultithreadBatchOracle

public MultithreadBatchOracle(Oracle oracle)

MultithreadBatchOracle

public MultithreadBatchOracle(Oracle oracle,
                              int numthreads)
Method Detail

processQueries

public Map<Word,Word> processQueries(List<Word> queries)
                              throws LearningException
Description copied from interface: BatchOracle
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

setOracle

public void setOracle(Oracle oracle)


Copyright © 2011. All Rights Reserved.