|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.model.midi.memory.MemoryComponent
net.sourceforge.geeboss.model.midi.memory.MemoryObject
public class MemoryObject
An object memory component
Field Summary | |
---|---|
protected MemoryMap |
mMemoryMap
Referenced objects |
Fields inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryComponent |
---|
mAbsoluteAddress, mBaseAddress, mName, mParent, mSize |
Constructor Summary | |
---|---|
MemoryObject(java.lang.String name,
MemoryObject parent,
long baseAddress,
long size)
Create a new MemoryObject given it's name, baseAddress and it's size |
Method Summary | |
---|---|
void |
addReference(Reference reference,
MemoryManager manager)
Add a reference to this Referencing object |
void |
fromSysex(SysexMemoryMessage message,
java.util.List<MemoryComponent> updated)
Load this Syseable object from a sysex memory message |
MemoryComponent |
getComponent(java.lang.String path)
Returns the memory component associated to the provided path |
protected static void |
handleClassCastException(java.lang.String componentName,
java.lang.Class componentClass,
java.lang.ClassCastException exception)
Handle a class cast exception |
boolean |
isValue()
Returns false if this MemoryComponent's implementation is a value (data) |
void |
setup()
Setup this object after references have been added. |
void |
toSysex(java.util.List<SysexMemoryMessage> messages)
Dump this Sysexable object into a sysex memory message list |
Methods inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryComponent |
---|
getAbsoluteAddress, getBaseAddress, getName, getParent, getSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MemoryMap mMemoryMap
Constructor Detail |
---|
public MemoryObject(java.lang.String name, MemoryObject parent, long baseAddress, long size)
name
- the memory object nameparent
- the parent memory objectbaseAddress
- the memory object base addresssize
- the memory object sizeMethod Detail |
---|
public MemoryComponent getComponent(java.lang.String path)
path
- the dot seperated path the the memory component
java.lang.IllegalArgumentException
- if no object was found of if the path is not well formedpublic boolean isValue()
isValue
in class MemoryComponent
public void setup()
public void fromSysex(SysexMemoryMessage message, java.util.List<MemoryComponent> updated)
fromSysex
in interface Sysexable
message
- the sysex memory message to load the object fromupdated
- the list of modified memory componentspublic void toSysex(java.util.List<SysexMemoryMessage> messages)
toSysex
in interface Sysexable
messages
- the sysex memory message list to dump the object topublic void addReference(Reference reference, MemoryManager manager)
addReference
in interface Referencing
reference
- the reference to add to the Referencing objectmanager
- the MemoryManagerprotected static void handleClassCastException(java.lang.String componentName, java.lang.Class componentClass, java.lang.ClassCastException exception)
componentName
- the component that was castedcomponentClass
- the class the component was casted toexception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |