|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.DescriptorManager
Manages a set of descriptors that represent features of the federation (object classes, interaction classes, and so on).
| Field Summary | |
private static java.lang.String |
ATTRIBUTE
The attribute tag. |
private java.util.HashMap |
attributeHandleDescriptorMap
Maps attribute handles to attribute descriptors. |
private java.util.HashMap |
attributeHandleListenerMap
Maps attribute handles to object class listeners. |
private static java.lang.String |
DIMENSION
The dimension tag. |
private java.util.HashMap |
dimensionHandleDescriptorMap
Maps dimension handles to dimension descriptors. |
private java.util.HashMap |
dimensionNameDescriptorMap
Maps dimension names to dimension descriptors. |
private static java.lang.String |
DIMENSIONS
The dimensions attribute. |
private int |
handleCounter
The handle counter for bootstrap descriptors. |
private static java.lang.String |
INTERACTION_CLASS
The interaction class tag. |
private java.util.HashMap |
interactionClassHandleDescriptorMap
Maps interaction class handles to interaction class descriptors. |
private java.util.HashMap |
interactionClassNameDescriptorMap
Maps interaction class names to interaction class descriptors. |
private java.util.HashMap |
interactionClassNameListenersMap
Maps interaction class names to interaction class listeners. |
private static java.lang.String |
NAME
The name attribute. |
private static java.lang.String |
OBJECT_CLASS
The object class tag. |
private java.util.HashMap |
objectClassHandleDescriptorMap
Maps object class handles to object class descriptors. |
private java.util.HashMap |
objectClassNameDescriptorMap
Maps object class names to object class descriptors. |
private java.util.HashMap |
objectClassNameListenersMap
Maps object class names to object class listeners. |
private java.util.HashMap |
objectInstanceHandleDescriptorMap
Maps object instance handles to object instance descriptors. |
private java.util.HashMap |
objectInstanceNameDescriptorMap
Maps object instance names to object instance descriptors. |
private static java.lang.String |
ORDER
The order attribute. |
private static java.lang.String |
PARAMETER
The parameter tag. |
private java.util.HashMap |
parameterHandleDescriptorMap
Maps parameter handles to parameter descriptors. |
private java.util.HashMap |
parameterHandleListenerMap
Maps parameter handles to interaction class listeners. |
private static java.lang.String |
PARENTS
The parents attribute. |
private java.util.HashMap |
regionHandleDescriptorMap
Maps region handles to region descriptors. |
private static java.lang.String |
TRANSPORTATION
The transportation attribute. |
private static java.lang.String |
UPPER_BOUND
The upper bound attribute. |
| Constructor Summary | |
DescriptorManager()
Constructor. |
|
| Method Summary | |
void |
addAttributeDescriptor(AttributeDescriptor ad)
Adds an attribute descriptor. |
protected void |
addAttributeListener(AttributeHandle handle,
ObjectClassDescriptor ocd)
Adds a listener for attributes with the specified handle. |
void |
addBootstrapDescriptors(org.w3c.dom.Document fdd)
Adds a set of descriptors corresponding to the features contained in the specified bootstrap federation description document. |
void |
addDimensionDescriptor(DimensionDescriptor dd)
Adds a dimension descriptor. |
void |
addInteractionClassDescriptor(InteractionClassDescriptor icd)
Adds an interaction class descriptor. |
protected void |
addInteractionClassListener(java.lang.String name,
InteractionClassDescriptor icd)
Adds a listener for interaction classes with a particular name. |
void |
addObjectClassDescriptor(ObjectClassDescriptor ocd)
Adds an object class descriptor. |
protected void |
addObjectClassListener(java.lang.String name,
ObjectClassDescriptor ocd)
Adds a listener for object classes with a particular name. |
void |
addObjectInstanceDescriptor(ObjectInstanceDescriptor oid)
Adds an object instance descriptor. |
void |
addParameterDescriptor(ParameterDescriptor pd)
Adds a parameter descriptor. |
protected void |
addParameterListener(ParameterHandle handle,
InteractionClassDescriptor icd)
Adds a listener for parameters with the specified handle. |
void |
addRegionDescriptor(RegionDescriptor rd)
Adds a region descriptor. |
AttributeDescriptor |
getAttributeDescriptor(AttributeHandle handle)
Returns the descriptor for the attribute with the given handle. |
java.util.Collection |
getAttributeDescriptors()
Returns an immutable collection containing the descriptors of all known attributes. |
DimensionDescriptor |
getDimensionDescriptor(DimensionHandle handle)
Returns the descriptor for the dimension with the given handle. |
DimensionDescriptor |
getDimensionDescriptor(java.lang.String name)
Returns the descriptor for the dimension with the given name. |
java.util.Collection |
getDimensionDescriptors()
Returns an immutable collection containing the descriptors of all known dimensions. |
InteractionClassDescriptor |
getInteractionClassDescriptor(InteractionClassHandle handle)
Returns the descriptor for the interaction class with the given handle. |
InteractionClassDescriptor |
getInteractionClassDescriptor(java.lang.String name)
Returns the descriptor for the interaction class with the given name. |
java.util.Collection |
getInteractionClassDescriptors()
Returns an immutable collection containing the descriptors of all known interaction classes. |
ObjectClassDescriptor |
getObjectClassDescriptor(ObjectClassHandle handle)
Returns the descriptor for the object class with the given handle. |
ObjectClassDescriptor |
getObjectClassDescriptor(java.lang.String name)
Returns the descriptor for the object class with the given name. |
java.util.Collection |
getObjectClassDescriptors()
Returns an immutable collection containing the descriptors of all known object classes. |
ObjectInstanceDescriptor |
getObjectInstanceDescriptor(ObjectInstanceHandle handle)
Returns the descriptor for the object instance with the given handle. |
ObjectInstanceDescriptor |
getObjectInstanceDescriptor(java.lang.String name)
Returns the descriptor for the object instance with the given name. |
java.util.Collection |
getObjectInstanceDescriptors()
Returns an immutable collection containing the descriptors of all known object instances. |
ParameterDescriptor |
getParameterDescriptor(ParameterHandle handle)
Returns the descriptor for the parameter with the given handle. |
java.util.Collection |
getParameterDescriptors()
Returns an immutable collection containing the descriptors of all known parameters. |
RegionDescriptor |
getRegionDescriptor(RegionHandle handle)
Returns the descriptor for the region with the given handle. |
java.util.Collection |
getRegionDescriptors()
Returns an immutable collection containing the descriptors of all known regions. |
boolean |
isBootstrapHandle(InteractionClassHandle ich)
Checks whether the specified interaction class handle is a bootstrap handle. |
boolean |
isBootstrapHandle(ObjectClassHandle och)
Checks whether the specified object class handle is a bootstrap handle. |
void |
nameUpdated(HLAreflection source,
java.lang.String oldValue,
java.lang.String newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
Notifies the listener that the name attribute has been updated. |
void |
objectInstanceProxyCreated(ProxyAmbassador pa,
ObjectInstanceProxy oip)
Notifies the listener that the proxy ambassador has created an object instance proxy. |
void |
objectInstanceProxyDestroyed(ProxyAmbassador pa,
ObjectInstanceProxy oip)
Notifies the listener that the proxy ambassador has destroyed an object instance proxy. |
void |
removeAttributeDescriptor(AttributeDescriptor ad)
Removes an attribute descriptor. |
void |
removeDimensionDescriptor(DimensionDescriptor dd)
Removes a dimension descriptor. |
void |
removeInteractionClassDescriptor(InteractionClassDescriptor icd)
Removes an interaction class descriptor. |
void |
removeObjectClassDescriptor(ObjectClassDescriptor ocd)
Removes an object class descriptor. |
void |
removeObjectInstanceDescriptor(ObjectInstanceDescriptor oid)
Removes an object instance descriptor. |
void |
removeParameterDescriptor(ParameterDescriptor pd)
Removes a parameter descriptor. |
void |
removeRegionDescriptor(RegionDescriptor rd)
Removes a region descriptor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String OBJECT_CLASS
private static final java.lang.String ATTRIBUTE
private static final java.lang.String INTERACTION_CLASS
private static final java.lang.String PARAMETER
private static final java.lang.String DIMENSION
private static final java.lang.String NAME
private static final java.lang.String PARENTS
private static final java.lang.String DIMENSIONS
private static final java.lang.String TRANSPORTATION
private static final java.lang.String ORDER
private static final java.lang.String UPPER_BOUND
private java.util.HashMap objectClassNameDescriptorMap
private java.util.HashMap objectClassHandleDescriptorMap
private java.util.HashMap objectClassNameListenersMap
private java.util.HashMap attributeHandleDescriptorMap
private java.util.HashMap attributeHandleListenerMap
private java.util.HashMap interactionClassNameDescriptorMap
private java.util.HashMap interactionClassHandleDescriptorMap
private java.util.HashMap interactionClassNameListenersMap
private java.util.HashMap parameterHandleDescriptorMap
private java.util.HashMap parameterHandleListenerMap
private java.util.HashMap objectInstanceNameDescriptorMap
private java.util.HashMap objectInstanceHandleDescriptorMap
private java.util.HashMap dimensionNameDescriptorMap
private java.util.HashMap dimensionHandleDescriptorMap
private java.util.HashMap regionHandleDescriptorMap
private int handleCounter
| Constructor Detail |
public DescriptorManager()
| Method Detail |
public void addBootstrapDescriptors(org.w3c.dom.Document fdd)
1.
fdd - the parsed federation description document to interpretpublic boolean isBootstrapHandle(ObjectClassHandle och)
och - the object class handle to check
true if the handle is a bootstrap handle,
false otherwisepublic boolean isBootstrapHandle(InteractionClassHandle ich)
ich - the interaction class handle to check
true if the handle is a bootstrap handle,
false otherwise
public void objectInstanceProxyCreated(ProxyAmbassador pa,
ObjectInstanceProxy oip)
objectInstanceProxyCreated in interface ProxyAmbassadorListenerpa - the proxy ambassador that generated the eventoip - the newly created object instance proxy
public void objectInstanceProxyDestroyed(ProxyAmbassador pa,
ObjectInstanceProxy oip)
objectInstanceProxyDestroyed in interface ProxyAmbassadorListenerpa - the proxy ambassador that generated the eventoip - the destroyed object instance proxy
public void nameUpdated(HLAreflection source,
java.lang.String oldValue,
java.lang.String newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
nameUpdated in interface HLAreflectionListenersource - the source of the notificationoldValue - the old value of the attributenewValue - the new value of the attributeuserSuppliedTag - the user-supplied tag associated with the updatesentOrdering - the type of ordering with which the update was senttheTransport - the type of transport associated with the update
protected void addObjectClassListener(java.lang.String name,
ObjectClassDescriptor ocd)
name - the object class name of interestocd - the object class descriptor to notify
protected void addAttributeListener(AttributeHandle handle,
ObjectClassDescriptor ocd)
handle - the attribute handle of interestocd - the object class descriptor to notify
protected void addInteractionClassListener(java.lang.String name,
InteractionClassDescriptor icd)
name - the interaction class name of interesticd - the interaction class descriptor to notify
protected void addParameterListener(ParameterHandle handle,
InteractionClassDescriptor icd)
handle - the parameter handle of interesticd - the interaction class descriptor to notifypublic void addObjectClassDescriptor(ObjectClassDescriptor ocd)
ocd - the object class descriptor to addpublic void removeObjectClassDescriptor(ObjectClassDescriptor ocd)
ocd - the object class descriptor to removepublic ObjectClassDescriptor getObjectClassDescriptor(java.lang.String name)
name - the name of the object class
null if no such
descriptor existspublic ObjectClassDescriptor getObjectClassDescriptor(ObjectClassHandle handle)
handle - the handle of the object class
null if no such
descriptor existspublic java.util.Collection getObjectClassDescriptors()
ObjectClassDescriptor.
public void addAttributeDescriptor(AttributeDescriptor ad)
ad - the attribute descriptor to addpublic void removeAttributeDescriptor(AttributeDescriptor ad)
ad - the attribute descriptor to removepublic AttributeDescriptor getAttributeDescriptor(AttributeHandle handle)
handle - the handle of the attribute
null if no such
descriptor existspublic java.util.Collection getAttributeDescriptors()
AttributeDescriptor.
public void addInteractionClassDescriptor(InteractionClassDescriptor icd)
icd - the interaction class descriptor to addpublic void removeInteractionClassDescriptor(InteractionClassDescriptor icd)
icd - the interaction class descriptor to removepublic InteractionClassDescriptor getInteractionClassDescriptor(java.lang.String name)
name - the name of the interaction class
null if no such
descriptor existspublic InteractionClassDescriptor getInteractionClassDescriptor(InteractionClassHandle handle)
handle - the handle of the interaction class
null if no such
descriptor existspublic java.util.Collection getInteractionClassDescriptors()
InteractionClassDescriptor.
public void addParameterDescriptor(ParameterDescriptor pd)
pd - the parameter descriptor to addpublic void removeParameterDescriptor(ParameterDescriptor pd)
pd - the parameter descriptor to removepublic ParameterDescriptor getParameterDescriptor(ParameterHandle handle)
handle - the handle of the parameter
null if no such
descriptor existspublic java.util.Collection getParameterDescriptors()
ParameterDescriptor.
public void addObjectInstanceDescriptor(ObjectInstanceDescriptor oid)
oid - the object instance descriptor to addpublic void removeObjectInstanceDescriptor(ObjectInstanceDescriptor oid)
oid - the object instance descriptor to removepublic ObjectInstanceDescriptor getObjectInstanceDescriptor(java.lang.String name)
name - the name of the object instance
null if no such
descriptor existspublic ObjectInstanceDescriptor getObjectInstanceDescriptor(ObjectInstanceHandle handle)
handle - the handle of the object instance
null if no such
descriptor existspublic java.util.Collection getObjectInstanceDescriptors()
ObjectInstanceDescriptor.
public void addDimensionDescriptor(DimensionDescriptor dd)
dd - the dimension descriptor to addpublic void removeDimensionDescriptor(DimensionDescriptor dd)
dd - the dimension descriptor to removepublic DimensionDescriptor getDimensionDescriptor(java.lang.String name)
name - the name of the dimension
null if no such
descriptor existspublic DimensionDescriptor getDimensionDescriptor(DimensionHandle handle)
handle - the handle of the dimension
null if no such
descriptor existspublic java.util.Collection getDimensionDescriptors()
DimensionDescriptor.
public void addRegionDescriptor(RegionDescriptor rd)
rd - the region descriptor to addpublic void removeRegionDescriptor(RegionDescriptor rd)
rd - the region descriptor to removepublic RegionDescriptor getRegionDescriptor(RegionHandle handle)
handle - the handle of the region
null if no such
descriptor existspublic java.util.Collection getRegionDescriptors()
RegionDescriptor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||