com.cmpware.cmp
Class SystemMemory

java.lang.Object
  extended by com.cmpware.cmp.SystemMemory
Direct Known Subclasses:
CellBE, DualCellBE, FrameBuffer, NoSystemMemory, Ring, SPURS, Torus

public abstract class SystemMemory
extends java.lang.Object

This defines the generic System Memory interface. This is the class used to construct the global system memory.

Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 
Constructor Summary
SystemMemory()
           
 
Method Summary
abstract  void configureMemory(Multiprocessor mp)
          This method is called to build and configure the memory system for the newly allocated processor array.
static SystemMemory get(java.lang.String systemMemoryClassName)
          This method is used to return a newly allocated System Memory definition class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values
Constructor Detail

SystemMemory

public SystemMemory()
Method Detail

configureMemory

public abstract void configureMemory(Multiprocessor mp)
                              throws SystemMemoryException
This method is called to build and configure the memory system for the newly allocated processor array. In particular, shared memories should be allocated and connected to processors here. This method may also be used to adding additional banks of local memories or manipulating the default local memory, although this could also be done locally.

Parameters:
mp - The multiprocessor.
Throws:
SystemMemoryException - if there is a problem allocating or using the memory objects.

get

public static SystemMemory get(java.lang.String systemMemoryClassName)
                        throws SystemMemoryException
This method is used to return a newly allocated System Memory definition class.

Parameters:
systemMemoryClassName - The name of the class in the cmp.cmpware.cmp.models package used to define the global memory system for this multiprocessor.
Throws:
SystemMemoryException - if there is any problem allocating or accessing the System Memory class.