|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.sim.Simulator.Watch.Empty
The Simulator.Watch.Empty
class acts as a base class with empty methods for
each fireXXX() method. This makes it easier to write much shorter simple watches because
empty methods are simply inherited.
Nested Class Summary |
Nested classes inherited from class avrora.sim.Simulator.Watch |
Simulator.Watch.Empty |
Constructor Summary | |
Simulator.Watch.Empty()
|
Method Summary | |
void |
fireAfterRead(State state,
int data_addr,
byte value)
The fireAfterRead() method is called after the data address is read by the program.
|
void |
fireAfterWrite(State state,
int data_addr,
byte value)
The fireAfterWrite() method is called after the data address is written by the
program.
|
void |
fireBeforeRead(State state,
int data_addr)
The fireBeforeRead() method is called before the data address is read by the program.
|
void |
fireBeforeWrite(State state,
int data_addr,
byte value)
The fireBeforeWrite() method is called before the data address is written by the
program.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Simulator.Watch.Empty()
Method Detail |
public void fireBeforeRead(State state, int data_addr)
fireBeforeRead()
method is called before the data address is read by the program.
In the implementation of the Empty watch, this method does nothing.
fireBeforeRead
in interface Simulator.Watch
state
- the state of the simulationdata_addr
- the address of the data being referencedpublic void fireBeforeWrite(State state, int data_addr, byte value)
fireBeforeWrite()
method is called before the data address is written by the
program.
In the implementation of the Empty watch, this method does nothing.
fireBeforeWrite
in interface Simulator.Watch
state
- the state of the simulationdata_addr
- the address of the data being referencedvalue
- the value being written to the memory locationpublic void fireAfterRead(State state, int data_addr, byte value)
fireAfterRead()
method is called after the data address is read by the program.
In the implementation of the Empty watch, this method does nothing.
fireAfterRead
in interface Simulator.Watch
state
- the state of the simulationdata_addr
- the address of the data being referencedvalue
- the value of the memory location being readpublic void fireAfterWrite(State state, int data_addr, byte value)
fireAfterWrite()
method is called after the data address is written by the
program.
In the implementation of the Empty watch, this method does nothing.
fireAfterWrite
in interface Simulator.Watch
state
- the state of the simulationdata_addr
- the address of the data being referencedvalue
- the value being written to the memory location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |