Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Nested Class Summary

Nested classes inherited from class avrora.sim.Simulator.IORWatch
`Simulator.IORWatch.Empty`

Constructor Summary
`Simulator.IORWatch.Empty()`

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 avrora.sim.Simulator.Watch.Empty
`fireAfterRead, fireAfterWrite, fireBeforeRead, fireBeforeWrite`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface avrora.sim.Simulator.Watch
`fireAfterRead, fireAfterWrite, fireBeforeRead, fireBeforeWrite`

Constructor Detail

### Simulator.IORWatch.Empty

    public Simulator.IORWatch.Empty()

Method Detail

### 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 simulation
    `ioreg_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 simulation
    `ioreg_num` - the number of the IO register being read
    `value` - 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 simulation
    `ioreg_num` - the number of the IO register being read
    `value` - 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 simulation
    `ioreg_num` - the number of the IO register being read
    `value` - the value being written to the memory location

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD