rice.pastry.direct.proximitygenerators
Class GenericProximityGenerator
java.lang.Object
rice.pastry.direct.proximitygenerators.GenericProximityGenerator
- All Implemented Interfaces:
- ProximityGenerator
public class GenericProximityGenerator
- extends java.lang.Object
- implements ProximityGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
random
protected RandomSource random
MAXOVERLAYSIZE
public static int MAXOVERLAYSIZE
- The number of stubs.
assignedIndices
public java.util.HashMap<java.lang.Integer,java.lang.Integer> assignedIndices
inFile_Matrix
public java.io.File inFile_Matrix
GenericProximityGenerator
public GenericProximityGenerator(Environment env,
java.io.File inFile)
throws java.io.IOException
- Throws:
java.io.IOException
generateNodeRecord
public NodeRecord generateNodeRecord()
- Specified by:
generateNodeRecord
in interface ProximityGenerator
setNodesPerStub
public void setNodesPerStub(int numPerStub)
readOverlayMatrix
public void readOverlayMatrix(float delayFactor)
throws java.io.IOException
- Throws:
java.io.IOException
setRandom
public void setRandom(RandomSource random)
- Specified by:
setRandom
in interface ProximityGenerator
Copyright © 2001-2005 - Rice Pastry.