unikl.disco.nc
Class Flow

java.lang.Object
  extended by unikl.disco.nc.Flow

public class Flow
extends java.lang.Object

Class representing flows through the network.

Author:
Frank A. Zdarsky

Field Summary
 Curve ac
          The flow's arrival curve
 java.lang.Integer id
          The flow's ID.
 java.util.List path
          The (edge) path the flow traverses
 edu.uci.ics.jung.graph.Vertex sink
          The vertex at which the flow ends
 edu.uci.ics.jung.graph.Vertex source
          The vertex at which the flow originates
 
Constructor Summary
Flow(edu.uci.ics.jung.graph.Vertex source, edu.uci.ics.jung.graph.Vertex sink, Curve ac, java.util.List path)
           
 
Method Summary
static Flow createDummyFlow()
          Creates a dummy flow.
 java.lang.String toString()
          Returns a string representation of the flow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public java.lang.Integer id
The flow's ID.


ac

public Curve ac
The flow's arrival curve


source

public edu.uci.ics.jung.graph.Vertex source
The vertex at which the flow originates


sink

public edu.uci.ics.jung.graph.Vertex sink
The vertex at which the flow ends


path

public java.util.List path
The (edge) path the flow traverses

Constructor Detail

Flow

public Flow(edu.uci.ics.jung.graph.Vertex source,
            edu.uci.ics.jung.graph.Vertex sink,
            Curve ac,
            java.util.List path)
Parameters:
source - the vertex at which the flow originates
sink - the vertex at which teh flow ends
ac - the flow's arrival curve
path - the (edge) path the flow traverses
Method Detail

createDummyFlow

public static Flow createDummyFlow()
Creates a dummy flow.

Returns:
a dummy flow

toString

public java.lang.String toString()
Returns a string representation of the flow.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the flow