All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnet.NodeId

java.lang.Object
   |
   +----vnet.NodeId

public class NodeId
extends Object
implements Serializable
Class to represent a node identity

Version:
0.2, august-1997
Author:
LuisM Pena
See Also:
NetNode

Constructor Index

 o NodeId(String)

Method Index

 o equals(Object)
 o getId()
 o hashCode()
 o toString()

Constructors

 o NodeId
 public NodeId(String id) throws VNException
Parameters:
id - the string representing the node. Any letter between A and P is valid
Throws: VNException
if the string is not valid

Methods

 o equals
 public boolean equals(Object element)
Parameters:
element - other NodeId to be compared to
Returns:
true if bot have the same identity
Overrides:
equals in class Object
 o hashCode
 public int hashCode()
Returns:
a valid hash code
Overrides:
hashCode in class Object
 o toString
 public String toString()
Returns:
a printable form of the NodeId
Overrides:
toString in class Object
 o getId
 public int getId()
Returns:
the identity

All Packages  Class Hierarchy  This Package  Previous  Next  Index