rice.pastry.direct.proximitygenerators
Class GenericProximityGenerator

java.lang.Object
  extended by rice.pastry.direct.proximitygenerators.GenericProximityGenerator
All Implemented Interfaces:
ProximityGenerator

public class GenericProximityGenerator
extends Object
implements ProximityGenerator


Nested Class Summary
 class GenericProximityGenerator.GNNodeRecord
           
 
Field Summary
 HashMap<Integer,Integer> assignedIndices
           
 File inFile_Matrix
           
static int MAXOVERLAYSIZE
          The number of stubs.
protected  RandomSource random
           
 
Constructor Summary
GenericProximityGenerator(Environment env, File inFile)
           
 
Method Summary
 NodeRecord generateNodeRecord()
           
 void readOverlayMatrix(float delayFactor)
           
 void setNodesPerStub(int numPerStub)
           
 void setRandom(RandomSource random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected RandomSource random

MAXOVERLAYSIZE

public static int MAXOVERLAYSIZE
The number of stubs.


assignedIndices

public HashMap<Integer,Integer> assignedIndices

inFile_Matrix

public File inFile_Matrix
Constructor Detail

GenericProximityGenerator

public GenericProximityGenerator(Environment env,
                                 File inFile)
                          throws IOException
Throws:
IOException
Method Detail

generateNodeRecord

public NodeRecord generateNodeRecord()
Specified by:
generateNodeRecord in interface ProximityGenerator

setNodesPerStub

public void setNodesPerStub(int numPerStub)

readOverlayMatrix

public void readOverlayMatrix(float delayFactor)
                       throws IOException
Throws:
IOException

setRandom

public void setRandom(RandomSource random)
Specified by:
setRandom in interface ProximityGenerator


Copyright © 2010. All Rights Reserved.