bamboo.vivaldi
Class VivaldiReplyVC

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

public class VivaldiReplyVC
extends Object
implements QueueElementIF

The reply message sent giving the local node's current virtual coordinate. This is sent in response to a VivaldiRequestVC message.

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

Field Summary
 VirtualCoordinate coordinate
          The current value of the local node's virtual coordinate.
 int samples
          The number of latency samples that have been used to calculate this virtual coordinate.
 Object user_data
          The callback object as specified by the VivaldiRequestVC.
 
Constructor Summary
VivaldiReplyVC(VirtualCoordinate coordinate, int samples, Object user_data)
          Constructs the reply.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user_data

public Object user_data
The callback object as specified by the VivaldiRequestVC.


coordinate

public VirtualCoordinate coordinate
The current value of the local node's virtual coordinate.


samples

public int samples
The number of latency samples that have been used to calculate this virtual coordinate.

Constructor Detail

VivaldiReplyVC

public VivaldiReplyVC(VirtualCoordinate coordinate,
                      int samples,
                      Object user_data)
Constructs the reply.

Parameters:
coordinate - The virtual coordinate.
samples - The number of samples used to calculate the coordinate.
user_data - The user-specified object included in the request.