Query Cycle Simulator HEADER

qcsim.net.util
Class PeerMsgTrust

java.lang.Object
  |
  +--qcsim.net.util.PeerMsgTrust
All Implemented Interfaces:
PeerMessage

public class PeerMsgTrust
extends java.lang.Object
implements PeerMessage

Message that contains the trust that Peer sourceAddress has of Peer destAddress.

Version:
1.0
Author:
Sepandar Kamvar

Field Summary
 
Fields inherited from interface qcsim.net.util.PeerMessage
MSG_QUERY, MSG_QUERYRESPONSE, MSG_REQUESTDOWNLOAD, MSG_REQUESTTRUST, MSG_TRUST
 
Constructor Summary
PeerMsgTrust(double weightedTrustValue)
          Constructor
PeerMsgTrust(PeerMsgTrust msg)
          Copy constructor
 
Method Summary
 int type()
           
 double weightedTrustValue()
          The weighted trust value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerMsgTrust

public PeerMsgTrust(double weightedTrustValue)
Constructor

Parameters:
weightedTrustValue - trust value from peer

PeerMsgTrust

public PeerMsgTrust(PeerMsgTrust msg)
Copy constructor

Parameters:
msg - the message.
Method Detail

type

public int type()
Specified by:
type in interface PeerMessage

weightedTrustValue

public double weightedTrustValue()
The weighted trust value

Returns:
trust value.

Query Cycle Simulator HEADER