it.unitn.ds.peersim.payloads
Class PhasePayload

java.lang.Object
  extended by it.unitn.ds.peersim.payloads.PhasePayload
All Implemented Interfaces:
Payload

public class PhasePayload
extends java.lang.Object
implements Payload

Distributed Systems Course Project

Year: 2009/2010

University of Trento

PhasePayload -. Class that implements the payload used in the consensus messages.

Version:
1.0
Author:
Avancini Mattia, Giampaolo Farina
See Also:
http://peersim.sourceforge.net/

Constructor Summary
PhasePayload(long round, double estimation)
          Instantiates a new phase payload.
 
Method Summary
 double getEstimation()
          Gets the estimation.
 long getRound()
          Gets the round.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhasePayload

public PhasePayload(long round,
                    double estimation)
Instantiates a new phase payload.

Parameters:
round - the round
estimation - the estimation
Method Detail

getRound

public long getRound()
Gets the round.

Returns:
the round

getEstimation

public double getEstimation()
Gets the estimation.

Specified by:
getEstimation in interface Payload
Returns:
the estimation

toString

public java.lang.String toString()
Specified by:
toString in interface Payload
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()