verinec.netsim.util.tables
Class SocketSimProccessTable.Key

java.lang.Object
  extended by verinec.netsim.util.tables.SocketSimProccessTable.Key
All Implemented Interfaces:
Comparable
Enclosing class:
SocketSimProccessTable

protected class SocketSimProccessTable.Key
extends Object
implements Comparable

The key of this Map containing the localhost and destination host address and destination port.


Field Summary
private  IAddress dsthost
           
private  int dstport
           
private  IAddress localhost
           
 
Constructor Summary
SocketSimProccessTable.Key(IAddress localhost, IAddress dsthost, int dstport)
          creates a new key
 
Method Summary
 int compareTo(Object o)
           
 int getPort()
          gets the destination port
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

localhost

private IAddress localhost

dsthost

private IAddress dsthost

dstport

private int dstport
Constructor Detail

SocketSimProccessTable.Key

public SocketSimProccessTable.Key(IAddress localhost,
                                  IAddress dsthost,
                                  int dstport)
creates a new key

Parameters:
localhost - the address of the localhost
dsthost - the address of the destination
dstport - the destination port of the socket
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getPort

public int getPort()
gets the destination port

Returns:
the destination port

Copyright © 2005 Verinec, DIUF