ggencoder.datastructures
Class BasicGenesisRawCode

java.lang.Object
  extended byggencoder.datastructures.AbstractRawCode
      extended byggencoder.datastructures.BasicGenesisRawCode
All Implemented Interfaces:
GenesisRawCode, RawCode

public class BasicGenesisRawCode
extends AbstractRawCode
implements GenesisRawCode

An implementation of the GenesisRawCode interface.

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

Constructor Summary
BasicGenesisRawCode(int address, int value)
          Creates a new BasicGenesisRawCode 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

BasicGenesisRawCode

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

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

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.

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.

toString

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

Returns:
A String representation.