edu.cornell.cs.sam.core
Class Memory.Data

java.lang.Object
  extended by edu.cornell.cs.sam.core.Memory.Data
Enclosing interface:
Memory

public static class Memory.Data
extends java.lang.Object

Represents memory data


Constructor Summary
Memory.Data(int value, Memory.Type type)
          Create a new memory data object
 
Method Summary
 Memory.Type getType()
          Returns the type of this data object
 int getValue()
          Returns the value of this data object as stored in memory
 java.lang.String toString()
          Returns a descriptive string of this data object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Memory.Data

public Memory.Data(int value,
                   Memory.Type type)
Create a new memory data object

Parameters:
value - The value
type - The type
Method Detail

getValue

public int getValue()
Returns the value of this data object as stored in memory

Returns:
The value as raw memory data

getType

public Memory.Type getType()
Returns the type of this data object

Returns:
The object type

toString

public java.lang.String toString()
Returns a descriptive string of this data object

Overrides:
toString in class java.lang.Object
Returns:
The string representation of this data object