net.obsearch.example
Class TreePivotable

java.lang.Object
  extended by net.obsearch.example.TreePivotable
All Implemented Interfaces:
Pivotable<OBSlice>

public class TreePivotable
extends Object
implements Pivotable<OBSlice>

A class that determines if a tree can be used as a pivot based on the tree's size.

Since:
0.8
Author:
Arnoldo Jose Muller Molina

Constructor Summary
TreePivotable()
           
 
Method Summary
 boolean canBeUsedAsPivot(OBSlice object)
          Returns true if the given object can be used as a pivot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreePivotable

public TreePivotable()
Method Detail

canBeUsedAsPivot

public boolean canBeUsedAsPivot(OBSlice object)
                         throws OBException
Description copied from interface: Pivotable
Returns true if the given object can be used as a pivot.

Specified by:
canBeUsedAsPivot in interface Pivotable<OBSlice>
Returns:
Returns true if the given tree is within some distance range.
Throws:
OBException - If something goes wrong


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.