|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.ObjectClassDescriptor
Describes an object class.
| Field Summary | |
private java.util.HashMap |
attributeHandleDescriptorMap
Maps attribute handles to attribute descriptors. |
private java.util.HashMap |
attributeNameDescriptorMap
Maps attribute names to attribute descriptors. |
private DescriptorManager |
descriptorManager
The descriptor manager responsible for this descriptor. |
private ObjectClassHandle |
handle
The handle of the object class. |
private java.lang.String |
name
The name of the object class. |
private java.util.Collection |
parentDescriptors
The descriptors of the object class's parents. |
private HLAobjectClass |
proxy
The proxy corresponding to a remote object. |
| Constructor Summary | |
ObjectClassDescriptor(DescriptorManager pDescriptorManager,
java.lang.String pName,
ObjectClassHandle pHandle,
HLAobjectClass pProxy)
Constructor. |
|
ObjectClassDescriptor(java.lang.String pName,
ObjectClassHandle pHandle,
java.util.Collection pParentDescriptors)
Constructor. |
|
| Method Summary | |
void |
addAttributeDescriptor(AttributeDescriptor ad)
Adds an attribute descriptor. |
protected void |
attributeAdded(AttributeDescriptor ad)
Notifies this object that an attribute of interest has been added to the descriptor manager. |
void |
attributesUpdated(HLAobjectClass source,
long[] oldValue,
long[] newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
Notifies the listener that the attributes attribute has been updated. |
AttributeDescriptor |
getAttributeDescriptor(AttributeHandle handle)
Returns the descriptor for the attribute with the given handle. |
AttributeDescriptor |
getAttributeDescriptor(java.lang.String name)
Returns the descriptor for the attribute with the given name. |
java.util.Collection |
getAttributeDescriptors()
Returns an immutable collection containing the descriptors of all known attributes. |
java.util.Collection |
getAttributeHandles()
Gets the handles of all attributes associated with this object class, including those of all parents. |
ObjectClassHandle |
getHandle()
Returns the handle of this object class. |
java.lang.String |
getName()
Returns the name of this object class. |
java.util.Collection |
getParentDescriptors()
Returns the descriptors of this object class's parents. |
protected void |
objectClassAdded(ObjectClassDescriptor ocd)
Notifies this object that an object class of interest has been added to the descriptor manager. |
void |
parentsUpdated(HLAobjectClass source,
java.lang.String oldValue,
java.lang.String newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
Notifies the listener that the parents attribute has been updated. |
void |
removeAttributeDescriptor(AttributeDescriptor ad)
Removes an attribute descriptor. |
void |
semanticsUpdated(HLAobjectClass source,
java.lang.String oldValue,
java.lang.String newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
Notifies the listener that the semantics attribute has been updated. |
void |
sharingUpdated(HLAobjectClass source,
HLAsharingType oldValue,
HLAsharingType newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
Notifies the listener that the sharing attribute has been updated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private DescriptorManager descriptorManager
private java.lang.String name
private ObjectClassHandle handle
private HLAobjectClass proxy
private java.util.Collection parentDescriptors
private java.util.HashMap attributeNameDescriptorMap
private java.util.HashMap attributeHandleDescriptorMap
| Constructor Detail |
public ObjectClassDescriptor(java.lang.String pName,
ObjectClassHandle pHandle,
java.util.Collection pParentDescriptors)
pName - the name of the object classpHandle - the handle of the object classpParentDescriptors - the descriptors of the object class's parents
public ObjectClassDescriptor(DescriptorManager pDescriptorManager,
java.lang.String pName,
ObjectClassHandle pHandle,
HLAobjectClass pProxy)
pDescriptorManager - the descriptor managerpName - the name of the object classpHandle - the handle of the object classpProxy - the proxy corresponding to a remote object| Method Detail |
protected void objectClassAdded(ObjectClassDescriptor ocd)
ocd - the object class descriptorprotected void attributeAdded(AttributeDescriptor ad)
ad - the attribute descriptorpublic java.lang.String getName()
public ObjectClassHandle getHandle()
public java.util.Collection getParentDescriptors()
public void addAttributeDescriptor(AttributeDescriptor ad)
ad - the attribute descriptor to addpublic void removeAttributeDescriptor(AttributeDescriptor ad)
ad - the attribute descriptor to removepublic AttributeDescriptor getAttributeDescriptor(java.lang.String name)
name - the name of the attribute
null if no such
descriptor existspublic AttributeDescriptor getAttributeDescriptor(AttributeHandle handle)
handle - the handle of the attribute
null if no such
descriptor existspublic java.util.Collection getAttributeDescriptors()
AttributeDescriptor.
public java.util.Collection getAttributeHandles()
public void parentsUpdated(HLAobjectClass source,
java.lang.String oldValue,
java.lang.String newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
parentsUpdated in interface HLAobjectClassListenersource - 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
public void sharingUpdated(HLAobjectClass source,
HLAsharingType oldValue,
HLAsharingType newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
sharingUpdated in interface HLAobjectClassListenersource - 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
public void attributesUpdated(HLAobjectClass source,
long[] oldValue,
long[] newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
attributesUpdated in interface HLAobjectClassListenersource - 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
public void semanticsUpdated(HLAobjectClass source,
java.lang.String oldValue,
java.lang.String newValue,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
semanticsUpdated in interface HLAobjectClassListenersource - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||