edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T > Class Reference

List of all members.

Detailed Description

Represents an individual node in the sorted set.

Author:
Brian Ellis


Public Member Functions

 SetNode (double key, T data)
 Constructs a node with the given key and data.
getData ()
 Returns the data for this node.
double getKey ()
 Returns the cached key for this node.
void setKey (double newKey)
 Sets the key for this node to the new key.
String toString ()
 Returns a string representation of this node.

Private Attributes

double nodeKey
 The cached key value for this node.
nodeData
 The data for this node.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.SetNode ( double  key,
data 
)

Constructs a node with the given key and data.

Parameters:
key the key
data the data


Member Function Documentation

T edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.getData (  ) 

Returns the data for this node.

Returns:
the data

double edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.getKey (  ) 

Returns the cached key for this node.

Returns:
the key

void edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.setKey ( double  newKey  ) 

Sets the key for this node to the new key.

Parameters:
newKey the new key

String edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.toString (  ) 

Returns a string representation of this node.

Useful for debugging.


Member Data Documentation

double edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.nodeKey [private]

The cached key value for this node.

T edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.nodeData [private]

The data for this node.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:18 2007 for CALO by  doxygen 1.5.2