|
||||||||||
| 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.HLAdataTypeProxy
org.npsnet.xrti.proxies.HLAsimpleDataTypeProxy
Represents an HLA simple data type.
| Field Summary | |
private java.lang.String |
accuracy
The accuracy of the simple type. |
private AttributeHandle |
accuracyHandle
The handle of the accuracy attribute. |
private boolean |
accuracyIsDirty
Whether or not the accuracy attribute has changed. |
private boolean |
accuracyIsValid
Whether or not the accuracy attribute has been set. |
private java.util.Vector |
HLAsimpleDataTypeListeners
Listeners for attributes associated with the HLAsimpleDataType class. |
private java.lang.String |
representation
The representation of the simple type. |
private AttributeHandle |
representationHandle
The handle of the representation attribute. |
private boolean |
representationIsDirty
Whether or not the representation attribute has changed. |
private boolean |
representationIsValid
Whether or not the representation attribute has been set. |
private java.lang.String |
resolution
The resolution of the simple type. |
private AttributeHandle |
resolutionHandle
The handle of the resolution attribute. |
private boolean |
resolutionIsDirty
Whether or not the resolution attribute has changed. |
private boolean |
resolutionIsValid
Whether or not the resolution attribute has been set. |
private java.lang.String |
semantics
The semantics of the simple type. |
private AttributeHandle |
semanticsHandle
The handle of the semantics attribute. |
private boolean |
semanticsIsDirty
Whether or not the semantics attribute has changed. |
private boolean |
semanticsIsValid
Whether or not the semantics attribute has been set. |
private java.lang.String |
units
The units of the simple type. |
private AttributeHandle |
unitsHandle
The handle of the units attribute. |
private boolean |
unitsIsDirty
Whether or not the units attribute has changed. |
private boolean |
unitsIsValid
Whether or not the units attribute has been set. |
| Fields inherited from class org.npsnet.xrti.proxies.HLAdataTypeProxy |
|
| 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 |
HLAsimpleDataTypeProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
HLAsimpleDataTypeProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
HLAsimpleDataTypeProxy(RTIambassador pRTIAmbassador,
ObjectInstanceHandle pInstanceHandle,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created in response to discovered objects. |
| Method Summary | |
void |
addHLAsimpleDataTypeListener(HLAsimpleDataTypeListener l)
Adds a listener for attributes associated with the HLAsimpleDataType class. |
java.lang.String |
getAccuracy()
Returns the value of the accuracy attribute. |
protected void |
getAttributeValuesToFlush(AttributeHandleValueMap ahvm,
boolean superFlush)
Places the attribute values to flush into the specified map. |
java.lang.String |
getRepresentation()
Returns the value of the representation attribute. |
java.lang.String |
getResolution()
Returns the value of the resolution attribute. |
java.lang.String |
getSemantics()
Returns the value of the semantics attribute. |
java.lang.String |
getUnits()
Returns the value of the units 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 |
removeHLAsimpleDataTypeListener(HLAsimpleDataTypeListener l)
Removes a listener for attributes associated with the HLAsimpleDataType class. |
void |
setAccuracy(java.lang.String pAccuracy,
byte[] userSuppliedTag)
Sets the value of the accuracy attribute. |
void |
setRepresentation(java.lang.String pRepresentation,
byte[] userSuppliedTag)
Sets the value of the representation attribute. |
void |
setResolution(java.lang.String pResolution,
byte[] userSuppliedTag)
Sets the value of the resolution attribute. |
void |
setSemantics(java.lang.String pSemantics,
byte[] userSuppliedTag)
Sets the value of the semantics attribute. |
void |
setUnits(java.lang.String pUnits,
byte[] userSuppliedTag)
Sets the value of the units attribute. |
| Methods inherited from class org.npsnet.xrti.proxies.HLAdataTypeProxy |
addHLAdataTypeListener, removeHLAdataTypeListener |
| 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.HLAdataType |
addHLAdataTypeListener, removeHLAdataTypeListener |
| 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 HLAsimpleDataTypeListeners
private AttributeHandle representationHandle
private boolean representationIsValid
private boolean representationIsDirty
private java.lang.String representation
private AttributeHandle unitsHandle
private boolean unitsIsValid
private boolean unitsIsDirty
private java.lang.String units
private AttributeHandle resolutionHandle
private boolean resolutionIsValid
private boolean resolutionIsDirty
private java.lang.String resolution
private AttributeHandle accuracyHandle
private boolean accuracyIsValid
private boolean accuracyIsDirty
private java.lang.String accuracy
private AttributeHandle semanticsHandle
private boolean semanticsIsValid
private boolean semanticsIsDirty
private java.lang.String semantics
| Constructor Detail |
protected HLAsimpleDataTypeProxy(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 HLAsimpleDataTypeProxy(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 HLAsimpleDataTypeProxy(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 HLAdataTypeProxytheAttributes - 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 HLAdataTypeProxytheAttributes - 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 HLAdataTypeProxyahvm - 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 addHLAsimpleDataTypeListener(HLAsimpleDataTypeListener l)
addHLAsimpleDataTypeListener in interface HLAsimpleDataTypel - the listener to removepublic void removeHLAsimpleDataTypeListener(HLAsimpleDataTypeListener l)
removeHLAsimpleDataTypeListener in interface HLAsimpleDataTypel - the listener to remove
public void setRepresentation(java.lang.String pRepresentation,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setRepresentation in interface HLAsimpleDataTypepRepresentation - 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 getRepresentation()
getRepresentation in interface HLAsimpleDataType
public void setUnits(java.lang.String pUnits,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setUnits in interface HLAsimpleDataTypepUnits - 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 getUnits()
getUnits in interface HLAsimpleDataType
public void setResolution(java.lang.String pResolution,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setResolution in interface HLAsimpleDataTypepResolution - 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 getResolution()
getResolution in interface HLAsimpleDataType
public void setAccuracy(java.lang.String pAccuracy,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setAccuracy in interface HLAsimpleDataTypepAccuracy - 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 getAccuracy()
getAccuracy in interface HLAsimpleDataType
public void setSemantics(java.lang.String pSemantics,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setSemantics in interface HLAsimpleDataTypepSemantics - 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 getSemantics()
getSemantics in interface HLAsimpleDataType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||