All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface duckMachine.architecture.MemoryI

public interface MemoryI
The specification of the memory unit of the machine.


Variable Index

 o DEFAULT_SIZE

Method Index

 o fetch(Word)
Returns the contents of a specified address.
 o getSize()
 o store(Word, Word)
Stores a word in a specified address.

Variables

 o DEFAULT_SIZE
 public static final int DEFAULT_SIZE

Methods

 o getSize
 public abstract int getSize()
 o fetch
 public abstract Word fetch(Word a) throws MemoryE
Returns the contents of a specified address.

Parameters:
a - The address.
Throws: MemoryE
If the address is out of range.
See Also:
Word
 o store
 public abstract void store(Word a,
                            Word v) throws MemoryE
Stores a word in a specified address.

Parameters:
a - The address.
v - The object to store in the address.
Throws: MemoryE
If the address is out of range.
See Also:
Word

All Packages  Class Hierarchy  This Package  Previous  Next  Index