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
-
NodeId(String)
-
-
equals(Object)
-
-
getId()
-
-
hashCode()
-
-
toString()
-
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
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
hashCode
public int hashCode()
- Returns:
- a valid hash code
- Overrides:
- hashCode in class Object
toString
public String toString()
- Returns:
- a printable form of the NodeId
- Overrides:
- toString in class Object
getId
public int getId()
- Returns:
- the identity
All Packages Class Hierarchy This Package Previous Next Index