peer2me.network
Class NetworkNode

java.lang.Object
  extended by peer2me.network.NetworkNode
Direct Known Subclasses:
BluetoothNode

public abstract class NetworkNode
extends java.lang.Object

The is an abstract class used to represent a node with network specific information. Should be extended by the class representing the networktechnology. I.e. BluetoothNode extends this class.

Author:
Tommy Bjoernsgaard

Constructor Summary
NetworkNode()
           
 
Method Summary
 java.lang.String getAddress()
          Gets the address of the networknode
 java.lang.String getConnectionURL()
          Gets the connection url of the networknode
 java.lang.String getName()
          Gets the name of the networknode
 java.lang.Object getObject()
          Gets the universal object for the networknode
abstract  java.lang.String toString()
          The class that inherits this class should override the default toString(), making the output more friendly
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkNode

public NetworkNode()
Method Detail

getName

public java.lang.String getName()
Gets the name of the networknode

Returns:
the name

getAddress

public java.lang.String getAddress()
Gets the address of the networknode

Returns:
the address

getConnectionURL

public java.lang.String getConnectionURL()
Gets the connection url of the networknode

Returns:
the connection url

getObject

public java.lang.Object getObject()
Gets the universal object for the networknode

Returns:
the object

toString

public abstract java.lang.String toString()
The class that inherits this class should override the default toString(), making the output more friendly

Overrides:
toString in class java.lang.Object