org.npsnet.xrti
Class AttributeDescriptor

java.lang.Object
  extended byorg.npsnet.xrti.AttributeDescriptor
All Implemented Interfaces:
HLAattributeListener

public class AttributeDescriptor
extends java.lang.Object
implements HLAattributeListener

Describes an attribute.

Author:
Andrzej Kapolka

Constructor Summary
AttributeDescriptor(DescriptorManager pDescriptorManager, java.lang.String pName, AttributeHandle pHandle, HLAattribute pProxy)
          Constructor.
AttributeDescriptor(java.lang.String pName, AttributeHandle pHandle, DimensionHandleSet pDimensions, TransportationType pTransportation, OrderType pOrder)
          Constructor.
 
Method Summary
 void dataTypeUpdated(HLAattribute source, java.lang.String oldValue, java.lang.String newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the dataType attribute has been updated.
 void dimensionsUpdated(HLAattribute source, java.lang.String oldValue, java.lang.String newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the dimensions attribute has been updated.
 DimensionHandleSet getDimensions()
          Returns the dimensions associated with this attribute.
 AttributeHandle getHandle()
          Returns the handle of this attribute.
 java.lang.String getName()
          Returns the name of this attribute.
 OrderType getOrder()
          Returns the order type of this attribute.
 TransportationType getTransportation()
          Returns the transportation type of this attribute.
 boolean isPublished()
          Checks whether or not this attribute is published.
 boolean isSubscribed()
          Checks whether or not this attribute is subscribed.
 void orderUpdated(HLAattribute source, HLAorderType oldValue, HLAorderType newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the order attribute has been updated.
 void ownershipUpdated(HLAattribute source, HLAownershipType oldValue, HLAownershipType newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the ownership attribute has been updated.
 void semanticsUpdated(HLAattribute 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 setOrder(OrderType pOrder)
          Sets the order type of this attribute.
 void setPublished(boolean pPublished)
          Sets whether or not this attribute is published.
 void setSubscribed(boolean pSubscribed)
          Sets whether or not this attribute is subscribed.
 void setTransportation(TransportationType pTransportation)
          Sets the transportation type of this attribute.
 void sharingUpdated(HLAattribute source, HLAsharingType oldValue, HLAsharingType newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the sharing attribute has been updated.
 void transportationUpdated(HLAattribute source, java.lang.String oldValue, java.lang.String newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the transportation attribute has been updated.
 void updateConditionUpdated(HLAattribute source, java.lang.String oldValue, java.lang.String newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the updateCondition attribute has been updated.
 void updateTypeUpdated(HLAattribute source, HLAupdateType oldValue, HLAupdateType newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the updateType attribute has been updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDescriptor

public AttributeDescriptor(java.lang.String pName,
                           AttributeHandle pHandle,
                           DimensionHandleSet pDimensions,
                           TransportationType pTransportation,
                           OrderType pOrder)
Constructor.

Parameters:
pName - the name of the attribute
pHandle - the handle of the attribute
pDimensions - the dimensions associated with the attribute
pTransportation - the transportation type of the attribute
pOrder - the order type of the attribute

AttributeDescriptor

public AttributeDescriptor(DescriptorManager pDescriptorManager,
                           java.lang.String pName,
                           AttributeHandle pHandle,
                           HLAattribute pProxy)
Constructor.

Parameters:
pDescriptorManager - the descriptor manager responsible for this descriptor
pName - the name of the attribute
pHandle - the handle of the attribute
pProxy - the proxy that corresponds to a remote object
Method Detail

getName

public java.lang.String getName()
Returns the name of this attribute.

Returns:
the name of this attribute

getHandle

public AttributeHandle getHandle()
Returns the handle of this attribute.

Returns:
the handle of this attribute

getDimensions

public DimensionHandleSet getDimensions()
Returns the dimensions associated with this attribute.

Returns:
the dimensions associated with this attribute

setTransportation

public void setTransportation(TransportationType pTransportation)
Sets the transportation type of this attribute.

Parameters:
pTransportation - the new transportation type for this attribute

getTransportation

public TransportationType getTransportation()
Returns the transportation type of this attribute.

Returns:
the transportation type of this attribute

setOrder

public void setOrder(OrderType pOrder)
Sets the order type of this attribute.

Parameters:
pOrder - the new order type for this attribute

getOrder

public OrderType getOrder()
Returns the order type of this attribute.

Returns:
the order type of this attribute

setPublished

public void setPublished(boolean pPublished)
Sets whether or not this attribute is published.

Parameters:
pPublished - whether or not this attribute is published

isPublished

public boolean isPublished()
Checks whether or not this attribute is published.

Returns:
whether or not this attribute is published

setSubscribed

public void setSubscribed(boolean pSubscribed)
Sets whether or not this attribute is subscribed.


isSubscribed

public boolean isSubscribed()
Checks whether or not this attribute is subscribed.

Returns:
whether or not this attribute is subscribed

dataTypeUpdated

public void dataTypeUpdated(HLAattribute source,
                            java.lang.String oldValue,
                            java.lang.String newValue,
                            byte[] userSuppliedTag,
                            OrderType sentOrdering,
                            TransportationType theTransport)
Notifies the listener that the dataType attribute has been updated.

Specified by:
dataTypeUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

updateTypeUpdated

public void updateTypeUpdated(HLAattribute source,
                              HLAupdateType oldValue,
                              HLAupdateType newValue,
                              byte[] userSuppliedTag,
                              OrderType sentOrdering,
                              TransportationType theTransport)
Notifies the listener that the updateType attribute has been updated.

Specified by:
updateTypeUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

updateConditionUpdated

public void updateConditionUpdated(HLAattribute source,
                                   java.lang.String oldValue,
                                   java.lang.String newValue,
                                   byte[] userSuppliedTag,
                                   OrderType sentOrdering,
                                   TransportationType theTransport)
Notifies the listener that the updateCondition attribute has been updated.

Specified by:
updateConditionUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

ownershipUpdated

public void ownershipUpdated(HLAattribute source,
                             HLAownershipType oldValue,
                             HLAownershipType newValue,
                             byte[] userSuppliedTag,
                             OrderType sentOrdering,
                             TransportationType theTransport)
Notifies the listener that the ownership attribute has been updated.

Specified by:
ownershipUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

sharingUpdated

public void sharingUpdated(HLAattribute source,
                           HLAsharingType oldValue,
                           HLAsharingType newValue,
                           byte[] userSuppliedTag,
                           OrderType sentOrdering,
                           TransportationType theTransport)
Notifies the listener that the sharing attribute has been updated.

Specified by:
sharingUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

dimensionsUpdated

public void dimensionsUpdated(HLAattribute source,
                              java.lang.String oldValue,
                              java.lang.String newValue,
                              byte[] userSuppliedTag,
                              OrderType sentOrdering,
                              TransportationType theTransport)
Notifies the listener that the dimensions attribute has been updated.

Specified by:
dimensionsUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

transportationUpdated

public void transportationUpdated(HLAattribute source,
                                  java.lang.String oldValue,
                                  java.lang.String newValue,
                                  byte[] userSuppliedTag,
                                  OrderType sentOrdering,
                                  TransportationType theTransport)
Notifies the listener that the transportation attribute has been updated.

Specified by:
transportationUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

orderUpdated

public void orderUpdated(HLAattribute source,
                         HLAorderType oldValue,
                         HLAorderType newValue,
                         byte[] userSuppliedTag,
                         OrderType sentOrdering,
                         TransportationType theTransport)
Notifies the listener that the order attribute has been updated.

Specified by:
orderUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update

semanticsUpdated

public void semanticsUpdated(HLAattribute 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.

Specified by:
semanticsUpdated in interface HLAattributeListener
Parameters:
source - the source of the notification
oldValue - the old value of the attribute
newValue - the new value of the attribute
userSuppliedTag - the user-supplied tag associated with the update
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update