|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.hu.cs.titokone.MemoryLine
This class represents one slot in the TTK-91 computer's memory. It contains both the integer value stored in the memory as well as its symbolic code representation. As such, the class is not strictly to be used in a computer's memory, but can also bridge the gap between applications' binary and symbolic form.
Field Summary | |
private int |
binary
This field contains the binary form of the data stored in this line. |
private java.lang.String |
symbolic
This field contains the symbolic form of the command. |
Constructor Summary | |
MemoryLine(int binary,
java.lang.String symbolicCommand)
Creates a memory line with symbolic information. |
Method Summary | |
int |
getBinary()
Returns the value of this memory slot. |
java.lang.String |
getSymbolic()
Returns the symbolic representation of the command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String symbolic
private int binary
Constructor Detail |
public MemoryLine(int binary, java.lang.String symbolicCommand)
binary
- Value of this memory slot.symbolicCommand
- String that contains the corresponding
symbolic command, or an empty string ("") if there is no
representation.Method Detail |
public java.lang.String getSymbolic()
public int getBinary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |