avrora.sim.util
Class MulticastExceptionWatch

java.lang.Object
  extended byavrora.sim.util.TransactionalList
      extended byavrora.sim.util.MulticastExceptionWatch
All Implemented Interfaces:
Simulator.ExceptionWatch

public class MulticastExceptionWatch
extends TransactionalList
implements Simulator.ExceptionWatch

An ExceptionWatch implementation which rebroadcasts the events to multiple ExceptionWatch instances.


Nested Class Summary
 
Nested classes inherited from class avrora.sim.util.TransactionalList
TransactionalList.Link
 
Field Summary
 
Fields inherited from class avrora.sim.util.TransactionalList
head, nesting, tail, transHead, transTail
 
Constructor Summary
MulticastExceptionWatch()
           
 
Method Summary
 void invalidRead(java.lang.String segment, int address)
          The invalidRead() method is invoked when an instruction attempts to read from an out-of-bounds memory location.
 void invalidWrite(java.lang.String segment, int address, byte value)
          The invalidWrite() method is invoked when an instruction attempts to write to a read-only or out-of-bounds memory location.
 
Methods inherited from class avrora.sim.util.TransactionalList
add, beginTransaction, endTransaction, isEmpty, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MulticastExceptionWatch

public MulticastExceptionWatch()
Method Detail

invalidRead

public void invalidRead(java.lang.String segment,
                        int address)
Description copied from interface: Simulator.ExceptionWatch
The invalidRead() method is invoked when an instruction attempts to read from an out-of-bounds memory location.

Specified by:
invalidRead in interface Simulator.ExceptionWatch
Parameters:
segment - The segment the instruction attempted to read from.
address - The address within the segment of the attempted read.

invalidWrite

public void invalidWrite(java.lang.String segment,
                         int address,
                         byte value)
Description copied from interface: Simulator.ExceptionWatch
The invalidWrite() method is invoked when an instruction attempts to write to a read-only or out-of-bounds memory location.

Specified by:
invalidWrite in interface Simulator.ExceptionWatch
Parameters:
segment - The segment the instruction attempted to write into.
address - The address within the segment of the disallowed write.
value - The value the instruction attempted to write.