verinec.netsim.util.tables
Class AddressTable.Entry

java.lang.Object
  extended by verinec.netsim.util.tables.AddressTable.Entry
All Implemented Interfaces:
Map.Entry
Direct Known Subclasses:
RoutingTable.Entry
Enclosing class:
AddressTable

protected class AddressTable.Entry
extends Object
implements Map.Entry

a entry with an address as key, an address as associated value and an associated creation time.


Field Summary
private  IAddress address1
           
private  IAddress address2
           
private  double creation_time
           
 
Constructor Summary
AddressTable.Entry(IAddress address1, IAddress address2, double creation_time)
          creates a new AddressTable Entry
 
Method Summary
 Object getKey()
           
 double getTime()
          gets the time value when the entry was created
 Object getValue()
           
 Object setValue(Object arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

address1

private IAddress address1

address2

private IAddress address2

creation_time

private double creation_time
Constructor Detail

AddressTable.Entry

public AddressTable.Entry(IAddress address1,
                          IAddress address2,
                          double creation_time)
creates a new AddressTable Entry

Parameters:
address1 - the key address
address2 - the address associated to the key
creation_time - the creation time
Method Detail

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry
See Also:
Map.Entry.getKey()

getTime

public double getTime()
gets the time value when the entry was created

Returns:
the time value when the entry was created

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry
See Also:
Map.Entry.getValue()

setValue

public Object setValue(Object arg0)
Specified by:
setValue in interface Map.Entry
See Also:
Map.Entry.setValue(java.lang.Object)

Copyright © 2005 Verinec, DIUF