|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.cmp.memory.MemoryManager
public class MemoryManager
This class manages the memories. These can be local and shared memories mapped to various addresses. This class hold these memory objects and helps map memory objects from addresses.
Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
| Constructor Summary | |
|---|---|
MemoryManager()
|
|
| Method Summary | |
|---|---|
void |
add(MemoryInterface m)
This method adds a Memory to the Memory manager. |
java.lang.String |
dump()
This method prints status information about the Memory system. |
MemoryInterface |
get(int addr)
This method returns the memory associated with an address. |
boolean |
getEndian()
This method returns the endian (byte order) of the memory system. |
MemoryInterface[] |
getMemories()
This method returns an array of Memories. |
void |
remove(MemoryInterface m)
This method removes a Memory from the Memory Manager. |
void |
setEndian(boolean endian)
This method sets the endian (byte order) of the memory system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
| Constructor Detail |
|---|
public MemoryManager()
| Method Detail |
|---|
public boolean getEndian()
public void setEndian(boolean endian)
endian - The endian (either Memory.BIG or
Memory.LITTLE).public MemoryInterface get(int addr)
addr - The address.
public void add(MemoryInterface m)
m - The memory.public void remove(MemoryInterface m)
m - The memory.public MemoryInterface[] getMemories()
public java.lang.String dump()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||