it.unitn.ds.peersim.payloads
Class DecidePayload

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

public class DecidePayload
extends java.lang.Object
implements Payload

Distributed Systems Course Project

Year: 2009/2010

University of Trento

DecidePayload - Class that implements the DecidePayload used in the consensus messages.

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

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

Constructor Detail

DecidePayload

public DecidePayload(double estimation)
Instantiates a new decide payload.

Parameters:
estimation - the estimation
Method Detail

getEstimation

public double getEstimation()
Description copied from interface: Payload
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()