org.openflow.gui.net.protocol
Class Node

java.lang.Object
  extended by org.openflow.gui.net.protocol.Node

public class Node
extends java.lang.Object

Structure to specify a node.

Author:
David Underhill

Field Summary
 long id
          unique ID of the node (datapath ID for a switch)
 NodeType nodeType
          type of the node
static int SIZEOF
           
 
Constructor Summary
Node(java.io.DataInput in)
           
Node(NodeType nodeType, long id)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SIZEOF

public static final int SIZEOF
See Also:
Constant Field Values

nodeType

public final NodeType nodeType
type of the node


id

public final long id
unique ID of the node (datapath ID for a switch)

Constructor Detail

Node

public Node(java.io.DataInput in)
     throws java.io.IOException
Throws:
java.io.IOException

Node

public Node(NodeType nodeType,
            long id)
Method Detail

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Throws:
java.io.IOException

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object