arche
Class StorageArray

java.lang.Object
  |
  +--arche.StorageArray

public class StorageArray
extends java.lang.Object

The hardware memory-array that can be divided for the structural elements. The class is responsible for the initial division of the processor's internal memory. It should handle exceptions such as overallocation.


Field Summary
(package private)  int max_size
           
(package private)  int number_of_allocated_regs
           
(package private)  java.util.Vector structural_elements
           
 
Constructor Summary
StorageArray(int number_of_regs)
           
 
Method Summary
 void addStorage(Storage st)
          Structural elements can be added step-by-step.
(package private)  Storage[] getStructuralElements()
          After building-up, it gives back the array of structural elements.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

max_size

int max_size

number_of_allocated_regs

int number_of_allocated_regs

structural_elements

java.util.Vector structural_elements
Constructor Detail

StorageArray

public StorageArray(int number_of_regs)
Method Detail

addStorage

public void addStorage(Storage st)
Structural elements can be added step-by-step.

getStructuralElements

Storage[] getStructuralElements()
After building-up, it gives back the array of structural elements.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object