|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.utilities.ObjectInstanceProxy
org.npsnet.xrti.proxies.HLAobjectRootProxy
org.npsnet.xrti.proxies.HLAreflectionProxy
org.npsnet.xrti.proxies.HLAdimensionProxy
Represents an HLA dimension.
| Field Summary | |
private java.lang.String |
dataType
The data type of the dimension. |
private AttributeHandle |
dataTypeHandle
The handle of the dataType attribute. |
private boolean |
dataTypeIsDirty
Whether or not the dataType attribute has changed. |
private boolean |
dataTypeIsValid
Whether or not the dataType attribute has been set. |
private java.util.Vector |
HLAdimensionListeners
Listeners for attributes associated with the HLAdimension class. |
private java.lang.String |
normalization
The normalization of the dimension. |
private AttributeHandle |
normalizationHandle
The handle of the normalization attribute. |
private boolean |
normalizationIsDirty
Whether or not the normalization attribute has changed. |
private boolean |
normalizationIsValid
Whether or not the normalization attribute has been set. |
private java.lang.String |
upperBound
The upper bound of the dimension. |
private AttributeHandle |
upperBoundHandle
The handle of the upperBound attribute. |
private boolean |
upperBoundIsDirty
Whether or not the upperBound attribute has changed. |
private boolean |
upperBoundIsValid
Whether or not the upperBound attribute has been set. |
private java.lang.String |
value
The value of the dimension. |
private AttributeHandle |
valueHandle
The handle of the value attribute. |
private boolean |
valueIsDirty
Whether or not the value attribute has changed. |
private boolean |
valueIsValid
Whether or not the value attribute has been set. |
| Fields inherited from class org.npsnet.xrti.proxies.HLAreflectionProxy |
|
| Fields inherited from class org.npsnet.xrti.proxies.HLAobjectRootProxy |
|
| Fields inherited from class org.npsnet.xrti.utilities.ObjectInstanceProxy |
autoFlushDisabled, classHandle, deleted, instanceHandle, rtiAmbassador |
| Constructor Summary | |
protected |
HLAdimensionProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
HLAdimensionProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
HLAdimensionProxy(RTIambassador pRTIAmbassador,
ObjectInstanceHandle pInstanceHandle,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created in response to discovered objects. |
| Method Summary | |
void |
addHLAdimensionListener(HLAdimensionListener l)
Adds a listener for attributes associated with the HLAdimension class. |
protected void |
getAttributeValuesToFlush(AttributeHandleValueMap ahvm,
boolean superFlush)
Places the attribute values to flush into the specified map. |
java.lang.String |
getDataType()
Returns the value of the dataType attribute. |
java.lang.String |
getNormalization()
Returns the value of the normalization attribute. |
java.lang.String |
getUpperBound()
Returns the value of the upperBound attribute. |
java.lang.String |
getValue()
Returns the value of the value attribute. |
private void |
initializeAttributes()
Initializes the attributes and their handles. |
void |
provideAttributeValueUpdate(AttributeHandleSet theAttributes,
byte[] userSuppliedTag)
Notifies the proxy that it should provide an update regarding a set of object attributes. |
void |
reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
Notifies the proxy of changes to the state of an object instance. |
void |
removeHLAdimensionListener(HLAdimensionListener l)
Removes a listener for attributes associated with the HLAdimension class. |
void |
setDataType(java.lang.String pDataType,
byte[] userSuppliedTag)
Sets the value of the dataType attribute. |
void |
setNormalization(java.lang.String pNormalization,
byte[] userSuppliedTag)
Sets the value of the normalization attribute. |
void |
setUpperBound(java.lang.String pUpperBound,
byte[] userSuppliedTag)
Sets the value of the upperBound attribute. |
void |
setValue(java.lang.String pValue,
byte[] userSuppliedTag)
Sets the value of the value attribute. |
| Methods inherited from class org.npsnet.xrti.proxies.HLAreflectionProxy |
addHLAreflectionListener, getName, removeHLAreflectionListener, setName |
| Methods inherited from class org.npsnet.xrti.proxies.HLAobjectRootProxy |
addHLAobjectRootListener, removeHLAobjectRootListener |
| Methods inherited from class org.npsnet.xrti.utilities.ObjectInstanceProxy |
delete, equals, flushAttributeValues, flushAttributeValues, getAutoFlushDisabled, getClassHandle, getInstanceHandle, hashCode, isDeleted, reflectAttributeValues, reflectAttributeValues, reflectAttributeValues, reflectAttributeValues, reflectAttributeValues, setAutoFlushDisabled, setDeleted, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.npsnet.xrti.proxies.HLAreflection |
addHLAreflectionListener, getName, removeHLAreflectionListener, setName |
| Methods inherited from interface org.npsnet.xrti.proxies.HLAobjectRoot |
addHLAobjectRootListener, removeHLAobjectRootListener |
| Field Detail |
private java.util.Vector HLAdimensionListeners
private AttributeHandle dataTypeHandle
private boolean dataTypeIsValid
private boolean dataTypeIsDirty
private java.lang.String dataType
private AttributeHandle upperBoundHandle
private boolean upperBoundIsValid
private boolean upperBoundIsDirty
private java.lang.String upperBound
private AttributeHandle normalizationHandle
private boolean normalizationIsValid
private boolean normalizationIsDirty
private java.lang.String normalization
private AttributeHandle valueHandle
private boolean valueIsValid
private boolean valueIsDirty
private java.lang.String value
| Constructor Detail |
protected HLAdimensionProxy(RTIambassador pRTIAmbassador,
ObjectInstanceHandle pInstanceHandle,
ObjectClassHandle pClassHandle,
java.lang.String pName)
throws RTIinternalError
pRTIAmbassador - the run-time infrastructure ambassadorpInstanceHandle - the object instance handlepClassHandle - the object class handlepName - the object name
RTIinternalError - if an internal error occurred in the
run-time infrastructure
protected HLAdimensionProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle)
throws ObjectClassNotDefined,
ObjectClassNotPublished,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
pRTIAmbassador - the run-time infrastructure ambassadorpClassHandle - the object class handle
ObjectClassNotDefined - if the specified object class is not defined
ObjectClassNotPublished - if the specified object class is not published
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the
run-time infrastructure
protected HLAdimensionProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle,
java.lang.String pName)
throws ObjectClassNotDefined,
ObjectClassNotPublished,
IllegalName,
ObjectInstanceNameInUse,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
pRTIAmbassador - the run-time infrastructure ambassadorpClassHandle - the object class handlepName - the object name
ObjectClassNotDefined - if the specified object class is not defined
ObjectClassNotPublished - if the specified object class is not published
IllegalName - if the instance name has is illegal
ObjectInstanceNameInUse - if the instance name is already in use
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the
run-time infrastructure| Method Detail |
private void initializeAttributes()
throws InvalidObjectClassHandle,
NameNotFound,
ObjectClassNotDefined,
AttributeNotDefined,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
InvalidObjectClassHandle - if an object class handle is invalid
NameNotFound - if a name is not found
ObjectClassNotDefined - if an object class is not defined
AttributeNotDefined - if an attribute is not defined
FederateNotExecutionMember - if the federate is not an execution member
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the run-time
infrastructure
public void reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
throws AttributeNotRecognized,
AttributeNotSubscribed,
FederateInternalError
reflectAttributeValues in class HLAreflectionProxytheAttributes - the map between attribute handles and the new values of
the identified attributesuserSuppliedTag - a user-supplied tag associated with the state changesentOrdering - the type of ordering with which the update was senttheTransport - the type of transport associated with the update
AttributeNotRecognized - if the attribute was not recognized
AttributeNotSubscribed - if the federate had not subscribed to the
attribute
FederateInternalError - if an error occurs in the federate
public void provideAttributeValueUpdate(AttributeHandleSet theAttributes,
byte[] userSuppliedTag)
throws AttributeNotRecognized,
AttributeNotOwned,
FederateInternalError
provideAttributeValueUpdate in class HLAreflectionProxytheAttributes - the set of attribute handles identifying the attributes that
should be sentuserSuppliedTag - the user-supplied tag associated with the request
AttributeNotRecognized - if an identified attribute was not recognized
AttributeNotOwned - if the federate did not own a specified attribute
FederateInternalError - if an error occurs in the federate
protected void getAttributeValuesToFlush(AttributeHandleValueMap ahvm,
boolean superFlush)
throws RTIinternalError
getAttributeValuesToFlush in class HLAreflectionProxyahvm - the attribute handle value map to populatesuperFlush - if true provide updates for all attributes;
if false, only provide updates for the modified ones
RTIinternalError - if an internal error occurs in the run-time
infrastructurepublic void addHLAdimensionListener(HLAdimensionListener l)
addHLAdimensionListener in interface HLAdimensionl - the listener to removepublic void removeHLAdimensionListener(HLAdimensionListener l)
removeHLAdimensionListener in interface HLAdimensionl - the listener to remove
public void setDataType(java.lang.String pDataType,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setDataType in interface HLAdimensionpDataType - the new attribute valueuserSuppliedTag - a user-supplied tag to associate with the action
ObjectInstanceNotKnown - if the object instance is unknown
AttributeNotDefined - if one of the attributes is undefined
AttributeNotOwned - if one of the attributes is not owned
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the
run-time infrastructurepublic java.lang.String getDataType()
getDataType in interface HLAdimension
public void setUpperBound(java.lang.String pUpperBound,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setUpperBound in interface HLAdimensionpUpperBound - the new attribute valueuserSuppliedTag - a user-supplied tag to associate with the action
ObjectInstanceNotKnown - if the object instance is unknown
AttributeNotDefined - if one of the attributes is undefined
AttributeNotOwned - if one of the attributes is not owned
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the
run-time infrastructurepublic java.lang.String getUpperBound()
getUpperBound in interface HLAdimension
public void setNormalization(java.lang.String pNormalization,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setNormalization in interface HLAdimensionpNormalization - the new attribute valueuserSuppliedTag - a user-supplied tag to associate with the action
ObjectInstanceNotKnown - if the object instance is unknown
AttributeNotDefined - if one of the attributes is undefined
AttributeNotOwned - if one of the attributes is not owned
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the
run-time infrastructurepublic java.lang.String getNormalization()
getNormalization in interface HLAdimension
public void setValue(java.lang.String pValue,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setValue in interface HLAdimensionpValue - the new attribute valueuserSuppliedTag - a user-supplied tag to associate with the action
ObjectInstanceNotKnown - if the object instance is unknown
AttributeNotDefined - if one of the attributes is undefined
AttributeNotOwned - if one of the attributes is not owned
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the
run-time infrastructurepublic java.lang.String getValue()
getValue in interface HLAdimension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||