computer
Class Data

java.lang.Object
  extended by computer.Data
All Implemented Interfaces:
Code

public class Data
extends java.lang.Object
implements Code

Represents data cells in the memory of the toy computer. Holds a single double value. We depend on auto-boxing of Java 5 here as the typical use is double, not Double.

Author:
jbergin

Field Summary
private  java.lang.Double data
           
 
Constructor Summary
Data(java.lang.Double d)
          Create a data cell holding a double that may be inserted into the memory
 
Method Summary
 java.lang.Double value()
          Retrieve the double value of this cell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private java.lang.Double data
Constructor Detail

Data

public Data(java.lang.Double d)
Create a data cell holding a double that may be inserted into the memory

Parameters:
d -
Method Detail

value

public java.lang.Double value()
Retrieve the double value of this cell

Returns:
the double value