peersim.pastry
Class TrafficGenerator

java.lang.Object
  extended by peersim.pastry.TrafficGenerator
All Implemented Interfaces:
peersim.core.Control

public class TrafficGenerator
extends java.lang.Object
implements peersim.core.Control

This "test" control generates random traffic between random nodes (source and destination). It was created for test and statistical analysis purpose

Title: MSPASTRY

Description: MsPastry implementation for PeerSim

Copyright: Copyright (c) 2007

Company: The Pastry Group


Constructor Summary
TrafficGenerator(java.lang.String prefix)
           
 
Method Summary
 boolean execute()
          every call of this control generates and send a random lookup message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrafficGenerator

public TrafficGenerator(java.lang.String prefix)
Method Detail

execute

public boolean execute()
every call of this control generates and send a random lookup message

Specified by:
execute in interface peersim.core.Control
Returns:
boolean