de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.deliclu
Class DeLiCluDirectoryEntry

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.tree.AbstractDirectoryEntry
      extended by de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialDirectoryEntry
          extended by de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.deliclu.DeLiCluDirectoryEntry
All Implemented Interfaces:
SpatialComparable, DirectoryEntry, Entry, DeLiCluEntry, SpatialEntry, Externalizable, Serializable

public class DeLiCluDirectoryEntry
extends SpatialDirectoryEntry
implements DeLiCluEntry

Defines the requirements for a directory entry in an DeLiClu-Tree node. Additionally to a directory entry in an R*-Tree two boolean flags that indicate whether this entry's node contains handled or unhandled data objects.

See Also:
Serialized Form

Field Summary
private  boolean hasHandled
          Indicates that the node (or its child nodes) which is represented by this entry contains handled data objects.
private  boolean hasUnhandled
          Indicates that the node (or its child nodes) which is represented by this entry contains unhandled data objects.
private static long serialVersionUID
           
 
Constructor Summary
DeLiCluDirectoryEntry()
          Empty constructor for serialization purposes.
DeLiCluDirectoryEntry(int id, HyperBoundingBox mbr, boolean hasHandled, boolean hasUnhandled)
          Constructs a new DeLiCluDirectoryEntry object with the given parameters.
 
Method Summary
 boolean hasHandled()
          Returns true, if the node (or its child nodes) which is represented by this entry contains handled data objects.
 boolean hasUnhandled()
          Returns true, if the node (or its child nodes) which is represented by this entry contains unhandled data objects.
 void setHasHandled(boolean hasHandled)
          Sets the flag to marks the node (or its child nodes) which is represented by this entry to contain handled data objects.
 void setHasUnhandled(boolean hasUnhandled)
          Sets the flag to marks the node (or its child nodes) which is represented by this entry to contain unhandled data objects.
 String toString()
          Returns the id as a string representation of this entry.
 
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialDirectoryEntry
getDimensionality, getMax, getMin, readExternal, setMBR, writeExternal
 
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractDirectoryEntry
equals, getEntryID, getPageID, hashCode, isLeafEntry
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry
isLeafEntry
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface de.lmu.ifi.dbs.elki.data.spatial.SpatialComparable
getDimensionality, getMax, getMin
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

hasHandled

private boolean hasHandled
Indicates that the node (or its child nodes) which is represented by this entry contains handled data objects.


hasUnhandled

private boolean hasUnhandled
Indicates that the node (or its child nodes) which is represented by this entry contains unhandled data objects.

Constructor Detail

DeLiCluDirectoryEntry

public DeLiCluDirectoryEntry()
Empty constructor for serialization purposes.


DeLiCluDirectoryEntry

public DeLiCluDirectoryEntry(int id,
                             HyperBoundingBox mbr,
                             boolean hasHandled,
                             boolean hasUnhandled)
Constructs a new DeLiCluDirectoryEntry object with the given parameters.

Parameters:
id - the unique id of the underlying spatial node
mbr - the minimum bounding rectangle of the underlying spatial node
hasHandled - indicates if this entry has handled nodes
hasUnhandled - indicates if this entry has unhandled nodes
Method Detail

hasHandled

public boolean hasHandled()
Description copied from interface: DeLiCluEntry
Returns true, if the node (or its child nodes) which is represented by this entry contains handled data objects.

Specified by:
hasHandled in interface DeLiCluEntry
Returns:
true, if the node (or its child nodes) which is represented by this entry contains handled data objects, false otherwise.

hasUnhandled

public boolean hasUnhandled()
Description copied from interface: DeLiCluEntry
Returns true, if the node (or its child nodes) which is represented by this entry contains unhandled data objects.

Specified by:
hasUnhandled in interface DeLiCluEntry
Returns:
true, if the node (or its child nodes) which is represented by this entry contains unhandled data objects, false otherwise.

setHasHandled

public void setHasHandled(boolean hasHandled)
Description copied from interface: DeLiCluEntry
Sets the flag to marks the node (or its child nodes) which is represented by this entry to contain handled data objects.

Specified by:
setHasHandled in interface DeLiCluEntry
Parameters:
hasHandled - the flag to be set

setHasUnhandled

public void setHasUnhandled(boolean hasUnhandled)
Description copied from interface: DeLiCluEntry
Sets the flag to marks the node (or its child nodes) which is represented by this entry to contain unhandled data objects.

Specified by:
setHasUnhandled in interface DeLiCluEntry
Parameters:
hasUnhandled - the flag to be set

toString

public String toString()
Returns the id as a string representation of this entry.

Overrides:
toString in class AbstractDirectoryEntry
Returns:
a string representation of this entry

Release 0.4.0 (2011-09-20_1324)