peersim.cdsim
Class Shuffle

java.lang.Object
  extended by peersim.cdsim.Shuffle
All Implemented Interfaces:
Control

public class Shuffle
extends java.lang.Object
implements Control

Shuffles the network. After shuffling, the order in which the nodes are iterated over during a cycle of a cycle driven simulation will be random. It has an effect only in cycle driven simulations.


Constructor Summary
Shuffle(java.lang.String prefix)
          Does nothing.
 
Method Summary
 boolean execute()
          Calls Network.shuffle().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shuffle

public Shuffle(java.lang.String prefix)
Does nothing.

Method Detail

execute

public final boolean execute()
Calls Network.shuffle(). As a result, the order in which the nodes are iterated over during a cycle of a cycle driven simulation will be random. It has an effect only in cycle driven simulations.

Specified by:
execute in interface Control
Returns:
true if the simulation has to be stopped, false otherwise.