net.sourceforge.geeboss.model.midi.memory
Class MappedDevice

java.lang.Object
  extended by net.sourceforge.geeboss.model.midi.memory.MemoryComponent
      extended by net.sourceforge.geeboss.model.midi.memory.MemoryObject
          extended by net.sourceforge.geeboss.model.midi.memory.MappedDevice
All Implemented Interfaces:
Referencing, Sysexable
Direct Known Subclasses:
RolandDevice

public abstract class MappedDevice
extends MemoryObject

A device that has a mapped memory

Author:
Frederic BORRY

Field Summary
 
Fields inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryObject
mMemoryMap
 
Fields inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryComponent
mAbsoluteAddress, mBaseAddress, mName, mParent, mSize
 
Constructor Summary
MappedDevice()
          Create a new MappedDevice
 
Method Summary
 void fromSysex(SysexMemoryMessage message)
          Load this Syseable object from a sysex memory message
protected  MemoryComponent getComponent(long address)
          Get a memory component given it's address
abstract  org.apache.avalon.framework.configuration.Configuration getDeviceConfiguration()
          Get the implementation specific configuration
 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.MemoryObject
addReference, fromSysex, getComponent, handleClassCastException, isValue, setup
 
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
 

Constructor Detail

MappedDevice

public MappedDevice()
             throws org.apache.avalon.framework.configuration.ConfigurationException
Create a new MappedDevice

Throws:
org.apache.avalon.framework.configuration.ConfigurationException
Method Detail

getDeviceConfiguration

public abstract org.apache.avalon.framework.configuration.Configuration getDeviceConfiguration()
                                                                                        throws org.apache.avalon.framework.configuration.ConfigurationException
Get the implementation specific configuration

Returns:
the implementation specific configuration
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

getComponent

protected MemoryComponent getComponent(long address)
Get a memory component given it's address

Parameters:
address - the address of the component
Returns:
the component or null

fromSysex

public void fromSysex(SysexMemoryMessage message)
Load this Syseable object from a sysex memory message

Parameters:
message - the sysex memory message to load the object from

toSysex

public void toSysex(java.util.List<SysexMemoryMessage> messages)
Dump this Sysexable object into a sysex memory message list

Specified by:
toSysex in interface Sysexable
Overrides:
toSysex in class MemoryObject
Parameters:
messages - the sysex memory message list to dump the object to


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.