bamboo.vivaldi
Class VivaldiAddSample

java.lang.Object
  extended by bamboo.vivaldi.VivaldiAddSample
All Implemented Interfaces:
QueueElementIF

public class VivaldiAddSample
extends Object
implements QueueElementIF

Adds a latency sample to the Vivaldi's virtual coordinate calculation. A sample is composed of two elements -- the virtual coordinate at the remote node, and the latency measurement between the local and remote nodes.

Other stages can dispatch this message to add measurements to the local node's virtual coordinate stored in the Vivaldi stage.

Version:
$Id: VivaldiAddSample.java,v 1.1 2004/03/04 21:22:20 czerwin Exp $
Author:
Steven Czerwinski

Field Summary
 double latency_ms
          The one way latency betwen the local node and the remote node (milliseconds).
 VirtualCoordinate remote_coordinate
          The virtual coordinate of the remote node.
 
Constructor Summary
VivaldiAddSample(VirtualCoordinate coordinate, double latency_ms)
          Constructs a message containing a single latency/coordinate sample.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remote_coordinate

public VirtualCoordinate remote_coordinate
The virtual coordinate of the remote node.


latency_ms

public double latency_ms
The one way latency betwen the local node and the remote node (milliseconds).

Constructor Detail

VivaldiAddSample

public VivaldiAddSample(VirtualCoordinate coordinate,
                        double latency_ms)
Constructs a message containing a single latency/coordinate sample.

Parameters:
coordinate - The current virtual coordinate at the remote node.
latency - The one way latency between the local and remote node in milliseconds.