gishur.core
Class SweepTreeItem

java.lang.Object
  |
  +--gishur.core.BasicTreeItem
        |
        +--gishur.core.StdTreeItem
              |
              +--gishur.core.SweepTreeItem
All Implemented Interfaces:
java.lang.Cloneable, Cloneable, ControlledCloneable, KeyValueHolder, java.io.Serializable, SweepEvent, TreeItem

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

Fields inherited from interface gishur.core.KeyValueHolder
SET_KEY, SET_VALUE
 
Fields inherited from interface gishur.core.TreeItem
CLEAR_CONNECTIONS, CONNECT, CONNECT_PARENT, LAST_CHILD, LEFT, PARENT, REMOVE, RIGHT, SET_BALANCE, SET_MAX_RANK, SET_OWNER, UNKNOWN
 
Fields inherited from interface gishur.core.ControlledCloneable
DEEP, FLAT
 
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
 
Methods inherited from interface gishur.core.KeyValueHolder
key, setKey, setValue, value
 

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