miSim

misim
Interface ChainedClockListener

All Superinterfaces:
ClockListener
All Known Implementing Classes:
BreakpointManager, BreadBoard, LCDPlugin, PIC84_EECon1

public interface ChainedClockListener
extends ClockListener

The ChainedClockListener interface allows classes such as Plugins to be informed after each instruction is emulated. The ChainedClockListener interface must record the next object in the chain (the setNext method) and must then call that object's clockEvent method at the start of it's own clockEvent method.


Method Summary
 ClockListener getNext()
          Return the next event handler in the chain.
 void setNext(ClockListener nextListener)
          Set the next event handler in the chain.
 
Methods inherited from interface misim.ClockListener
clockEvent, prepare
 

Method Detail

setNext

public void setNext(ClockListener nextListener)
Set the next event handler in the chain. The implementation of this class MUST call nextListener.clockEvent at the start of the clockEvent method - ie. it must honour the chain.
Parameters:
nextListener - The next clock event listener in the chain

getNext

public ClockListener getNext()
Return the next event handler in the chain.
Returns:
The next event handler in the chain

miSim