de.ls5.jlearn.batchoracles
Class SequentialBatchOracle
java.lang.Object
de.ls5.jlearn.batchoracles.SequentialBatchOracle
- All Implemented Interfaces:
- BatchOracle, Oracle, Serializable
public class SequentialBatchOracle
- extends Object
- implements BatchOracle
- Author:
- fh
- See Also:
- Serialized Form
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 |
Word |
processQuery(Word trace)
Process an incoming sequence (word) of input symbols and return a
sequence (word) of output symbols produced as reacion to the input
symbols. |
void |
setOracle(Oracle o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequentialBatchOracle
public SequentialBatchOracle(Oracle o)
SequentialBatchOracle
public SequentialBatchOracle()
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
- Specified by:
processQueries
in interface BatchOracle
- 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
processQuery
public Word processQuery(Word trace)
throws LearningException
- Description copied from interface:
Oracle
- Process an incoming sequence (word) of input symbols and return a
sequence (word) of output symbols produced as reacion to the input
symbols.
- Specified by:
processQuery
in interface Oracle
- Parameters:
trace
- Word
object respresenting the query the system is supposed to process
- Returns:
Word
object with the system's response to the provide query
- Throws:
LearningException
setOracle
public void setOracle(Oracle o)
Copyright © 2011. All Rights Reserved.