jfrace
Class AddressSpaceEvent

java.lang.Object
  |
  +--jfrace.AddressSpaceEvent

public class AddressSpaceEvent
extends java.lang.Object

Event which happens when a piece of hardware (either a Device or a CPU) is added or removed from an AddressSpace.

Author:
Franz-Josef Elmer

Field Summary
static int ADD
          Event type: add a piece of hardware.
static int REMOVE
          Event type: remove a piece of hardware.
 
Constructor Summary
AddressSpaceEvent(AddressSpace anAddressSpace, int aType, int anAddressOffset, int aModeMask, Hardware aPieceOfHardware)
          Create an event.
 
Method Summary
 int getAddressOffset()
          Return the address offset of the added or removed hardware.
 AddressSpace getAddressSpace()
          Return the address space from which a piece of hardware has been added or removed.
 Hardware getHardware()
          Return the added or removed hardware.
 int getModeMask()
          Return the mode mask of the added or removed device.
 int getType()
          Return the type of action.
 java.lang.String toString()
          Compose a string with all basic informations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
Event type: add a piece of hardware.

REMOVE

public static final int REMOVE
Event type: remove a piece of hardware.
Constructor Detail

AddressSpaceEvent

public AddressSpaceEvent(AddressSpace anAddressSpace,
                         int aType,
                         int anAddressOffset,
                         int aModeMask,
                         Hardware aPieceOfHardware)
Create an event.
Parameters:
anAddressSpace - Address space from which (if aType == REMOVE) or to which (if aType == ADD) aPieceOfHardware has been removed or added, resp.
aType - Type of action. Either ADD or REMOVE.
anAddressOffset - Address offset.
aModeMask - Mode mask. Only needed for devices.
aPieceOfHardware - Hardware which is either added or removed.
Method Detail

getAddressSpace

public AddressSpace getAddressSpace()
Return the address space from which a piece of hardware has been added or removed.

getType

public int getType()
Return the type of action. Possible return values are ADD or REMOVE.

getAddressOffset

public int getAddressOffset()
Return the address offset of the added or removed hardware.

getModeMask

public int getModeMask()
Return the mode mask of the added or removed device.
Returns:
0 in the case CPUs.

getHardware

public Hardware getHardware()
Return the added or removed hardware.

toString

public java.lang.String toString()
Compose a string with all basic informations.
Overrides:
toString in class java.lang.Object