|
||||||||||
| 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).
| 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 |
| 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 | |||||||||