|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractMap
verinec.netsim.util.tables.AddressTable
public class AddressTable
AddressTable extends AbstractMap and has Time-Tagged Entries.
| Nested Class Summary | |
|---|---|
private class |
AddressTable.AddressComparator
a comparator that compares addresses |
protected class |
AddressTable.Entry
a entry with an address as key, an address as associated value and an associated creation time. |
private class |
AddressTable.TimeComparator
a comparator that compares the creation times of entries |
| Field Summary | |
|---|---|
private HashSet |
entryset
|
| Constructor Summary | |
|---|---|
AddressTable()
Creates a new AddressTable |
|
| Method Summary | |
|---|---|
Set |
entrySet()
|
IAddress |
getAddress(IAddress key)
Looks up the value(Address) associated to the key |
IAddress |
getReverseAddress(IAddress value)
Looks up the key(Address) associated with the value |
Object |
put(Object arg0,
Object arg1)
|
Object |
put(Object arg0,
Object arg1,
double time)
Associates the specified value with the specified key and time in this map. |
void |
removeOlderThan(double time)
Removes all entries from the Set that are older that time. |
| Methods inherited from class java.util.AbstractMap |
|---|
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private HashSet entryset
| Constructor Detail |
|---|
public AddressTable()
| Method Detail |
|---|
public Set entrySet()
entrySet in interface MapentrySet in class AbstractMapMap.entrySet()public IAddress getAddress(IAddress key)
key - a key
public IAddress getReverseAddress(IAddress value)
value - a value (Address)
public Object put(Object arg0,
Object arg1)
put in interface Mapput in class AbstractMapMap.put(java.lang.Object, java.lang.Object)
public Object put(Object arg0,
Object arg1,
double time)
arg0 - key with which the specified value is to be associated.arg1 - value to be associated with the specified key.time - time to be associated with the key value pair
public void removeOlderThan(double time)
time - a time value
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||