org.openflow.gui.net.protocol
Class Link

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

public class Link
extends java.lang.Object

Structure to specify a link.

Author:
David Underhill

Field Summary
 Node dstNode
          destination node
 short dstPort
          port number of the link is connected to on the destination switch
 LinkType linkType
          type of the link
static int SIZEOF
           
 Node srcNode
          source node
 short srcPort
          port number on the source switch
 
Constructor Summary
Link(java.io.DataInput in)
           
Link(LinkType linkType, Node srcNode, short srcPort, Node dstNode, short dstPort)
           
 
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

linkType

public final LinkType linkType
type of the link


srcNode

public final Node srcNode
source node


srcPort

public final short srcPort
port number on the source switch


dstNode

public final Node dstNode
destination node


dstPort

public final short dstPort
port number of the link is connected to on the destination switch

Constructor Detail

Link

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

Link

public Link(LinkType linkType,
            Node srcNode,
            short srcPort,
            Node dstNode,
            short dstPort)
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