org.npsnet.xrti
Class DimensionDescriptor

java.lang.Object
  extended byorg.npsnet.xrti.DimensionDescriptor
All Implemented Interfaces:
HLAdimensionListener

public class DimensionDescriptor
extends java.lang.Object
implements HLAdimensionListener

Describes a dimension.

Author:
Andrzej Kapolka

Constructor Summary
DimensionDescriptor(java.lang.String pName, DimensionHandle pHandle, HLAdimension pProxy)
          Constructor.
DimensionDescriptor(java.lang.String pName, DimensionHandle pHandle, long pUpperBound)
          Constructor.
 
Method Summary
 void dataTypeUpdated(HLAdimension 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.
 DimensionHandle getHandle()
          Returns the handle of this dimension.
 java.lang.String getName()
          Returns the name of this dimension.
 long getUpperBound()
          Returns the upper bound of this dimension.
 void normalizationUpdated(HLAdimension source, java.lang.String oldValue, java.lang.String newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the normalization attribute has been updated.
 void upperBoundUpdated(HLAdimension source, java.lang.String oldValue, java.lang.String newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the upperBound attribute has been updated.
 void valueUpdated(HLAdimension source, java.lang.String oldValue, java.lang.String newValue, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the listener that the value attribute has been updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DimensionDescriptor

public DimensionDescriptor(java.lang.String pName,
                           DimensionHandle pHandle,
                           long pUpperBound)
Constructor.

Parameters:
pName - the name of the dimension
pHandle - the handle of the dimension
pUpperBound - the upper bound of the dimension

DimensionDescriptor

public DimensionDescriptor(java.lang.String pName,
                           DimensionHandle pHandle,
                           HLAdimension pProxy)
Constructor.

Parameters:
pName - the name of the dimension
pHandle - the handle of the dimension
pProxy - the proxy that corresponds to a remote instance
Method Detail

getName

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

Returns:
the name of this dimension

getHandle

public DimensionHandle getHandle()
Returns the handle of this dimension.

Returns:
the handle of this dimension

getUpperBound

public long getUpperBound()
Returns the upper bound of this dimension.

Returns:
the upper bound of this dimension

dataTypeUpdated

public void dataTypeUpdated(HLAdimension 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 HLAdimensionListener
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

upperBoundUpdated

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

Specified by:
upperBoundUpdated in interface HLAdimensionListener
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

normalizationUpdated

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

Specified by:
normalizationUpdated in interface HLAdimensionListener
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

valueUpdated

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

Specified by:
valueUpdated in interface HLAdimensionListener
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