public class RawMemory
extends java.lang.Object
Memory
,
MemoryObject
,
MemoryContainer
Constructor and Description |
---|
RawMemory()
Crates a Raw Memory.
|
Modifier and Type | Method and Description |
---|---|
void |
addMemory(Memory mo)
Adds a new Memory to the Raw Memory.
|
void |
addMemoryObject(Memory mo)
Deprecated.
|
MemoryContainer |
createMemoryContainer(java.lang.String name)
Creates a memory container of the type passed.
|
MemoryObject |
createMemoryObject(java.lang.String name)
Creates a memory object of the type passed.
|
MemoryObject |
createMemoryObject(java.lang.String name,
java.lang.Object info)
Creates a new MemoryObject and adds it to the Raw Memory, using provided
info and type.
|
void |
destroyMemoryObject(Memory mo)
Destroys a given memory from raw memory
|
java.util.List<Memory> |
getAllMemoryObjects()
Gets all memories inside the raw memory.
|
java.util.List<Memory> |
getAllOfType(java.lang.String type)
Returns a list of all memories in raw memory of a given type
|
void |
printContent()
Print Raw Memory contents.
|
void |
setAllMemoryObjects(java.util.List<Memory> allMemories)
Sets the list of all memories inside raw memory.
|
void |
shutDown()
Removes all memory objects from RawMemory.
|
int |
size()
Gets the size of the raw memory.
|
public java.util.List<Memory> getAllMemoryObjects()
public java.util.List<Memory> getAllOfType(java.lang.String type)
type
- of memorypublic void setAllMemoryObjects(java.util.List<Memory> allMemories)
allMemories
- the allMemoryObjects to set.public void printContent()
@Deprecated public void addMemoryObject(Memory mo)
mo
- memory to be added.public void addMemory(Memory mo)
mo
- memory to be added.public MemoryContainer createMemoryContainer(java.lang.String name)
name
- the type of the memory container passed.public MemoryObject createMemoryObject(java.lang.String name, java.lang.Object info)
name
- memory object type.info
- memory object info.public MemoryObject createMemoryObject(java.lang.String name)
name
- the type of the memory object created.public void destroyMemoryObject(Memory mo)
mo
- the memory to destroy.public int size()
public void shutDown()