edu.vt.marian.search
Class InsertionOrderWtdObjTableTester

java.lang.Object
  |
  +--edu.vt.marian.search.InsertionOrderWtdObjTableTester

public class InsertionOrderWtdObjTableTester
extends java.lang.Object

Test wrapper for InsertionOrderWtdObjTable class

See Also:
InsertionOrderWtdObjTable, WtdObjTable, Hashtable, Debug

Constructor Summary
InsertionOrderWtdObjTableTester(edu.vt.marian.common.Debug debug)
           
 
Method Summary
 boolean test(int tableSize)
          Perform all tests.
 int testInsert(int numObjs)
          Test insertion of N random WtdObjs into test table
 int testIterate()
          Test iteration through the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertionOrderWtdObjTableTester

public InsertionOrderWtdObjTableTester(edu.vt.marian.common.Debug debug)
Method Detail

testInsert

public int testInsert(int numObjs)
Test insertion of N random WtdObjs into test table
Parameters:
numObjs - number of random weighted objects to be inserted into table
Returns:
number of objects successfully inserted into table

testIterate

public int testIterate()
Test iteration through the table
Returns:
number of elements successfully iterated through

test

public boolean test(int tableSize)
Perform all tests.
Parameters:
tableSize - number of random test weighted objects in table
Returns:
true if all tests pass; false otherwise