ePOST 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 2919 2006-01-16 12:54:15Z jeffh $
Author:
Andrew Ladd, Rongmei Zhang

Field Summary
 
Fields inherited from class rice.pastry.direct.BasicNetworkSimulator
logger, manager, MIN_DELAY, random, taskQueue
 
Constructor Summary
EuclideanNetwork(Environment env)
          Constructor.
 
Method Summary
 NodeRecord generateNodeRecord()
          Generates a random node record
 
Methods inherited from class rice.pastry.direct.BasicNetworkSimulator
deliverMessage, deliverMessage, deliverMessage, deliverMessageFixedRate, destroy, getClosest, getEnvironment, getTestRecord, isAlive, 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

EuclideanNetwork

public EuclideanNetwork(Environment env)
Constructor.

Method Detail

generateNodeRecord

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

Returns:

ePOST API

Copyright © 2001-2005 - Rice Pastry.