|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.sim.util.MulticastProbe
The MulticastProbe is a wrapper around multiple probes that
allows them to act as a single probe. It is useful for composing multiple
probes into one and is used internally in the simulator.
Simulator| Constructor Summary | |
MulticastProbe()
|
|
| Method Summary | |
void |
add(Simulator.Probe b)
The add() method allows another probe to be inserted into
the multicast set. |
void |
fireAfter(Instr i,
int address,
State state)
The fireAfter() method is called after the probed instruction
executes. |
void |
fireBefore(Instr i,
int address,
State state)
The fireBefore() method is called before the probed instruction
executes. |
boolean |
isEmpty()
The isEmpty() method tests whether the multicast set
of this probe is empty. |
void |
remove(Simulator.Probe b)
The remove method removes a probe from the multicast set.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MulticastProbe()
| Method Detail |
public void add(Simulator.Probe b)
add() method allows another probe to be inserted into
the multicast set. It will be inserted at the end of the list of current
probes and will therefore fire after any probes already in the multicast
set.
b - the probe to insertpublic void remove(Simulator.Probe b)
remove method removes a probe from the multicast set.
The order of the remaining probes is not changed. The comparison used
is reference equality, not the .equals() method.
b - the probe to removepublic boolean isEmpty()
isEmpty() method tests whether the multicast set
of this probe is empty.
public void fireBefore(Instr i,
int address,
State state)
fireBefore() method is called before the probed instruction
executes. In the implementation of the multicast probe, it simply calls the
fireBefore() method on each of the probes in the multicast set
in the order in which they were inserted.
fireBefore in interface Simulator.Probei - the instruction being probedaddress - the address at which this instruction residesstate - the state of the simulation
public void fireAfter(Instr i,
int address,
State state)
fireAfter() method is called after the probed instruction
executes. In the implementation of the multicast probe, it simply calls the
fireAfter() method on each of the probes in the multicast set
in the order in which they were inserted.
fireAfter in interface Simulator.Probei - the instruction being probedaddress - the address at which this instruction residesstate - the state of the simulation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||