|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.testing.LeafSetTest
This class tests the correctness of the leafset in Pastry.
Nested Class Summary | |
static class |
LeafSetTest.TestNodeHandle
DESCRIBE THE CLASS |
Field Summary | |
protected NodeIdFactory |
factory
DESCRIBE THE FIELD |
protected RandomSource |
random
DESCRIBE THE FIELD |
Constructor Summary | |
LeafSetTest()
Constructor for LeafSetTest. |
Method Summary | |
protected int |
abs(int x)
DESCRIBE THE METHOD |
protected void |
assertTrue(java.lang.String intention,
boolean test)
Throws an exception if the test condition is not met. |
protected LeafSet |
generateLeafSet(int size,
int nodes,
boolean crossover)
Returns a leafset of size size out of a network with the specified number of nodes |
static void |
main(java.lang.String[] args)
DESCRIBE THE METHOD |
protected int |
min(int x,
int y)
DESCRIBE THE METHOD |
void |
start()
DESCRIBE THE METHOD |
void |
testCumulativeRange()
A unit test for JUnit |
void |
testNonCumulativeRange()
A unit test for JUnit |
void |
testObservers()
A unit test for JUnit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected NodeIdFactory factory
protected RandomSource random
Constructor Detail |
public LeafSetTest()
Method Detail |
public void start()
public void testObservers()
protected final void assertTrue(java.lang.String intention, boolean test)
intention
- DESCRIBE THE PARAMETERtest
- DESCRIBE THE PARAMETERprotected int min(int x, int y)
x
- DESCRIBE THE PARAMETERy
- DESCRIBE THE PARAMETER
protected int abs(int x)
x
- DESCRIBE THE PARAMETER
public void testCumulativeRange()
public void testNonCumulativeRange()
protected LeafSet generateLeafSet(int size, int nodes, boolean crossover)
size
- The size of the leaf setnodes
- The number of nodes in the networkcrossover
- Whether the leafset must cross over the '0' boundary not
public static void main(java.lang.String[] args)
args
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |