org.openflow.gui.net.protocol
Class FlowHop

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

public class FlowHop
extends java.lang.Object

A hop that a flow goes through.

Author:
David Underhill

Field Summary
 short inport
          the incoming port
 Node node
          the node the flow goes through for this hop
 short outport
          the outgoing port
static int SIZEOF
           
 
Constructor Summary
FlowHop(short inport, Node n, short outport)
          create a new IDPortPair
 
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

inport

public final short inport
the incoming port


node

public final Node node
the node the flow goes through for this hop


outport

public final short outport
the outgoing port

Constructor Detail

FlowHop

public FlowHop(short inport,
               Node n,
               short outport)
create a new IDPortPair

Method Detail

write

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

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

toString

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