peersim.vector
Class VectControl

java.lang.Object
  extended by peersim.vector.VectControl
All Implemented Interfaces:
Control
Direct Known Subclasses:
InitVectFromFile, LinearDistribution, Normalizer, PeakDistribution, UniformDistribution, ValueDumper, VectCopy, VectorObserver

public abstract class VectControl
extends java.lang.Object
implements Control

Serves as an abstract superclass for Controls that deal with vectors. It reads a Setter to be used by extending classes.


Parameter Summary
protocol
          The protocol to operate on.
setter
          The setter method used to set values in the protocol instances.
getter
          The getter method used to obtain the protocol values.
 
Field Summary
protected  Getter getter
          The getter to be used to read a vector.
protected  Setter setter
          The setter to be used to write a vector.
 
Constructor Summary
protected VectControl(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface peersim.core.Control
execute
 

Parameter Detail

protocol

The protocol to operate on.


setter

The setter method used to set values in the protocol instances. Defaults to setValue (for backward compatibility with previous implementation of this class, that were based on the SingleValue interface). Refer to the vector package description for more information about getters and setters.


getter

The getter method used to obtain the protocol values. Defaults to getValue (for backward compatibility with previous implementation of this class, that were based on the SingleValue interface). Refer to the vector package description for more information about getters and setters.

Field Detail

setter

protected final Setter setter
The setter to be used to write a vector.


getter

protected final Getter getter
The getter to be used to read a vector.

Constructor Detail

VectControl

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

Parameters:
prefix - the configuration prefix for this class