|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.utilities.ObjectInstanceProxy
The base class of all object instance proxies.
| Field Summary | |
protected boolean |
autoFlushDisabled
Whether or not automatic state flushing has been disabled. |
protected ObjectClassHandle |
classHandle
The object class handle. |
protected boolean |
deleted
Whether or not the object instance has been deleted. |
protected ObjectInstanceHandle |
instanceHandle
The object instance handle. |
protected java.lang.String |
name
The object name. |
protected RTIambassador |
rtiAmbassador
The run-time infrastructure ambassador. |
| Constructor Summary | |
protected |
ObjectInstanceProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
ObjectInstanceProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
ObjectInstanceProxy(RTIambassador pRTIAmbassador,
ObjectInstanceHandle pInstanceHandle,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created in response to discovered objects. |
| Method Summary | |
void |
delete()
Deletes the object instance that this proxy represents. |
boolean |
equals(java.lang.Object otherObjectInstanceProxy)
Checks whether this proxy represents the same object instance as another proxy. |
void |
flushAttributeValues(byte[] userSuppliedTag)
Flushes all modified attribute values. |
void |
flushAttributeValues(byte[] userSuppliedTag,
boolean superFlush)
Flushes all, or all modified attribute values. |
protected void |
getAttributeValuesToFlush(AttributeHandleValueMap ahvm,
boolean superFlush)
Places the attribute values to flush into the specified map. |
boolean |
getAutoFlushDisabled()
Checks whether auto-flush behavior is disabled for this proxy. |
ObjectClassHandle |
getClassHandle()
Returns the object class handle. |
ObjectInstanceHandle |
getInstanceHandle()
Returns the object instance handle. |
java.lang.String |
getName()
Return the object instance name. |
int |
hashCode()
Computes and returns a hash code corresponding to the object instance that this proxy represents. |
boolean |
isDeleted()
Checks whether the object instance that this proxy represents has been deleted. |
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 |
reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering)
Notifies the proxy of changes to the state of an object instance. |
void |
reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering,
MessageRetractionHandle retractionHandle)
Notifies the proxy of changes to the state of an object instance. |
void |
reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering,
MessageRetractionHandle retractionHandle,
RegionHandleSet sentRegions)
Notifies the proxy of changes to the state of an object instance. |
void |
reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering,
RegionHandleSet sentRegions)
Notifies the proxy of changes to the state of an object instance. |
void |
reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
RegionHandleSet sentRegions)
Notifies the proxy of changes to the state of an object instance. |
void |
setAutoFlushDisabled(boolean pAutoFlushDisabled)
Disables or enables auto-flush behavior for this proxy. |
protected void |
setDeleted(boolean pDeleted)
Sets whether the object instance that this proxy represents has been deleted. |
java.lang.String |
toString()
Returns a string representation of this object instance proxy. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected RTIambassador rtiAmbassador
protected ObjectInstanceHandle instanceHandle
protected ObjectClassHandle classHandle
protected java.lang.String name
protected boolean autoFlushDisabled
protected boolean deleted
| Constructor Detail |
protected ObjectInstanceProxy(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 ObjectInstanceProxy(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 ObjectInstanceProxy(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 |
public void reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
throws AttributeNotRecognized,
AttributeNotSubscribed,
FederateInternalError
theAttributes - 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 reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
RegionHandleSet sentRegions)
throws AttributeNotRecognized,
AttributeNotSubscribed,
FederateInternalError
theAttributes - 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 updatesentRegions - the set of region handles identifying the regions associated
with the attribute 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 reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering)
throws AttributeNotRecognized,
AttributeNotSubscribed,
FederateInternalError
theAttributes - 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 updatetheTime - the logical time associated with the attribute updatereceivedOrdering - the type of ordering with which the update was received
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 reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering,
RegionHandleSet sentRegions)
throws AttributeNotRecognized,
AttributeNotSubscribed,
FederateInternalError
theAttributes - 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 updatetheTime - the logical time associated with the attribute updatereceivedOrdering - the type of ordering with which the update was receivedsentRegions - the set of region handles identifying the regions associated
with the attribute 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 reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering,
MessageRetractionHandle retractionHandle)
throws AttributeNotRecognized,
AttributeNotSubscribed,
InvalidLogicalTime,
FederateInternalError
theAttributes - 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 updatetheTime - the logical time associated with the attribute updatereceivedOrdering - the type of ordering with which the update was receivedretractionHandle - the message retraction handle
AttributeNotRecognized - if the attribute was not recognized
AttributeNotSubscribed - if the federate had not subscribed to the
attribute
InvalidLogicalTime - if the specified logical time was invalid
FederateInternalError - if an error occurs in the federate
public void reflectAttributeValues(AttributeHandleValueMap theAttributes,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport,
LogicalTime theTime,
OrderType receivedOrdering,
MessageRetractionHandle retractionHandle,
RegionHandleSet sentRegions)
throws AttributeNotRecognized,
AttributeNotSubscribed,
InvalidLogicalTime,
FederateInternalError
theAttributes - 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 updatetheTime - the logical time associated with the attribute updatereceivedOrdering - the type of ordering with which the update was receivedretractionHandle - the message retraction handlesentRegions - the set of region handles identifying the regions associated
with the attribute update
AttributeNotRecognized - if the attribute was not recognized
AttributeNotSubscribed - if the federate had not subscribed to the
attribute
InvalidLogicalTime - if the specified logical time was invalid
FederateInternalError - if an error occurs in the federate
public void provideAttributeValueUpdate(AttributeHandleSet theAttributes,
byte[] userSuppliedTag)
throws AttributeNotRecognized,
AttributeNotOwned,
FederateInternalError
theAttributes - 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
public void flushAttributeValues(byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
userSuppliedTag - the user-supplied tag to associate with the update
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 infrastructure
public void flushAttributeValues(byte[] userSuppliedTag,
boolean superFlush)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
userSuppliedTag - the user-supplied tag to associate with the updatesuperFlush - if true provide updates for all attributes;
if false, only provide updates for the modified ones
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 infrastructure
protected void getAttributeValuesToFlush(AttributeHandleValueMap ahvm,
boolean superFlush)
throws RTIinternalError
ahvm - 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 boolean equals(java.lang.Object otherObjectInstanceProxy)
otherObjectInstanceProxy - the object instance proxy to compare this to
true if the two proxies represent the same object instance,
false otherwisepublic int hashCode()
public java.lang.String toString()
public ObjectInstanceHandle getInstanceHandle()
public ObjectClassHandle getClassHandle()
public java.lang.String getName()
public void setAutoFlushDisabled(boolean pAutoFlushDisabled)
pAutoFlushDisabled - true to disable
auto-flush, false to enable itpublic boolean getAutoFlushDisabled()
true if auto-flush is disabled, false
otherwise
public void delete()
throws DeletePrivilegeNotHeld,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
DeletePrivilegeNotHeld - if the delete privilege is not held
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 infrastructureprotected void setDeleted(boolean pDeleted)
pDeleted - whether or not the object instance has been deletedpublic boolean isDeleted()
true if the object instance has been deleted, false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||