avrora.sim
Class Simulator.IORWatch.Empty
java.lang.Object
avrora.sim.Simulator.Watch.Empty
avrora.sim.Simulator.IORWatch.Empty
- All Implemented Interfaces:
- Simulator.IORWatch, Simulator.Watch
- Enclosing class:
- Simulator.IORWatch
- public static class Simulator.IORWatch.Empty
- extends Simulator.Watch.Empty
- implements Simulator.IORWatch
The Simulator.IORWatch.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.
Method Summary |
void |
fireAfterBitRead(State state,
int ioreg_num,
int bit,
boolean value)
The fireAfterBitRead() method is called after the data address is read by the program.
|
void |
fireAfterBitWrite(State state,
int ioreg_num,
int bit,
boolean value)
The fireAfterBitWrite() method is called after the data address is written by the
program.
|
void |
fireBeforeBitRead(State state,
int ioreg_num,
int bit)
The fireBeforeBitRead() method is called before the data address is read by the program.
|
void |
fireBeforeBitWrite(State state,
int ioreg_num,
int bit,
boolean value)
The fireBeforeBitWrite() 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 |
Simulator.IORWatch.Empty
public Simulator.IORWatch.Empty()
fireBeforeBitRead
public void fireBeforeBitRead(State state,
int ioreg_num,
int bit)
- The
fireBeforeBitRead()
method is called before the data address is read by the program.
In the implementation of the Empty watch, this method does nothing.
- Specified by:
fireBeforeBitRead
in interface Simulator.IORWatch
- Parameters:
state
- the state of the simulationioreg_num
- the number of the IO register being read
fireBeforeBitWrite
public void fireBeforeBitWrite(State state,
int ioreg_num,
int bit,
boolean value)
- The
fireBeforeBitWrite()
method is called before the data address is written by the
program.
In the implementation of the Empty watch, this method does nothing.
- Specified by:
fireBeforeBitWrite
in interface Simulator.IORWatch
- Parameters:
state
- the state of the simulationioreg_num
- the number of the IO register being readvalue
- the value being written to the memory location
fireAfterBitRead
public void fireAfterBitRead(State state,
int ioreg_num,
int bit,
boolean value)
- The
fireAfterBitRead()
method is called after the data address is read by the program.
In the implementation of the Empty watch, this method does nothing.
- Specified by:
fireAfterBitRead
in interface Simulator.IORWatch
- Parameters:
state
- the state of the simulationioreg_num
- the number of the IO register being readvalue
- the value of the memory location being read
fireAfterBitWrite
public void fireAfterBitWrite(State state,
int ioreg_num,
int bit,
boolean value)
- The
fireAfterBitWrite()
method is called after the data address is written by the
program.
In the implementation of the Empty watch, this method does nothing.
- Specified by:
fireAfterBitWrite
in interface Simulator.IORWatch
- Parameters:
state
- the state of the simulationioreg_num
- the number of the IO register being readvalue
- the value being written to the memory location