peersim.pastry
Class Turbulence

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

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

Turbulcen class is only for test/statistical purpose. This Contro provides the oscillating of the network, allowing that every execution of it will result in a node adding or a node failure. The probabilities are configurabily from the parameters p_idle, p_add, p_rem
- p_idle (default = 0) state the probability that the current execution does nothing (i.e. no adding and no failures).
- p_add (default = 0.5): states the probability that (id this execution is going to do something : see p_idle parameter) this execution will result in a join request of a new created node - p_rem (deafult = 1-p_add, i.e. default = 0.5): states the probability that (id this execution is going to do something : see p_idle parameter) this execution will result in a failure of an existing node.
p_add and p_rem are mutually exclusive, only one of them can should be specified, the other is calculated by performing the negation (1-p). If both are specified, p_add has precedence. To all probabilities must be assigned value in the real range [0..1]

Other parameters:
- maxsize (default: infinite): state that no more than this node can be added. if this limit is reached, this execution does not perform any operation
- minsize (default: 1): state that no less than this node can be removed. if this limit is reached, this execution does not perform any operation

Title: MSPASTRY

Description: MsPastry implementation for PeerSim

Copyright: Copyright (c) 2007

Company: The Pastry Group


Field Summary
protected  peersim.dynamics.NodeInitializer[] inits
          node initializers to apply on the newly added nodes
 
Constructor Summary
Turbulence(java.lang.String prefix)
           
 
Method Summary
 boolean add()
           
 boolean execute()
           
 boolean rem()
           
 void sortNet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inits

protected peersim.dynamics.NodeInitializer[] inits
node initializers to apply on the newly added nodes

Constructor Detail

Turbulence

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

sortNet

public void sortNet()

add

public boolean add()

rem

public boolean rem()

execute

public boolean execute()
Specified by:
execute in interface peersim.core.Control