de.ls5.jlearn.oracles
Class FileCacheOracle

java.lang.Object
  extended by de.ls5.jlearn.oracles.FileCacheOracle
All Implemented Interfaces:
Oracle, Serializable

public class FileCacheOracle
extends Object
implements Oracle

Author:
maik
See Also:
Serialized Form

Constructor Summary
FileCacheOracle(int blocksize, File f)
           
 
Method Summary
static void main(String[] args)
           
 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 oracle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCacheOracle

public FileCacheOracle(int blocksize,
                       File f)
Method Detail

setOracle

public void setOracle(Oracle oracle)

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

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.