Rice Pastry API

rice.pastry.direct
Class SphereNetwork

java.lang.Object
  extended by rice.pastry.direct.BasicNetworkSimulator
      extended by rice.pastry.direct.SphereNetwork
All Implemented Interfaces:
NetworkSimulator

public class SphereNetwork
extends BasicNetworkSimulator

Sphere network topology and idealized node life. Emulates a network of nodes that are randomly placed on a sphere. Proximity is based on euclidean distance on the sphere.

Version:
$Id: SphereNetwork.java 3405 2006-09-14 13:21:33Z jeffh $
Author:
Y. Charlie Hu, Rongmei Zhang

Field Summary
 
Fields inherited from class rice.pastry.direct.BasicNetworkSimulator
logger, manager, maxDiameter, MIN_DELAY, minDelay, random
 
Constructor Summary
SphereNetwork(Environment env)
          Constructor.
 
Method Summary
 NodeRecord generateNodeRecord()
          DESCRIBE THE METHOD
static void main(java.lang.String[] argz)
          The main program for the SphereNetwork class
 void test()
          A unit test for JUnit
 
Methods inherited from class rice.pastry.direct.BasicNetworkSimulator
deliverMessage, deliverMessage, deliverMessage, deliverMessageFixedRate, destroy, enqueueDelivery, getClosest, getEnvironment, getTestRecord, isAlive, networkDelay, proximity, registerNode, removeNode, setTestRecord, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphereNetwork

public SphereNetwork(Environment env)
Constructor.

Parameters:
env - DESCRIBE THE PARAMETER
Method Detail

generateNodeRecord

public NodeRecord generateNodeRecord()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

test

public void test()
A unit test for JUnit


main

public static void main(java.lang.String[] argz)
The main program for the SphereNetwork class

Parameters:
argz - The command line arguments

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.