fi.helsinki.dacopan.model
Class Flow

java.lang.Object
  extended by fi.helsinki.dacopan.model.Flow
All Implemented Interfaces:
Identifiable

public class Flow
extends java.lang.Object
implements Identifiable

A flow (e.g. a TCP connection) in a scenario.

Version:
$Id: Flow.java,v 1.3 2004/05/07 09:19:42 aarniala-dacopan Exp $

Field Summary
protected  Host first
          first endpoint
protected  int firstPort
          port of the first endpoint
protected  long id
          unique flow id
protected  Host second
          second endpoint
protected  int secondPort
          port of the second endpoint
 
Constructor Summary
Flow(long id, Host first, int firstPort, Host second, int secondPort)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Host getFirst()
           
 int getFirstPort()
           
 long getId()
          Returns the unique identifier of this object.
 Host getSecond()
           
 int getSecondPort()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected long id
unique flow id


first

protected Host first
first endpoint


firstPort

protected int firstPort
port of the first endpoint


second

protected Host second
second endpoint


secondPort

protected int secondPort
port of the second endpoint

Constructor Detail

Flow

public Flow(long id,
            Host first,
            int firstPort,
            Host second,
            int secondPort)
Method Detail

getFirst

public Host getFirst()

getFirstPort

public int getFirstPort()

getId

public long getId()
Description copied from interface: Identifiable
Returns the unique identifier of this object.

Specified by:
getId in interface Identifiable
Returns:
a unique long id

getSecond

public Host getSecond()

getSecondPort

public int getSecondPort()

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


© Dacopan2 team, 2005-