|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteece496.util.SymbolHashtable
Symbol table using hashtable implementation.
$Source: K:/cvsrepo/ee496/codes/jbuilder/src/TestCaseGenerator/src/eece496/util/SymbolHashtable.java,v $
Last updated by $Author: cyiu $
$Date: 2003/08/07 19:36:26 $
$Revision: 1.11 $
$State: Exp $
Nested Class Summary | |
class |
SymbolHashtable.SymbolNotFoundException
|
Constructor Summary | |
SymbolHashtable()
Constructor. |
Method Summary | |
boolean |
addMuEx(java.lang.String symbolName,
java.util.Vector parentROIDs,
java.util.Vector parentNames)
Add Mutually Exclusive roids to the symbol with symbolName. |
boolean |
addParent(java.lang.String symbolName,
parentListElement element)
Insert a SINGLE new definition to a symbol with symbolName. |
boolean |
addParent(java.lang.String symbolName,
java.util.Vector parentNames,
java.util.Vector parentROIDs)
Insert a SINGLE new definition to a symbol with symbolName. |
boolean |
addSymbol(java.lang.String symbolName,
int type)
Add a new symbol to the hashtable. |
java.util.Vector |
getMuExNames(java.lang.String symbolName)
Get the Mutually Exclusive Names of this particular symbol. |
java.util.Vector |
getMuExROIDs(java.lang.String symbolName)
Get the Mutually Exclusive Roids of this particular symbol |
parentListElement |
getParent(java.lang.String symbolName,
int ID)
get the parent list element with the specified ID. |
int |
getParentListLength(java.lang.String symbolName)
Get the length of the parent list (linked list) of that symbol. |
java.util.Vector |
getParentNames(java.lang.String symbolName,
int ID)
Get the parent names of the specific parent in the list. |
java.util.Vector |
getParentRoids(java.lang.String symbolName,
int ID)
Get the parent roids of the specific parent in the list. |
java.util.LinkedList |
getParents(java.lang.String symbolName)
Deprecated. Return the linked list of parents of the specified symbol. |
java.util.Enumeration |
getSymbolNames()
Get the list of symbol name (keys) of the symbol hashtable. |
int |
getType(java.lang.String symbolName)
Get the type of the symbol. |
boolean |
modifyParent(java.lang.String symbolName,
int ID,
java.util.Vector parentNames,
java.util.Vector parentROIDs)
modify the parent with ID (from zero in linked list) to the new content. |
void |
print()
Print the content of the hashtable to the console output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SymbolHashtable()
Method Detail |
public boolean addSymbol(java.lang.String symbolName, int type)
symbolName
- Hashtable key.
public boolean addParent(java.lang.String symbolName, java.util.Vector parentNames, java.util.Vector parentROIDs)
symbolName
- Hashtable key.
public boolean addParent(java.lang.String symbolName, parentListElement element)
symbolName
- Hashtable key.element
- new definition to be added.
public boolean modifyParent(java.lang.String symbolName, int ID, java.util.Vector parentNames, java.util.Vector parentROIDs)
symbolName
- name of the symbol.ID
- ID of the element in the linked list, starts from zero.parentNames
- the new parent names.parentROIDs
- the new parent ROIDs.
public boolean addMuEx(java.lang.String symbolName, java.util.Vector parentROIDs, java.util.Vector parentNames)
symbolName
- the spec. symbol in interest.parentROIDs
- MuEx condition roids.parentNames
- MuEx condition names.
public java.util.LinkedList getParents(java.lang.String symbolName)
symbolName
- name of the symbol.
public java.util.Vector getParentNames(java.lang.String symbolName, int ID)
ID
- the index of the parent in the list.
public java.util.Vector getParentRoids(java.lang.String symbolName, int ID)
symbolName
- name of the symbol.ID
- the index of the parent in the list.
public parentListElement getParent(java.lang.String symbolName, int ID)
symbolName
- name of the symbol.ID
- from zero in the linked list, ID for the parent list element
public java.util.Vector getMuExROIDs(java.lang.String symbolName)
symbolName
- name of the particular symbol.
public java.util.Vector getMuExNames(java.lang.String symbolName)
symbolName
- name of the particular symbol.
public int getType(java.lang.String symbolName)
symbolName
- name of the symbol.
public int getParentListLength(java.lang.String symbolName)
symbolName
- name of the symbol
public void print()
public java.util.Enumeration getSymbolNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |