Interface Memory.MemoryListener
-
- Enclosing interface:
- Memory
public static interface Memory.MemoryListenerThe listener interface for receiving memory related events.The class that is interested in processing a memory event implements this interface, and the object created with that class is registered with a memory, using the memory's
addMemoryListenermethod. Memory events occur even if single cell is changed in memory and then is invokedmemChangemethod.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmemoryChanged(int memoryPosition)Invoked when a single memory cell is changed.voidmemorySizeChanged()Some memories can be dynamic-sized.
-
-
-
Method Detail
-
memoryChanged
void memoryChanged(int memoryPosition)
Invoked when a single memory cell is changed.- Parameters:
memoryPosition- memory position (address) of changed cell
-
memorySizeChanged
void memorySizeChanged()
Some memories can be dynamic-sized. This method is invoked when memory size has changed.
-
-