Rice Pastry API

rice.pastry.direct
Class EuclideanNetwork

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

public class EuclideanNetwork
extends BasicNetworkSimulator

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

Version:
$Id: EuclideanNetwork.java 3524 2007-01-09 14:09:27Z jeffh $
Author:
Andrew Ladd, Rongmei Zhang

Field Summary
 
Fields inherited from class rice.pastry.direct.BasicNetworkSimulator
logger, manager, maxDiameter, MIN_DELAY, minDelay, random
 
Constructor Summary
EuclideanNetwork(Environment env)
          Constructor.
 
Method Summary
 NodeRecord generateNodeRecord()
          Generates a random node record
 
Methods inherited from class rice.pastry.direct.BasicNetworkSimulator
addSimulatorListener, deliverMessage, deliverMessage, deliverMessage, deliverMessageFixedRate, destroy, enqueueDelivery, getClosest, getEnvironment, getTestRecord, isAlive, networkDelay, notifySimulatorListeners, proximity, registerNode, removeNode, removeSimulatorListener, setFullSpeed, setMaxSpeed, setTestRecord, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EuclideanNetwork

public EuclideanNetwork(Environment env)
Constructor.

Method Detail

generateNodeRecord

public NodeRecord generateNodeRecord()
Description copied from interface: NetworkSimulator
Generates a random node record

Returns:

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection