|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.data.Map
drcl.data.RadixMap
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.
MapKey,
Serialized Form| Nested Class Summary | |
protected class |
RadixMap.Radix_mask
|
protected class |
RadixMap.Radix_node
|
| Field Summary |
| Fields inherited from class drcl.data.Map |
BEST_CLASS_FOR_LONGEST_MATCH, entry, key, MATCH_ALL, MATCH_EXACT, MATCH_LONGEST, MATCH_WILDCARD, size |
| Constructor Summary | |
RadixMap()
|
|
| 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. |
protected java.lang.Object |
getExactMatch(MapKey key_)
Returns the exact match. |
protected java.lang.Object |
getLongestMatch(BitSet key_)
Returns the longest match. |
protected java.lang.Object |
removeExactMatch(MapKey key_)
Removes the exact match. |
protected java.lang.Object |
removeLongestMatch(BitSet key_)
Removes the longest match. |
void |
reset()
Removes all the entries. |
| Methods inherited from class drcl.data.Map |
anyMatch, binaryRepresentation, binaryRepresentation, binaryRepresentation, duplicate, get, get, getAllEntries, getAllKeys, getBestImplementationForLongestMatch, getExactMatch, getMatches, getSize, getWildcardMatches, hexRepresentation, hexRepresentation, hexRepresentation, info, numberRepresentation, remove, remove, removeEntry, removeExactMatch, removeMatches, removeWildcardMatches |
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RadixMap()
| Method Detail |
public void reset()
reset in class Mapprotected java.lang.Object getLongestMatch(BitSet key_)
Map
getLongestMatch in class Mapkey_ - the key to match.
protected java.lang.Object getExactMatch(MapKey key_)
Map
getExactMatch in class Mapkey_ - the key to match.
protected java.lang.Object removeLongestMatch(BitSet key_)
removeLongestMatch in class Mapkey_ - the key to match.
protected java.lang.Object removeExactMatch(MapKey key_)
Map
removeExactMatch in class Mapkey_ - the key to match.
public void addEntry(MapKey key_,
java.lang.Object entry_)
addEntry in class Mapkey_ - the key.entry_ - the entry.public java.lang.String diag()
Map
diag in class Map
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||