avrora.sim
Interface Segment.ErrorReporter

All Known Implementing Classes:
BaseInterpreter.ErrorReporter
Enclosing interface:
Segment

public static interface Segment.ErrorReporter

The ErrorReporter class is used to intercept errors caused by trying to either read or write outside the bounds of this segment. Since this could be done by the program being simulated, the interpreter would like the ability to detect this case and continue simulation rather than an exception being thrown. In other situations, it might be better to throw an exception. Therefore, this object allows the policy to be set separately by an outside object.


Method Summary
 byte readError(int address)
           
 void writeError(int address, byte value)
           
 

Method Detail

readError

public byte readError(int address)

writeError

public void writeError(int address,
                       byte value)