|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectggencoder.datastructures.AbstractRawCode
ggencoder.datastructures.BasicNESRawCode
An implementation of the NESRawCode interface.
Constructor Summary | |
BasicNESRawCode(int address,
int value)
Creates a new BasicNESRawCode object with no compare value. |
|
BasicNESRawCode(int address,
int value,
int compare)
Creates a new BasicNESRawCode object with a compare value. |
Method Summary | |
int |
getCompareValue()
Gets this code's compare value. |
boolean |
hasCompareValue()
Queries if this code uses a compare value. |
void |
setAddress(int address)
Sets the address of this code. |
void |
setCompareValue(int compare)
Sets this code's compare value. |
void |
setValue(int value)
Sets the value of this code. |
java.lang.String |
toString()
Returns a String representation of this code. |
Methods inherited from class ggencoder.datastructures.AbstractRawCode |
getAddress, getValue, toHexString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ggencoder.datastructures.RawCode |
getAddress, getValue |
Constructor Detail |
public BasicNESRawCode(int address, int value)
address
- This code's address.value
- This code's value.public BasicNESRawCode(int address, int value, int compare)
address
- This code's address.value
- This code's value.compare
- This code's compare value.Method Detail |
public boolean hasCompareValue()
hasCompareValue
in interface NESRawCode
public int getCompareValue() throws NoCompareValueException
getCompareValue
in interface NESRawCode
NoCompareValueException
- if no compare value is used by this
code.public void setCompareValue(int compare) throws NoCompareValueException
setCompareValue
in interface NESRawCode
compare
- The new compare value.
NoCompareValueException
- f no compare value is used by this
code.public void setAddress(int address)
setAddress
in interface RawCode
setAddress
in class AbstractRawCode
address
- The code's address.public void setValue(int value)
setValue
in interface RawCode
setValue
in class AbstractRawCode
value
- The code's value.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |