|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.discoverer.dataModel.AbstractDataModel context.arch.discoverer.dataModel.DiscovererDataModel
This class stores the ComponentDescriptions of the CTK object that register to the discoverer. It stores the complete ComponentDescription in a Hashtable and maintain a set of IndexTableIF that allows to search more quickly for particular CTK objects. They are index on each of the description element.
Field Summary | |
java.lang.String |
CALLBACK_INDEX
|
java.lang.String |
CLASSNAME_INDEX
|
java.lang.String |
CST_ATT_NAME_INDEX
|
java.lang.String |
CST_ATT_NAME_VALUE_INDEX
|
java.lang.String |
CST_ATT_VALUE_INDEX
|
java.lang.String |
HOSTNAME_INDEX
|
java.lang.String |
ID_INDEX
|
java.lang.String |
IN_ATT_INDEX
|
java.lang.String |
NON_CST_ATT_INDEX
|
java.lang.String |
OUT_ATT_INDEX
|
java.lang.String |
PORT_INDEX
|
java.lang.String |
SERVICE_INDEX
|
java.lang.String |
SUBSCRIBER_INDEX
|
java.lang.String |
TYPE_INDEX
|
Fields inherited from class context.arch.discoverer.dataModel.AbstractDataModel |
nameToIndexTableIF |
Constructor Summary | |
DiscovererDataModel()
Creates new DiscovererDataModel |
Method Summary | |
java.lang.Object |
add(java.lang.Object componentDescription)
Adds the ComponentDescription object to the list of components, and updates the index tables based on the component description. |
void |
addToIndexTableIF(ComponentDescription comp,
java.lang.Integer index)
|
java.lang.Object |
getEmptyArray()
Returns a empty hashmap that contains as key the index of the currently stored components, and as value, false. |
java.util.Enumeration |
getIndexKeys()
|
java.lang.Object |
getIndexOf(java.lang.Object stringOrInteger)
Return the index corresponding to the id of a component |
java.lang.Object |
getObjectAt(java.lang.Object stringOrInteger)
|
static void |
main(java.lang.String[] args)
|
java.lang.Object |
remove(java.lang.Object objectIndexOrId)
|
void |
removeFromIndexTableIF(ComponentDescription comp,
java.lang.Integer index)
This method allows to remove the reference to a component description from the IndexTableIF tables. |
java.lang.String |
toString()
|
java.lang.Object |
update(java.lang.Object componentDescription)
Update all hashtable (general and index tables) to add a new component |
Methods inherited from class context.arch.discoverer.dataModel.AbstractDataModel |
decNbElements, getIndexTableIFCorrespondingTo, getNbElements, getNumberOfElements, incNbElements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final java.lang.String ID_INDEX
public final java.lang.String CLASSNAME_INDEX
public final java.lang.String HOSTNAME_INDEX
public final java.lang.String TYPE_INDEX
public final java.lang.String PORT_INDEX
public final java.lang.String CST_ATT_NAME_VALUE_INDEX
public final java.lang.String CST_ATT_NAME_INDEX
public final java.lang.String CST_ATT_VALUE_INDEX
public final java.lang.String NON_CST_ATT_INDEX
public final java.lang.String CALLBACK_INDEX
public final java.lang.String SERVICE_INDEX
public final java.lang.String SUBSCRIBER_INDEX
public final java.lang.String IN_ATT_INDEX
public final java.lang.String OUT_ATT_INDEX
Constructor Detail |
public DiscovererDataModel()
Method Detail |
public java.lang.Object add(java.lang.Object componentDescription)
add
in class AbstractDataModel
componentDescription
- ComponentDescription object
public java.lang.Object update(java.lang.Object componentDescription)
update
in class AbstractDataModel
componentDescription
- The new component to add
public java.lang.Object getIndexOf(java.lang.Object stringOrInteger)
getIndexOf
in class AbstractDataModel
public java.lang.Object getObjectAt(java.lang.Object stringOrInteger)
getObjectAt
in class AbstractDataModel
public java.util.Enumeration getIndexKeys()
getIndexKeys
in class AbstractDataModel
public java.lang.Object remove(java.lang.Object objectIndexOrId)
remove
in class AbstractDataModel
public void addToIndexTableIF(ComponentDescription comp, java.lang.Integer index)
public void removeFromIndexTableIF(ComponentDescription comp, java.lang.Integer index)
public java.lang.String toString()
toString
in class AbstractDataModel
public java.lang.Object getEmptyArray()
getEmptyArray
in class AbstractDataModel
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |