Interface Memory.MemoryListener

  • Enclosing interface:
    Memory

    public static interface Memory.MemoryListener
    The 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 addMemoryListener method. Memory events occur even if single cell is changed in memory and then is invoked memChange method.

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