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

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

public abstract class MemoryComponent
extends java.lang.Object
implements Sysexable

Base class for memory components (MemoryObject, MemoryValue)

Author:
Frederic BORRY

Field Summary
protected  long mAbsoluteAddress
          Absolute address for this memory component
protected  long mBaseAddress
          Base address for this memory component
protected  java.lang.String mName
          Name for the memory component
protected  MemoryObject mParent
          The parent memory object
protected  long mSize
          Size for this memory component
 
Constructor Summary
MemoryComponent(java.lang.String name, MemoryObject parent, long baseAddress, long size)
          Create a new MemoryComponent given it's name, baseAddress and it's size
 
Method Summary
 long getAbsoluteAddress()
          Getter for absolute address (the address within the device)
 long getBaseAddress()
          Getter for base address (the address relative to the parent object)
 java.lang.String getName()
          Getter for name
 MemoryObject getParent()
          Getter for parent
 long getSize()
          Getter for size
abstract  boolean isValue()
          Returns true if this MemoryComponent's implementation is a value (data)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.geeboss.model.midi.sysex.Sysexable
fromSysex, toSysex
 

Field Detail

mName

protected java.lang.String mName
Name for the memory component


mParent

protected MemoryObject mParent
The parent memory object


mBaseAddress

protected long mBaseAddress
Base address for this memory component


mAbsoluteAddress

protected long mAbsoluteAddress
Absolute address for this memory component


mSize

protected long mSize
Size for this memory component

Constructor Detail

MemoryComponent

public MemoryComponent(java.lang.String name,
                       MemoryObject parent,
                       long baseAddress,
                       long size)
Create a new MemoryComponent given it's name, baseAddress and it's size

Parameters:
name - the memory component name
parent - the parent memory object
baseAddress - the MemoryComponent base address
size - the MemoryComponent size
Method Detail

isValue

public abstract boolean isValue()
Returns true if this MemoryComponent's implementation is a value (data)

Returns:
true if this MemoryComponent's implementation is a value (data)

getName

public java.lang.String getName()
Getter for name

Returns:
the name

getParent

public MemoryObject getParent()
Getter for parent

Returns:
the parent

getSize

public long getSize()
Getter for size

Returns:
the size

getAbsoluteAddress

public long getAbsoluteAddress()
Getter for absolute address (the address within the device)

Returns:
the absolute address (the address within the device)

getBaseAddress

public long getBaseAddress()
Getter for base address (the address relative to the parent object)

Returns:
the base address (the address relative to the parent object)


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