P2PWNC
Class P2PWNCRREQMsgInfo

java.lang.Object
  extended byP2PWNC.P2PWNCRREQMsgInfo

class P2PWNCRREQMsgInfo
extends java.lang.Object

This class represents a P2PWNC RREQ protocol message. It includes the service provider's public key and the (next) receipt weight.

Version:
0.0.1
Author:
Pantelis Frangoudis, Elias Efstathiou

Field Summary
protected  P2PWNCKey providerKey
          Service provider's public key.
protected  int weight
          Weight of the next receipt.
 
Constructor Summary
(package private) P2PWNCRREQMsgInfo(P2PWNCKey key, int weight)
          Constructs a P2PWNCRREQMsgInfo object with the specified provider key and weight field values.
 
Method Summary
 P2PWNCKey getProviderKey()
          Returns the public key of the service provider of a P2PWNCRREQMsgInfo object.
 int getWeight()
          Returns the value of the weight field of a P2PWNCRREQMsgInfo object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providerKey

protected P2PWNCKey providerKey
Service provider's public key.


weight

protected int weight
Weight of the next receipt. Namely, this is the value of the "weight" field of an RREQ message. Its meaning is that the provider wishes that the consumer will acknowledge that she has consumed service of "weight" bytes during a session.

Constructor Detail

P2PWNCRREQMsgInfo

P2PWNCRREQMsgInfo(P2PWNCKey key,
                  int weight)
Constructs a P2PWNCRREQMsgInfo object with the specified provider key and weight field values.

Parameters:
key - P2PWNCKey The public key of the service provider.
weight - int The receipt weight.
Method Detail

getProviderKey

public P2PWNCKey getProviderKey()
Returns the public key of the service provider of a P2PWNCRREQMsgInfo object.

Returns:
P2PWNCKey

getWeight

public int getWeight()
Returns the value of the weight field of a P2PWNCRREQMsgInfo object.

Returns:
int