public class MemoryObserver
extends java.lang.Object
implements java.util.Observer
| Constructor and Description |
|---|
MemoryObserver() |
| Modifier and Type | Method and Description |
|---|---|
java.util.HashSet<java.lang.Integer> |
modificationSet()
Return the
Set of bytes that have been modified. |
void |
remove(int i)
Remove a byte from the list of modified bytes.
|
void |
remove(int i,
int length)
Remove bytes from the list of modified bytes.
|
void |
update(java.util.Observable o,
java.lang.Object arg)
Called when
Memory is accessed. |
public void update(java.util.Observable o,
java.lang.Object arg)
Memory is accessed.
This method keeps a list of the locations to which data is written.update in interface java.util.Observero - The Memory object that was updated.arg - A MemoryAccessNotice object describing the updated.public void remove(int i,
int length)
i - the initial byte to remove from the modification list.length - the number of bytes to removepublic void remove(int i)
i - the byte to remove from the modification list.public java.util.HashSet<java.lang.Integer> modificationSet()
Set of bytes that have been modified.Set of bytes that have been modified.