de.cau.cs.kieler.krep.evalbench.comm
Interface IKrepWrapper

All Known Implementing Classes:
KepWrapper, KlpWrapper

public interface IKrepWrapper

Generic interface for the processors when connected via JNI.

Rating yellow
(2010-02-05) review by cmot, msp

Method Summary
 void comment(String comment)
           
 String getName()
           
 byte getOutput()
           
 boolean hasOutput()
           
 void saveEsi(String esiFile)
          Tell the processor to log the communication into a log-File in esi Format.
 void send(byte b)
           
 void step()
          perform one tick.
 void terminate()
          Close the connection.
 

Method Detail

terminate

void terminate()
Close the connection.


hasOutput

boolean hasOutput()
Returns:
true if new outputs are available

getOutput

byte getOutput()
Returns:
the next output

step

void step()
perform one tick.


send

void send(byte b)
Parameters:
b - byte to send to the processor

saveEsi

void saveEsi(String esiFile)
Tell the processor to log the communication into a log-File in esi Format.

Parameters:
esiFile - name of the log File

comment

void comment(String comment)
Parameters:
comment - comment to send to the processor (used for logging)

getName

String getName()
Returns:
retrieve the name of the connected processor