ggencoder.datastructures
Class BasicSNESRawCode

java.lang.Object
  extended byggencoder.datastructures.AbstractRawCode
      extended byggencoder.datastructures.BasicSNESRawCode
All Implemented Interfaces:
RawCode, SNESRawCode

public class BasicSNESRawCode
extends AbstractRawCode
implements SNESRawCode

An implementation of the SNESRawCode interface.

Version:
1.2, 07/14/04
Author:
John David Ratliff

Constructor Summary
BasicSNESRawCode(int address, int value)
          Creates a new BasicSNESRawCode object.
 
Method Summary
 void setAddress(int address)
          Sets the address of this code.
 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

BasicSNESRawCode

public BasicSNESRawCode(int address,
                        int value)
Creates a new BasicSNESRawCode object.

Parameters:
address - The code's address.
value - The code's value.
Method Detail

setValue

public void setValue(int value)
Sets the value of this code.

Specified by:
setValue in interface RawCode
Overrides:
setValue in class AbstractRawCode
Parameters:
value - The code's value.

setAddress

public void setAddress(int address)
Sets the address of this code.

Specified by:
setAddress in interface RawCode
Overrides:
setAddress in class AbstractRawCode
Parameters:
address - The code's address.

toString

public java.lang.String toString()
Returns a String representation of this code.

Returns:
A String representation.