|
||||||||||
| 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.HLAinteractionClassProxy
Represents an HLA interaction class.
| Field Summary | |
private java.lang.String |
dimensions
The dimensions of the interaction. |
private AttributeHandle |
dimensionsHandle
The handle of the dimensions attribute. |
private boolean |
dimensionsIsDirty
Whether or not the dimensions attribute has changed. |
private boolean |
dimensionsIsValid
Whether or not the dimensions attribute has been set. |
private java.util.Vector |
HLAinteractionClassListeners
Listeners for attributes associated with the HLAinteractionClass class. |
private HLAorderType |
order
The order of the interaction. |
private AttributeHandle |
orderHandle
The handle of the order attribute. |
private boolean |
orderIsDirty
Whether or not the order attribute has changed. |
private boolean |
orderIsValid
Whether or not the order attribute has been set. |
private long[] |
parameters
The handles of the interaction parameters. |
private AttributeHandle |
parametersHandle
The handle of the parameters attribute. |
private boolean |
parametersIsDirty
Whether or not the parameters attribute has changed. |
private boolean |
parametersIsValid
Whether or not the parameters attribute has been set. |
private java.lang.String |
parents
The parents of the interaction class. |
private AttributeHandle |
parentsHandle
The handle of the parents attribute. |
private boolean |
parentsIsDirty
Whether or not the parents attribute has changed. |
private boolean |
parentsIsValid
Whether or not the parents attribute has been set. |
private java.lang.String |
semantics
The semantics of the interaction. |
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 HLAsharingType |
sharing
The types of sharing permitted on the interaction. |
private AttributeHandle |
sharingHandle
The handle of the sharing attribute. |
private boolean |
sharingIsDirty
Whether or not the sharing attribute has changed. |
private boolean |
sharingIsValid
Whether or not the sharing attribute has been set. |
private java.lang.String |
transportation
The transportation of the interaction. |
private AttributeHandle |
transportationHandle
The handle of the transportation attribute. |
private boolean |
transportationIsDirty
Whether or not the transportation attribute has changed. |
private boolean |
transportationIsValid
Whether or not the transportation 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 |
HLAinteractionClassProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
HLAinteractionClassProxy(RTIambassador pRTIAmbassador,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created to represent new locally owned objects. |
protected |
HLAinteractionClassProxy(RTIambassador pRTIAmbassador,
ObjectInstanceHandle pInstanceHandle,
ObjectClassHandle pClassHandle,
java.lang.String pName)
Constructor for object instance proxies created in response to discovered objects. |
| Method Summary | |
void |
addHLAinteractionClassListener(HLAinteractionClassListener l)
Adds a listener for attributes associated with the HLAinteractionClass class. |
protected void |
getAttributeValuesToFlush(AttributeHandleValueMap ahvm,
boolean superFlush)
Places the attribute values to flush into the specified map. |
java.lang.String |
getDimensions()
Returns the value of the dimensions attribute. |
HLAorderType |
getOrder()
Returns the value of the order attribute. |
long[] |
getParameters()
Returns the value of the parameters attribute. |
java.lang.String |
getParents()
Returns the value of the parents attribute. |
java.lang.String |
getSemantics()
Returns the value of the semantics attribute. |
HLAsharingType |
getSharing()
Returns the value of the sharing attribute. |
java.lang.String |
getTransportation()
Returns the value of the transportation 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 |
removeHLAinteractionClassListener(HLAinteractionClassListener l)
Removes a listener for attributes associated with the HLAinteractionClass class. |
void |
setDimensions(java.lang.String pDimensions,
byte[] userSuppliedTag)
Sets the value of the dimensions attribute. |
void |
setOrder(HLAorderType pOrder,
byte[] userSuppliedTag)
Sets the value of the order attribute. |
void |
setParameters(long[] pParameters,
byte[] userSuppliedTag)
Sets the value of the parameters attribute. |
void |
setParents(java.lang.String pParents,
byte[] userSuppliedTag)
Sets the value of the parents attribute. |
void |
setSemantics(java.lang.String pSemantics,
byte[] userSuppliedTag)
Sets the value of the semantics attribute. |
void |
setSharing(HLAsharingType pSharing,
byte[] userSuppliedTag)
Sets the value of the sharing attribute. |
void |
setTransportation(java.lang.String pTransportation,
byte[] userSuppliedTag)
Sets the value of the transportation 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 HLAinteractionClassListeners
private AttributeHandle parentsHandle
private boolean parentsIsValid
private boolean parentsIsDirty
private java.lang.String parents
private AttributeHandle sharingHandle
private boolean sharingIsValid
private boolean sharingIsDirty
private HLAsharingType sharing
private AttributeHandle dimensionsHandle
private boolean dimensionsIsValid
private boolean dimensionsIsDirty
private java.lang.String dimensions
private AttributeHandle transportationHandle
private boolean transportationIsValid
private boolean transportationIsDirty
private java.lang.String transportation
private AttributeHandle orderHandle
private boolean orderIsValid
private boolean orderIsDirty
private HLAorderType order
private AttributeHandle parametersHandle
private boolean parametersIsValid
private boolean parametersIsDirty
private long[] parameters
private AttributeHandle semanticsHandle
private boolean semanticsIsValid
private boolean semanticsIsDirty
private java.lang.String semantics
| Constructor Detail |
protected HLAinteractionClassProxy(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 HLAinteractionClassProxy(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 HLAinteractionClassProxy(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 addHLAinteractionClassListener(HLAinteractionClassListener l)
addHLAinteractionClassListener in interface HLAinteractionClassl - the listener to removepublic void removeHLAinteractionClassListener(HLAinteractionClassListener l)
removeHLAinteractionClassListener in interface HLAinteractionClassl - the listener to remove
public void setParents(java.lang.String pParents,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setParents in interface HLAinteractionClasspParents - 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 getParents()
getParents in interface HLAinteractionClass
public void setSharing(HLAsharingType pSharing,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setSharing in interface HLAinteractionClasspSharing - 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 HLAsharingType getSharing()
getSharing in interface HLAinteractionClass
public void setDimensions(java.lang.String pDimensions,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setDimensions in interface HLAinteractionClasspDimensions - 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 getDimensions()
getDimensions in interface HLAinteractionClass
public void setTransportation(java.lang.String pTransportation,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setTransportation in interface HLAinteractionClasspTransportation - 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 getTransportation()
getTransportation in interface HLAinteractionClass
public void setOrder(HLAorderType pOrder,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setOrder in interface HLAinteractionClasspOrder - 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 HLAorderType getOrder()
getOrder in interface HLAinteractionClass
public void setParameters(long[] pParameters,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setParameters in interface HLAinteractionClasspParameters - 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 long[] getParameters()
getParameters in interface HLAinteractionClass
public void setSemantics(java.lang.String pSemantics,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
AttributeNotOwned,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
setSemantics in interface HLAinteractionClasspSemantics - 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 HLAinteractionClass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||