peersim.vector
Class LinearDistribution

java.lang.Object
  extended by peersim.vector.VectControl
      extended by peersim.vector.LinearDistribution
All Implemented Interfaces:
Control

public class LinearDistribution
extends VectControl

Initializes a protocol vector with values in the range ["min", "max"] (inclusive both ends), linearly increasing.

See Also:
VectControl, peersim.vector

Parameter Summary
max
          Upper end of the interval..
min
          Lower end of the interval.
 
Parameters inherited from class peersim.vector.VectControl
protocol, setter, getter
 
Field Summary
 
Fields inherited from class peersim.vector.VectControl
getter, setter
 
Constructor Summary
LinearDistribution(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 boolean execute()
          Initializes a protocol vector with values in the range ["min", "max"] (inclusive both ends), linearly increasing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

max

Upper end of the interval..


min

Lower end of the interval. Defaults to -"max".

Constructor Detail

LinearDistribution

public LinearDistribution(java.lang.String prefix)
Standard constructor that reads the configuration parameters. Invoked by the simulation engine.

Parameters:
prefix - the configuration prefix for this class
Method Detail

execute

public boolean execute()
Initializes a protocol vector with values in the range ["min", "max"] (inclusive both ends), linearly increasing.

Returns:
always false