org.openflow.gui.net.protocol
Class Flow

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

public class Flow
extends java.lang.Object

Structure to describe a flow.

Author:
David Underhill

Field Summary
 Node dstNode
           
 short dstPort
           
 int id
          flow identifier
 FlowHop[] path
          the flow's path from source to destination (inclusive)
 Node srcNode
           
 short srcPort
           
 FlowType type
          type of flow
 
Constructor Summary
Flow(FlowType type, int id, Node srcNode, short srcPort, Node dstNode, short dstPort, java.util.Collection<FlowHop> path)
           
Flow(FlowType type, int id, Node srcNode, short srcPort, Node dstNode, short dstPort, FlowHop... path)
           
 
Method Summary
 int length()
          This returns the length of Flow
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public final FlowType type
type of flow


id

public final int id
flow identifier


srcNode

public final Node srcNode

srcPort

public final short srcPort

dstNode

public final Node dstNode

dstPort

public final short dstPort

path

public final FlowHop[] path
the flow's path from source to destination (inclusive)

Constructor Detail

Flow

public Flow(FlowType type,
            int id,
            Node srcNode,
            short srcPort,
            Node dstNode,
            short dstPort,
            FlowHop... path)

Flow

public Flow(FlowType type,
            int id,
            Node srcNode,
            short srcPort,
            Node dstNode,
            short dstPort,
            java.util.Collection<FlowHop> path)
Method Detail

length

public int length()
This returns the length of Flow


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