ggencoder.datastructures
Interface NESRawCode

All Superinterfaces:
RawCode
All Known Implementing Classes:
BasicNESRawCode

public interface NESRawCode
extends RawCode

An interface to represent a RAW NES code.

Version:
1.1, 07/13/04
Author:
John David Ratliff

Method Summary
 int getCompareValue()
          Gets this code's compare value.
 boolean hasCompareValue()
          Queries if this code uses a compare value.
 void setCompareValue(int value)
          Sets this code's compare value.
 
Methods inherited from interface ggencoder.datastructures.RawCode
getAddress, getValue, setAddress, setValue
 

Method Detail

hasCompareValue

public boolean hasCompareValue()
Queries if this code uses a compare value.

Returns:
true if a compare value is used; false otherwise.

getCompareValue

public int getCompareValue()
                    throws NoCompareValueException
Gets this code's compare value.

Returns:
The compare value.
Throws:
NoCompareValueException - if no compare value is used by this code.

setCompareValue

public void setCompareValue(int value)
                     throws NoCompareValueException
Sets this code's compare value.

Parameters:
value - The new compare value.
Throws:
NoCompareValueException - f no compare value is used by this code.