example.aggregation
Class PeakDistributionInitializer

java.lang.Object
  extended by example.aggregation.PeakDistributionInitializer
All Implemented Interfaces:
Control

public class PeakDistributionInitializer
extends java.lang.Object
implements Control

Initialize an aggregation protocol using a peak distribution; only one peak is allowed. Note that any protocol implementing SingleValue can be initialized by this component.


Parameter Summary
value
          The load at the peak node.
protocol
          The protocol to operate on.
 
Constructor Summary
PeakDistributionInitializer(java.lang.String prefix)
          Creates a new instance and read parameters from the config file.
 
Method Summary
 boolean execute()
          Initialize an aggregation protocol using a peak distribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

value

The load at the peak node.


protocol

The protocol to operate on.

Constructor Detail

PeakDistributionInitializer

public PeakDistributionInitializer(java.lang.String prefix)
Creates a new instance and read parameters from the config file.

Method Detail

execute

public boolean execute()
Initialize an aggregation protocol using a peak distribution. That is, one node will get the peek value, the others zero.

Specified by:
execute in interface Control
Returns:
always false