peersim.cdsim
Class NextCycle

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

public class NextCycle
extends FullNextCycle

It generalizes its superclass so that the list of protocols to run can be specified. The superclass (FullNextCycle) always runs all the CDProtocols.


Parameter Summary
protocol
          Gives the list of protocols (whitespace separated) that need to be iterated over.
 
Field Summary
 
Fields inherited from class peersim.cdsim.FullNextCycle
getpair_rand, protSchedules, rperm, shuffle
 
Constructor Summary
NextCycle(java.lang.String prefix)
          reads configuration parameters and the Schedulers.
 
Method Summary
 boolean execute()
          Execute the configured protocols on all nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

protocol

Gives the list of protocols (whitespace separated) that need to be iterated over.

Constructor Detail

NextCycle

public NextCycle(java.lang.String prefix)
reads configuration parameters and the Schedulers.

Method Detail

execute

public boolean execute()
Execute the configured protocols on all nodes. It works exactly as FullNextCycle.execute(), only just the configured protocols are iterated over.

Specified by:
execute in interface Control
Overrides:
execute in class FullNextCycle
Returns:
always false