graphServer.graph
Class RawPeer

java.lang.Object
  extended by graphServer.graph.RawPeer

public class RawPeer
extends java.lang.Object

RawPeer is created when a new peer comes online, the peer is given a key value as a way of indexing all peers that ever come online. The Peer's unique Identifier is their P2P traffic information ("IP:Gnutella Port")

Version:
Date: 18/07/2011
Author:
Matthew Smith

Constructor Summary
RawPeer(java.lang.String identifier)
          Keys the peer.
 
Method Summary
 java.lang.String getIdentifier()
          Gets the unique identifier of this peer ("IP:Gnutella Port")
 int getKey()
          Gets the key value (index) of this Peer
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawPeer

public RawPeer(java.lang.String identifier)
Keys the peer.

Parameters:
identifier - the peer's unique Identifier is their P2P traffic information ("IP:Gnutella Port")
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Gets the unique identifier of this peer ("IP:Gnutella Port")

Returns:
The Unique ID of this peer.

getKey

public int getKey()
Gets the key value (index) of this Peer

Returns:
The key value of this peer.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object