arche
Class Storage

java.lang.Object
  |
  +--arche.Storage
Direct Known Subclasses:
Queue, Register, Stack

public abstract class Storage
extends java.lang.Object

The abstraction of a processor's hardware structural elements. Storages for storing values somehow (regs, stacks, queues).


Constructor Summary
Storage()
           
 
Method Summary
abstract  void clear()
           
abstract  int getSize()
          Returns the number of cells inside the storage.
abstract  short read()
           
abstract  void write(short data)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Storage

public Storage()
Method Detail

read

public abstract short read()

write

public abstract void write(short data)

clear

public abstract void clear()

getSize

public abstract int getSize()
Returns the number of cells inside the storage. It's 1 for registers.