|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.XRTIAmbassador
org.npsnet.xrti.FederationExecutionAmbassador
A special version of the XRTIAmbassador that the
XRTIExecutive uses to address federation
executions.
| Field Summary | |
private static java.lang.String |
ACCURACY
The accuracy attribute. |
private static java.lang.String |
ALTERNATIVE
The alternative tag. |
private static java.lang.String |
ARRAY_DATA
The array data tag. |
private java.util.HashMap |
arrayDataTypeNameProxyMap
Maps array data type names to their proxies. |
private static java.lang.String |
ATTRIBUTE
The attribute tag. |
private static java.lang.String |
BASIC_DATA
The basic data tag. |
private java.util.HashMap |
basicRepresentationNameProxyMap
Maps basic representation names to their proxies. |
private static java.lang.String |
CAPABILITY
The capability attribute. |
private static java.lang.String |
CARDINALITY
The cardinality attribute. |
private static java.lang.String |
DATA_TYPE
The data type attribute. |
private static java.lang.String |
DESCRIPTION
The description attribute. |
private static java.lang.String |
DIMENSION
The dimension tag. |
private java.util.HashMap |
dimensionNameProxyMap
Maps dimension names to their proxies. |
private static java.lang.String |
DIMENSIONS
The dimensions attribute. |
private static java.lang.String |
DISCRIMINANT
The discriminant attribute. |
private static java.lang.String |
ENCODING
The encoding attribute. |
private static java.lang.String |
ENDIAN
The endian attribute. |
private static java.lang.String |
ENUMERATED_DATA
The enumerated data tag. |
private java.util.HashMap |
enumeratedDataTypeNameProxyMap
Maps enumerated data type names to their proxies. |
private static java.lang.String |
ENUMERATOR
The enumerator tag. |
private HLAfederationExecutionProxy |
executionProxy
The federation execution proxy in the meta-federation. |
private XRTIExecutive |
executive
The owning XRTIExecutive. |
private java.util.Vector |
executiveClientAmbassadors
The list of registered executive client ambassadors. |
private static java.lang.String |
FIELD
The field tag. |
private static java.lang.String |
FIXED_RECORD_DATA
The fixed record data tag. |
private java.util.HashMap |
fixedRecordDataTypeNameProxyMap
Maps fixed record data type names to their proxies. |
private static java.lang.String |
INTERACTION_CLASS
The interaction class tag. |
private java.util.HashMap |
interactionClassNameProxyMap
Maps interaction class names to their proxies. |
private static java.lang.String |
INTERPRETATION
The interpretation attribute. |
private static java.lang.String |
LABEL
The label attribute. |
private static java.lang.String |
NAME
The name attribute. |
private static java.lang.String |
NORMALIZATION
The normalization attribute. |
private static java.lang.String |
OBJECT_CLASS
The object class tag. |
private java.util.HashMap |
objectClassNameProxyMap
Maps object class names to their proxies. |
private java.util.HashMap |
objectInstanceHandleOwnerMap
Maps object instance handles to the executive client ambassadors of their owners. |
private static java.lang.String |
ORDER
The order attribute. |
private static java.lang.String |
OWNERSHIP
The ownership attribute. |
private static java.lang.String |
PARAMETER
The parameter tag. |
private static java.lang.String |
PARENTS
The parents attribute. |
private static java.lang.String |
REPRESENTATION
The representation attribute. |
private static java.lang.String |
RESOLUTION
The resolution attribute. |
private static java.lang.String |
SEMANTICS
The semantics attribute. |
private static java.lang.String |
SHARING
The sharing attribute. |
private static java.lang.String |
SIMPLE_DATA
The simple data tag. |
private java.util.HashMap |
simpleDataTypeNameProxyMap
Maps simple data type names to their proxies. |
private static java.lang.String |
SIZE
The size attribute. |
private static java.lang.String |
SYNCHRONIZATION
The synchronization tag. |
private java.util.HashMap |
synchronizationNameProxyMap
Maps synchronization names to their proxies. |
private java.util.Map |
synchronizationPointLabelMap
Maps synchronization point labels to their instances. |
private static java.lang.String |
TRANSPORTATION
The transportation tag. |
private java.util.HashMap |
transportationNameProxyMap
Maps transportation names to their proxies. |
private static java.lang.String |
UNITS
The units attribute. |
private static java.lang.String |
UPDATE_CONDITION
The update condition attribute. |
private static java.lang.String |
UPDATE_TYPE
The update type attribute. |
private static java.lang.String |
UPPER_BOUND
The upper bound attribute. |
private static java.lang.String |
VALUE
The value attribute. |
private static java.lang.String |
VALUES
The values attribute. |
private static java.lang.String |
VARIANT_RECORD_DATA
The variant record data tag. |
private java.util.HashMap |
variantRecordDataTypeNameProxyMap
Maps variant record data type names to their proxies. |
| Constructor Summary | |
protected |
FederationExecutionAmbassador(XRTIExecutive pExecutive,
HLAfederationExecutionProxy pExecutionProxy,
java.lang.String pExecutionName,
long pExecutionHandle)
Constructor. |
| Method Summary | |
protected boolean |
allZeroLookaheadFederatesRestricted(ExecutiveClientAmbassador eca)
Returns true if all zero lookahead federates in current federation execution are subject of zero lookahead restriction, false otherwise. |
private void |
computeAllGaltValues(ExecutiveClientAmbassador eca)
Performs computation of the Greatest Available Logical Time (GALT) for all federates in current federation execution. |
void |
createReflectionObjects(org.w3c.dom.Document fdd)
Creates reflection objects corresponding to the elements of the specifed federation description document. |
void |
deleteObjectInstance(ExecutiveClientAmbassador eca,
ObjectInstanceHandle oih,
byte[] userSuppliedTag)
Deletes the object instance with the specified handle. |
void |
deregisterExecutiveClientAmbassador(ExecutiveClientAmbassador eca)
Removes an executive client ambassador from this federation execution. |
HLAfederationExecutionProxy |
getExecutionProxy()
Returns a reference to the federation execution proxy in the meta-federation. |
protected java.util.Vector |
getExecutiveClientAmbassadors()
Returns the list of registered executive client ambassadors. |
protected void |
handleTimeRequest(ExecutiveClientAmbassador eca)
Handles time request received from a federate. |
boolean |
hasExecutiveClientAmbassadors()
Checks whether or not this federation execution has any executive client ambassadors registered. |
void |
publishInteractionClass(InteractionClassHandle theInteraction)
Publishes the specified interaction class. |
void |
publishObjectClassAttributes(ObjectClassHandle theClass,
AttributeHandleSet attributeList)
Publishes the specified object class attributes. |
void |
registerExecutiveClientAmbassador(ExecutiveClientAmbassador eca)
Adds an executive client ambassador to this federation execution. |
boolean |
registerFederationSynchronizationPoint(ExecutiveClientAmbassador eca,
java.lang.String synchronizationPointLabel,
byte[] userSuppliedTag,
FederateHandleSet synchronizationSet)
Registers a federation synchronization point. |
void |
registerObjectInstance(ExecutiveClientAmbassador eca,
ObjectInstanceDescriptor oid,
byte[] userSuppliedTag)
Registers an object instance created by a federate. |
void |
registerObjectInstances(ExecutiveClientAmbassador eca,
ObjectClassHandle och)
Registers all instances of a particular class. |
void |
requestAttributeValueUpdate(ObjectInstanceHandle theObject,
AttributeHandleSet theAttributes,
byte[] userSuppliedTag)
Requests an attribute value update. |
private void |
sendAllPossibleTimeAdvanceGrants(ExecutiveClientAmbassador eca)
Sends all possible timeAdvanceGrant callbacks to all federates in current federation execution. |
void |
sendInteraction(ExecutiveClientAmbassador eca,
InteractionClassHandle theInteraction,
ParameterHandleValueMap theParameters,
byte[] userSuppliedTag,
TransportationType theTransport,
OrderType sentOrdering,
LogicalTime theTime)
Sends an interaction received from a federate. |
void |
sendInteraction(InteractionClassHandle theInteraction,
ParameterHandleValueMap theParameters,
byte[] userSuppliedTag)
Sends an interaction. |
void |
subscribeInteractionClass(InteractionClassHandle theClass)
Subscribes to the specified interaction class. |
void |
subscribeObjectClassAttributes(ObjectClassHandle theClass,
AttributeHandleSet attributeList)
Subscribes to a set of object class attributes. |
void |
synchronizationPointAchieved(ExecutiveClientAmbassador eca,
java.lang.String synchronizationPointLabel)
Notifies the run-time infrastructure that a synchronization point has been achieved. |
java.lang.String |
toString()
Returns a string representation of the FederationExecutionAmbassador. |
void |
updateAttributeValuesBestEffort(ExecutiveClientAmbassador eca,
XRTIObjectInstanceHandle xoih,
HLAattributeHandleValuePair[] attributeHandleValuePairList,
byte[] userSuppliedTag)
Updates a set of attributes with best-effort transportation. |
void |
updateAttributeValuesReliable(ExecutiveClientAmbassador eca,
XRTIObjectInstanceHandle xoih,
HLAattributeHandleValuePair[] attributeHandleValuePairList,
byte[] userSuppliedTag)
Updates a set of attributes with reliable transportation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String OBJECT_CLASS
private static final java.lang.String ATTRIBUTE
private static final java.lang.String INTERACTION_CLASS
private static final java.lang.String PARAMETER
private static final java.lang.String DIMENSION
private static final java.lang.String SYNCHRONIZATION
private static final java.lang.String TRANSPORTATION
private static final java.lang.String BASIC_DATA
private static final java.lang.String SIMPLE_DATA
private static final java.lang.String ENUMERATED_DATA
private static final java.lang.String ENUMERATOR
private static final java.lang.String ARRAY_DATA
private static final java.lang.String FIXED_RECORD_DATA
private static final java.lang.String FIELD
private static final java.lang.String VARIANT_RECORD_DATA
private static final java.lang.String ALTERNATIVE
private static final java.lang.String NAME
private static final java.lang.String PARENTS
private static final java.lang.String SHARING
private static final java.lang.String SEMANTICS
private static final java.lang.String DATA_TYPE
private static final java.lang.String UPDATE_TYPE
private static final java.lang.String UPDATE_CONDITION
private static final java.lang.String OWNERSHIP
private static final java.lang.String DIMENSIONS
private static final java.lang.String ORDER
private static final java.lang.String UPPER_BOUND
private static final java.lang.String NORMALIZATION
private static final java.lang.String VALUE
private static final java.lang.String LABEL
private static final java.lang.String CAPABILITY
private static final java.lang.String DESCRIPTION
private static final java.lang.String SIZE
private static final java.lang.String INTERPRETATION
private static final java.lang.String ENDIAN
private static final java.lang.String ENCODING
private static final java.lang.String REPRESENTATION
private static final java.lang.String UNITS
private static final java.lang.String RESOLUTION
private static final java.lang.String ACCURACY
private static final java.lang.String VALUES
private static final java.lang.String CARDINALITY
private static final java.lang.String DISCRIMINANT
private XRTIExecutive executive
XRTIExecutive.
private HLAfederationExecutionProxy executionProxy
private java.util.Vector executiveClientAmbassadors
private java.util.HashMap objectInstanceHandleOwnerMap
private java.util.HashMap objectClassNameProxyMap
private java.util.HashMap interactionClassNameProxyMap
private java.util.HashMap dimensionNameProxyMap
private java.util.HashMap synchronizationNameProxyMap
private java.util.HashMap transportationNameProxyMap
private java.util.HashMap basicRepresentationNameProxyMap
private java.util.HashMap simpleDataTypeNameProxyMap
private java.util.HashMap enumeratedDataTypeNameProxyMap
private java.util.HashMap arrayDataTypeNameProxyMap
private java.util.HashMap fixedRecordDataTypeNameProxyMap
private java.util.HashMap variantRecordDataTypeNameProxyMap
private java.util.Map synchronizationPointLabelMap
| Constructor Detail |
protected FederationExecutionAmbassador(XRTIExecutive pExecutive,
HLAfederationExecutionProxy pExecutionProxy,
java.lang.String pExecutionName,
long pExecutionHandle)
pExecutive - the owning XRTIExecutivepExecutionProxy - the federation execution proxy in the meta-federation (or
null for none)pExecutionName - the name of the federation executionpExecutionHandle - the handle of the federation execution| Method Detail |
public HLAfederationExecutionProxy getExecutionProxy()
null
for nonepublic void registerExecutiveClientAmbassador(ExecutiveClientAmbassador eca)
eca - the executive client ambassador to register
public void registerObjectInstances(ExecutiveClientAmbassador eca,
ObjectClassHandle och)
eca - the executive client ambassador to register the instances withoch - the handle of the class of objects to registerpublic void deregisterExecutiveClientAmbassador(ExecutiveClientAmbassador eca)
eca - the executive client ambassador to deregisterpublic boolean hasExecutiveClientAmbassadors()
true if there are executive client ambassadors
registered, false otherwise
public void createReflectionObjects(org.w3c.dom.Document fdd)
throws RTIexception
fdd - the federation description document to read
RTIexception
public void registerObjectInstance(ExecutiveClientAmbassador eca,
ObjectInstanceDescriptor oid,
byte[] userSuppliedTag)
eca - the executive client ambassador of the creating federateoid - the object instance descriptor describing the objectuserSuppliedTag - the user-supplied tag associated with the event
public void deleteObjectInstance(ExecutiveClientAmbassador eca,
ObjectInstanceHandle oih,
byte[] userSuppliedTag)
eca - the executive client ambassador of the deleting federateoih - the object instance handleuserSuppliedTag - the user-supplied tag associated with the event
public void updateAttributeValuesBestEffort(ExecutiveClientAmbassador eca,
XRTIObjectInstanceHandle xoih,
HLAattributeHandleValuePair[] attributeHandleValuePairList,
byte[] userSuppliedTag)
eca - the executive client ambassador of the sending federatexoih - the object instance handle of the object being updatedattributeHandleValuePairList - the attribute handle/value pairsuserSuppliedTag - the user-supplied tag associated with the event
public void updateAttributeValuesReliable(ExecutiveClientAmbassador eca,
XRTIObjectInstanceHandle xoih,
HLAattributeHandleValuePair[] attributeHandleValuePairList,
byte[] userSuppliedTag)
eca - the executive client ambassador of the sending federatexoih - the object instance handle of the object being updatedattributeHandleValuePairList - the attribute handle/value pairsuserSuppliedTag - the user-supplied tag associated with the event
public void publishObjectClassAttributes(ObjectClassHandle theClass,
AttributeHandleSet attributeList)
throws ObjectClassNotDefined,
AttributeNotDefined,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
publishObjectClassAttributes in interface RTIambassadorpublishObjectClassAttributes in class XRTIAmbassadortheClass - the object class associated with the attributes to be
publishedattributeList - the list of attributes to publish
ObjectClassNotDefined - if the specified object class is not defined
AttributeNotDefined - if one of the specified attributes is not defined
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 publishInteractionClass(InteractionClassHandle theInteraction)
throws InteractionClassNotDefined,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
publishInteractionClass in interface RTIambassadorpublishInteractionClass in class XRTIAmbassadortheInteraction - the interaction class to publish
InteractionClassNotDefined - if the specified interaction class is not defined
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 subscribeObjectClassAttributes(ObjectClassHandle theClass,
AttributeHandleSet attributeList)
throws ObjectClassNotDefined,
AttributeNotDefined,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
subscribeObjectClassAttributes in interface RTIambassadorsubscribeObjectClassAttributes in class XRTIAmbassadortheClass - the object class associated with the attributes to subscribe toattributeList - the set of attributes to subscribe to
ObjectClassNotDefined - if the specified object class is not defined
AttributeNotDefined - if one of the specified attributes is not defined
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 subscribeInteractionClass(InteractionClassHandle theClass)
throws InteractionClassNotDefined,
FederateServiceInvocationsAreBeingReportedViaMOM,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
subscribeInteractionClass in interface RTIambassadorsubscribeInteractionClass in class XRTIAmbassadortheClass - the interaction class to subscribe to
InteractionClassNotDefined - if the interaction class is not defined
FederateServiceInvocationsAreBeingReportedViaMOM - if federate service
invocations are being reported via the management object model
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 sendInteraction(InteractionClassHandle theInteraction,
ParameterHandleValueMap theParameters,
byte[] userSuppliedTag)
throws InteractionClassNotPublished,
InteractionClassNotDefined,
InteractionParameterNotDefined,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
sendInteraction in interface RTIambassadorsendInteraction in class XRTIAmbassadortheInteraction - the class of interaction to sendtheParameters - the parameters of the interactionuserSuppliedTag - a user-supplied tag to associate with the interaction
InteractionClassNotPublished - if the interaction class is not published
InteractionClassNotDefined - if the interaction class is undefined
InteractionParameterNotDefined - if one of the parameters is undefined
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 sendInteraction(ExecutiveClientAmbassador eca,
InteractionClassHandle theInteraction,
ParameterHandleValueMap theParameters,
byte[] userSuppliedTag,
TransportationType theTransport,
OrderType sentOrdering,
LogicalTime theTime)
throws InteractionClassNotPublished,
InteractionClassNotDefined,
InteractionParameterNotDefined,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
eca - the executive client ambassador of the connected federatetheInteraction - the interaction class handletheParameters - the parameters of the interactionuserSuppliedTag - the user-supplied tag associated with the eventtheTransport - the transportation type with which the interaction
was sentsentOrdering - the type of ordering with which the interaction was senttheTime - the logical time associated with the interaction
InteractionClassNotPublished
InteractionClassNotDefined
InteractionParameterNotDefined
FederateNotExecutionMember
SaveInProgress
RestoreInProgress
RTIinternalError
public void requestAttributeValueUpdate(ObjectInstanceHandle theObject,
AttributeHandleSet theAttributes,
byte[] userSuppliedTag)
throws ObjectInstanceNotKnown,
AttributeNotDefined,
FederateNotExecutionMember,
SaveInProgress,
RestoreInProgress,
RTIinternalError
requestAttributeValueUpdate in interface RTIambassadorrequestAttributeValueUpdate in class XRTIAmbassadortheObject - the object with which the attributes are associatedtheAttributes - the set of attributes to be updateduserSuppliedTag - a user-supplied tag to associated with the request
ObjectInstanceNotKnown - if the object instance is unknown
AttributeNotDefined - if one of the attributes is undefined
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 toString()
protected java.util.Vector getExecutiveClientAmbassadors()
protected boolean allZeroLookaheadFederatesRestricted(ExecutiveClientAmbassador eca)
eca - the executive client ambassador of the requesting federate
private void computeAllGaltValues(ExecutiveClientAmbassador eca)
eca - the executive client ambassador of the requesting federate
private void sendAllPossibleTimeAdvanceGrants(ExecutiveClientAmbassador eca)
throws FederateInternalError
eca - the executive client ambassador of the requesting federate
FederateInternalError
protected void handleTimeRequest(ExecutiveClientAmbassador eca)
throws FederateInternalError
eca - the executive client ambassador of the requesting federate
FederateInternalError
public boolean registerFederationSynchronizationPoint(ExecutiveClientAmbassador eca,
java.lang.String synchronizationPointLabel,
byte[] userSuppliedTag,
FederateHandleSet synchronizationSet)
eca - the executive client ambassadorsynchronizationPointLabel - the label of the synchronization pointuserSuppliedTag - a user-supplied tag to associate with the operationsynchronizationSet - the set of federates to synchronize
public void synchronizationPointAchieved(ExecutiveClientAmbassador eca,
java.lang.String synchronizationPointLabel)
eca - the executive client ambassadorsynchronizationPointLabel - the label of the synchronization point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||