|
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
machine.Register
public class Register
Nested Class Summary | |
---|---|
static class |
Register.ClockTransition
Specifics the type of action register takes when the clock ticks. |
class |
Register.InputPort
Register's input port. |
class |
Register.NonClockedPort
Register's non-clocked port value. |
class |
Register.OutputPort
Register's output port. |
class |
Register.Port
Register's value port. |
class |
Register.TimingException
Indicates that CPU implementation has read from the register's input port, but no value was written to that port. |
Method Summary | |
---|---|
int |
get()
|
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int columnIndex)
|
int |
getInput()
|
Register.InputPort |
getInputPort()
Get the register's input-port object. |
int |
getInputUnsigned()
|
String |
getName()
|
Register.NonClockedPort |
getNonClockedPort()
Get the register's simplified value port object. |
Register.OutputPort |
getOutputPort()
Get the register's output-port object. |
Register.Port |
getPort()
Get the register's value port object. |
int |
getRowCount()
|
int |
getUnsigned()
|
Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
set(long aValue)
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
|
void |
setValueAtByUser(Object aValue,
int rowIndex,
int columnIndex)
|
void |
tickClock(Register.ClockTransition transition)
|
boolean |
valueEquals(Register anotherRegister)
|
Methods inherited from class util.AbstractDataModel |
---|
addUndoableEditListener, canDeleteRow, canInsertRow, deleteRow, insertRow, setValueAt, 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 Register.Port getPort()
public Register.NonClockedPort getNonClockedPort()
public Register.OutputPort getOutputPort()
public Register.InputPort getInputPort()
public boolean valueEquals(Register anotherRegister)
public String getName()
public void set(long aValue)
public int get()
public int getUnsigned()
public int getInput() throws Register.TimingException
Register.TimingException
public int getInputUnsigned() throws Register.TimingException
Register.TimingException
public void tickClock(Register.ClockTransition transition)
public int getColumnCount()
getColumnCount
in interface DataModel
getColumnCount
in class AbstractDataModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface DataModel
getColumnClass
in class AbstractDataModel
public String getColumnName(int columnIndex)
getColumnName
in interface DataModel
getColumnName
in class AbstractDataModel
public int getRowCount()
getRowCount
in interface DataModel
getRowCount
in class AbstractDataModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface DataModel
getValueAt
in class AbstractDataModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface DataModel
isCellEditable
in class AbstractDataModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface DataModel
setValueAt
in class AbstractDataModel
public void setValueAtByUser(Object aValue, int rowIndex, int columnIndex)
setValueAtByUser
in interface DataModel
setValueAtByUser
in class AbstractDataModel
|
Simple Machine | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |