Package mars.mips.hardware
Class AccessNotice
java.lang.Object
mars.mips.hardware.AccessNotice
- Direct Known Subclasses:
MemoryAccessNotice
,RegisterAccessNotice
Object provided to Observers of runtime access to MIPS memory or registers.
The access types READ and WRITE are defined here; use subclasses defined for
MemoryAccessNotice and RegisterAccessNotice. This is an abstract class.
- Version:
- July 2005
- Author:
- Pete Sanderson
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
Query whether the access originated from MARS GUI (AWT event queue)boolean
Query whether the access originated from executing MIPS programint
Get the access type: READ or WRITE.Get reference to thread that created this notice
-
Field Details
-
READ
public static final int READIndicates the purpose of access was to read.- See Also:
- Constant Field Values
-
WRITE
public static final int WRITEIndicates the purpose of access was to write.- See Also:
- Constant Field Values
-
-
Method Details
-
getAccessType
public int getAccessType()Get the access type: READ or WRITE.- Returns:
- Access type, either AccessNotice.READ or AccessNotice.WRITE
-
getThread
Get reference to thread that created this notice- Returns:
- Return reference to the thread that created this notice.
-
accessIsFromGUI
public boolean accessIsFromGUI()Query whether the access originated from MARS GUI (AWT event queue)- Returns:
- true if this access originated from MARS GUI, false otherwise
-
accessIsFromMIPS
public boolean accessIsFromMIPS()Query whether the access originated from executing MIPS program- Returns:
- true if this access originated from executing MIPS program, false otherwise
-