drcl.data
Class RadixMap
java.lang.Object
drcl.DrclObj
drcl.data.Map
drcl.data.RadixMap
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
- public class RadixMap
- extends Map
A map keeps (MapKey, entry object) pairs in it.
Given a MapKey, an entry/entries can be retrieved by
exact match, longest match, match, or wildcard match.
- See Also:
MapKey,
Serialized Form
|
Method Summary |
void |
addEntry(MapKey key_,
java.lang.Object entry_)
Add the key-entry pair to the Map. |
java.lang.String |
diag()
Printout for diagnosis. |
void |
reset()
Removes all the entries. |
| Methods inherited from class drcl.data.Map |
anyMatch, binaryRepresentation, binaryRepresentation, binaryRepresentation, duplicate, get, get, getAllEntries, getAllKeys, getBestImplementationForLongestMatch, getSize, hexRepresentation, hexRepresentation, hexRepresentation, info, numberRepresentation, remove, remove, removeEntry |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RadixMap
public RadixMap()
reset
public void reset()
- Removes all the entries.
- Overrides:
reset in class Map
addEntry
public void addEntry(MapKey key_,
java.lang.Object entry_)
- Add the key-entry pair to the Map. No check is done
for duplicate keys.
- Overrides:
addEntry in class Map
- Parameters:
key_ - the key.entry_ - the entry.
diag
public java.lang.String diag()
- Description copied from class:
Map
- Printout for diagnosis.
- Overrides:
diag in class Map
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~