DRCL J-Sim API

drcl.data
Class RadixMap

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.data.Map
          extended bydrcl.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

Field Summary
 
Fields inherited from class drcl.data.Map
BEST_CLASS_FOR_LONGEST_MATCH, MATCH_ALL, MATCH_EXACT, MATCH_LONGEST, MATCH_WILDCARD
 
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.
 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 drcl.DrclObj
clone, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadixMap

public RadixMap()
Method Detail

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

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~