gishur.core
Class SweepTreeItem

java.lang.Object
  |
  +--gishur.core.BasicTreeItem
        |
        +--gishur.core.StdTreeItem
              |
              +--gishur.core.SweepTreeItem

public class SweepTreeItem
extends StdTreeItem
implements SweepEvent

A TreeItem for a binary tree. It implements SweepEvent and is thus able to store SweepEvents in a tree.

Version:
1.0
Author:
Thomas Wolf
See Also:
Serialized Form

Constructor Summary
SweepTreeItem(int id, java.lang.Object key, java.lang.Object value)
          Constructor intialzing key, value and ID of this SweepTreeItem.
 
Method Summary
 int getID()
          Returns the ID of this SweepEvent.
 java.lang.String toString()
          Overrides java.lang.Object.toString().
 
Methods inherited from class gishur.core.StdTreeItem
key, setKey, setValue, value
 
Methods inherited from class gishur.core.BasicTreeItem
answerConnect, balance, child, clearConnections, clone, clone, connect, cut, equals, getOwningTree, isInner, isLeaf, isRoot, level, maxRank, nextChildPos, parent, pos, prevChildPos, rank, remove, requestTreeAccess, setBalance, setMaxRank, setOwningTree, sibling
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SweepTreeItem

public SweepTreeItem(int id,
                     java.lang.Object key,
                     java.lang.Object value)
Constructor intialzing key, value and ID of this SweepTreeItem.
Parameters:
id - the new item's ID
key - new key
value - the value to store in the item
Method Detail

toString

public java.lang.String toString()
Overrides java.lang.Object.toString().
Overrides:
toString in class StdTreeItem

getID

public int getID()
Returns the ID of this SweepEvent.
Specified by:
getID in interface SweepEvent
Returns:
the ID