|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.sim.util.MulticastWatch
The MulticastProbe is a wrapper around multiple watches that
allows them to act as a single watch. It is useful for composing multiple
watches into one and is used internally in the simulator.
Simulator| Constructor Summary | |
MulticastWatch()
|
|
| Method Summary | |
void |
add(Simulator.Watch b)
The add() method allows another watch to be inserted into
the multicast set. |
void |
fireAfterRead(Instr i,
int address,
State state,
int data_addr,
byte val)
The fireAfterRead() method is called after the probed address
is read by the program. |
void |
fireAfterWrite(Instr i,
int address,
State state,
int data_addr,
byte val)
The fireAfterWrite() method is called after the probed address
is written by the program. |
void |
fireBeforeRead(Instr i,
int address,
State state,
int data_addr,
byte val)
The fireBeforeRead() method is called before the probed address
is read by the program. |
void |
fireBeforeWrite(Instr i,
int address,
State state,
int data_addr,
byte val)
The fireBeforeWrite() method is called before the probed address
is written by the program. |
boolean |
isEmpty()
The isEmpty() method tests whether the multicast set
of this watch is empty. |
void |
remove(Simulator.Watch b)
The remove method removes a watch 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 MulticastWatch()
| Method Detail |
public void add(Simulator.Watch b)
add() method allows another watch to be inserted into
the multicast set. It will be inserted at the end of the list of current
watch and will therefore fire after any probes already in the multicast
set.
b - the watch to insertpublic void remove(Simulator.Watch b)
remove method removes a watch 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 watch to removepublic boolean isEmpty()
isEmpty() method tests whether the multicast set
of this watch is empty.
public void fireBeforeRead(Instr i,
int address,
State state,
int data_addr,
byte val)
fireBeforeRead() method is called before the probed address
is read by the program. In the implementation of the multicast probe, it
simply calls the fireBeforeRead() method on each of the probes
in the multicast set in the order in which they were inserted.
fireBeforeRead in interface Simulator.Watchi - the instruction being probedaddress - the address at which this instruction residesstate - the state of the simulationval - the value of the memory location being readdata_addr - the address of the data being referenced
public void fireAfterRead(Instr i,
int address,
State state,
int data_addr,
byte val)
fireAfterRead() method is called after the probed address
is read by the program. In the implementation of the multicast probe, it
simply calls the fireAfterRead() method on each of the probes
in the multicast set in the order in which they were inserted.
fireAfterRead in interface Simulator.Watchi - the instruction being probedaddress - the address at which this instruction residesstate - the state of the simulationval - the value of the memory location being readdata_addr - the address of the data being referenced
public void fireBeforeWrite(Instr i,
int address,
State state,
int data_addr,
byte val)
fireBeforeWrite() method is called before the probed address
is written by the program. In the implementation of the multicast probe, it
simply calls the fireBeforeWrite() method on each of the probes
in the multicast set in the order in which they were inserted.
fireBeforeWrite in interface Simulator.Watchi - the instruction being probedaddress - the address at which this instruction residesstate - the state of the simulationval - the value being written to the memory locationdata_addr - the address of the data being referenced
public void fireAfterWrite(Instr i,
int address,
State state,
int data_addr,
byte val)
fireAfterWrite() method is called after the probed address
is written by the program. In the implementation of the multicast probe, it
simply calls the fireAfterWrite() method on each of the probes
in the multicast set in the order in which they were inserted.
fireAfterWrite in interface Simulator.Watchi - the instruction being probedaddress - the address at which this instruction residesstate - the state of the simulationval - the value being written to the memory locationdata_addr - the address of the data being referenced
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||