|
Simple Machine | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
Util.AbstractDataModel
ISA.Region
public abstract class Region
The code description of a contiguous range of memory. Maintains mapping between memory values and ISA definitions that underly them. Proivdes DataModel interface that keeps Gui's view of ISA information in synch with values in memory.
Nested Class Summary | |
---|---|
class |
Region.AssemblyString
|
static interface |
Region.ByteLengthChangedListener
|
class |
Region.LabelString
|
static class |
Region.Type
|
Method Summary | |
---|---|
protected void |
add(MemoryCell cell)
Add cell to region. |
void |
addByteLengthChangedListener(Region.ByteLengthChangedListener l)
|
int |
byteLength()
|
boolean |
canDeleteRow(int row)
Report whether delete of specified row would suceed given the current state of the system. |
boolean |
canInsertRow(int row)
Report whether an insert of the specified row would succeed given the current state of the system. |
boolean |
deleteRow(int row)
Delete row in region. |
protected void |
fireByteLengthChanged()
|
int |
getAddress()
|
MemoryCell |
getCellForRowIndex(int rowIndex)
|
int |
getRowCount()
|
int |
getRowIndexForAddress(int address)
|
java.util.Vector<MemoryCell> |
getSavableRows()
|
Region.Type |
getType()
|
boolean |
insertRow(int row)
Insert new row in region, adding a place-holder cell and adjusting the address of all subsequent cells. |
int |
length()
|
protected void |
replace(java.util.Vector<MemoryCell> removeCells,
java.util.Vector<MemoryCell> addCells)
|
Methods inherited from class Util.AbstractDataModel |
---|
addUndoableEditListener, getColumnClass, getColumnCount, getColumnName, getValueAt, isCellEditable, setValueAt, setValueAt, setValueAtByUser, setValueAtByUser, tellObservers, tellObservers |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Util.DataModel |
---|
addObserver |
Method Detail |
---|
public java.util.Vector<MemoryCell> getSavableRows()
public Region.Type getType()
public int length()
public int getAddress()
public int byteLength()
public MemoryCell getCellForRowIndex(int rowIndex)
public int getRowIndexForAddress(int address)
public boolean insertRow(int row)
insertRow
in interface DataModel
insertRow
in class AbstractDataModel
public boolean canInsertRow(int row)
canInsertRow
in interface DataModel
canInsertRow
in class AbstractDataModel
public boolean deleteRow(int row)
deleteRow
in interface DataModel
deleteRow
in class AbstractDataModel
public boolean canDeleteRow(int row)
canDeleteRow
in interface DataModel
canDeleteRow
in class AbstractDataModel
protected void add(MemoryCell cell)
protected void replace(java.util.Vector<MemoryCell> removeCells, java.util.Vector<MemoryCell> addCells)
public int getRowCount()
getRowCount
in interface DataModel
getRowCount
in class AbstractDataModel
public void addByteLengthChangedListener(Region.ByteLengthChangedListener l)
protected void fireByteLengthChanged()
|
Simple Machine | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |