|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HwFederateAmbassador
This is callback object to receive RTI messages. We used the following callback messages for this demo program:
Field Summary | |
(package private) HelloWorld |
boss
|
(package private) EntityManager |
entManager
|
Constructor Summary | |
HwFederateAmbassador(EntityManager _entManager,
HelloWorld father)
|
Method Summary | |
void |
announceSynchronizationPoint(java.lang.String theLabel,
java.lang.String theTag)
|
void |
attributeIsNotOwned(int theObject,
short theAttribute)
|
void |
attributeIsOwnedByRTI(int theObject,
short theAttribute)
|
void |
attributeOwnershipAcquisitionNotification(int theObject,
short[] securedAttributes)
|
void |
attributeOwnershipDivestitureNotification(int theObject,
short[] releasedAttributes)
|
void |
attributeOwnershipUnavailable(int theObject,
short[] theAttributes)
|
void |
attributesInScope(int theObject,
short[] theAttributes)
|
void |
attributesOutOfScope(int theObject,
short[] theAttributes)
|
void |
changeThresholds(RTIcap.Region theRegion,
RTIcap.ThresholdSetHolder theThresholds)
|
void |
confirmAttributeOwnershipAcquisitionCancellation(int theObject,
short[] theAttributes)
|
void |
discoverObjectInstance(int theObject,
short theObjectClass)
Add this new discovered object to the EntityManager. |
void |
federationNotRestored()
|
void |
federationNotSaved()
|
void |
federationRestoreBegun()
|
void |
federationRestored()
|
void |
federationSaved()
|
void |
federationSynchronized(java.lang.String theLabel)
|
void |
informAttributeOwnership(int theObject,
short theAttribute,
short theOwner)
|
void |
initiateFederateRestore(java.lang.String theLabel,
short handle)
|
void |
initiateFederateSave(java.lang.String theLabel)
|
void |
provideAttributeValueUpdate(int theObject,
short[] theAttributes)
Ask the corresponding SimCountry object to update its attribute. |
void |
receiveInteraction(short theInteraction,
RTIcap.ParameterHandleValuePair[] theParameters,
java.lang.String theTag)
|
void |
receiveInteractionWithTime(short theInteraction,
RTIcap.ParameterHandleValuePair[] theParameters,
double theTime,
java.lang.String theTag,
RTIcap.EventRetractionHandle theHandle)
|
void |
reflectAttributeValues(int theObject,
RTIcap.AttributeHandleValuePair[] theAttributes,
java.lang.String theTag)
Find the objects in the EntityManager and updates their received attributes. |
void |
reflectAttributeValuesWithTime(int theObject,
RTIcap.AttributeHandleValuePair[] theAttributes,
double theTime,
java.lang.String theTag,
RTIcap.EventRetractionHandle theHandle)
Update attributes. |
void |
removeObjectInstance(int theObject,
java.lang.String theTag)
Remove the corresponding object from EntityManager. |
void |
removeObjectInstanceWithTime(int theObject,
double theTime,
java.lang.String theTag,
RTIcap.EventRetractionHandle theHandle)
Remove the corresponding object from EntityManager. |
void |
requestAttributeOwnershipAssumption(int theObject,
short[] offeredAttributes,
java.lang.String theTag)
|
void |
requestAttributeOwnershipRelease(int theObject,
short[] candidateAttributes,
java.lang.String theTag)
|
void |
requestFederationRestoreFailed(java.lang.String theLabel)
|
void |
requestFederationRestoreSucceeded(java.lang.String theLabel)
|
void |
requestRetraction(RTIcap.EventRetractionHandle theHandle)
|
void |
startRegistrationForObjectClass(short theClass)
|
void |
startUpdates(short theClass,
short[] theAttributes)
|
void |
stopRegistrationForObjectClass(short theClass)
|
void |
stopUpdates(short theClass,
short[] theAttributes)
|
void |
synchronizationPointRegistrationFailed(java.lang.String theLabel)
|
void |
synchronizationPointRegistrationSucceeded(java.lang.String theLabel)
|
void |
timeAdvanceGrant(double theTime)
Change the HelloWorld federation's time. |
void |
timeConstrainedEnabled(double theTime)
Change the HelloWorld federate's time. |
void |
timeRegulationEnabled(double theTime)
Change the HelloWorld federate's time. |
void |
turnInteractionsOff(short theHandle)
|
void |
turnInteractionsOn(short theHandle)
|
void |
turnUpdatesOffForObjectInstance(int theObject,
short[] theAttributes)
Tell simulated object *NOT* to send its updates to RTI. |
void |
turnUpdatesOnForObjectInstance(int theObject,
short[] theAttributes)
Tell simulated object to send its updates to RTI. |
Field Detail |
HelloWorld boss
EntityManager entManager
Constructor Detail |
public HwFederateAmbassador(EntityManager _entManager, HelloWorld father)
Method Detail |
public void synchronizationPointRegistrationSucceeded(java.lang.String theLabel) throws RTIcap.FederateInternalError
public void synchronizationPointRegistrationFailed(java.lang.String theLabel) throws RTIcap.FederateInternalError
public void announceSynchronizationPoint(java.lang.String theLabel, java.lang.String theTag) throws RTIcap.FederateInternalError
public void federationSynchronized(java.lang.String theLabel) throws RTIcap.FederateInternalError
public void initiateFederateSave(java.lang.String theLabel) throws RTIcap.UnableToPerformSave, RTIcap.FederateInternalError
public void federationSaved() throws RTIcap.FederateInternalError
public void federationNotSaved() throws RTIcap.FederateInternalError
public void requestFederationRestoreSucceeded(java.lang.String theLabel) throws RTIcap.FederateInternalError
public void requestFederationRestoreFailed(java.lang.String theLabel) throws RTIcap.FederateInternalError
public void federationRestoreBegun() throws RTIcap.FederateInternalError
public void initiateFederateRestore(java.lang.String theLabel, short handle) throws RTIcap.SpecifiedLabelDoesNotExist, RTIcap.CouldNotRestore, RTIcap.FederateInternalError
public void federationRestored() throws RTIcap.FederateInternalError
public void federationNotRestored() throws RTIcap.FederateInternalError
public void startRegistrationForObjectClass(short theClass) throws RTIcap.ObjectClassNotPublished, RTIcap.AttributeNotPublished, RTIcap.FederateInternalError
public void stopRegistrationForObjectClass(short theClass) throws RTIcap.ObjectClassNotPublished, RTIcap.AttributeNotPublished, RTIcap.FederateInternalError
public void turnInteractionsOn(short theHandle) throws RTIcap.InteractionClassNotPublished, RTIcap.FederateInternalError
public void turnInteractionsOff(short theHandle) throws RTIcap.InteractionClassNotPublished, RTIcap.FederateInternalError
public void startUpdates(short theClass, short[] theAttributes) throws RTIcap.ObjectClassNotPublished, RTIcap.AttributeNotPublished, RTIcap.FederateInternalError
public void stopUpdates(short theClass, short[] theAttributes) throws RTIcap.ObjectClassNotPublished, RTIcap.AttributeNotPublished, RTIcap.FederateInternalError
public void discoverObjectInstance(int theObject, short theObjectClass) throws RTIcap.CouldNotDiscover, RTIcap.ObjectClassNotKnown, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void reflectAttributeValuesWithTime(int theObject, RTIcap.AttributeHandleValuePair[] theAttributes, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateOwnsAttributes, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void reflectAttributeValues(int theObject, RTIcap.AttributeHandleValuePair[] theAttributes, java.lang.String theTag) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateOwnsAttributes, RTIcap.FederateInternalError
public void receiveInteractionWithTime(short theInteraction, RTIcap.ParameterHandleValuePair[] theParameters, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle) throws RTIcap.InteractionClassNotKnown, RTIcap.InteractionParameterNotKnown, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void receiveInteraction(short theInteraction, RTIcap.ParameterHandleValuePair[] theParameters, java.lang.String theTag) throws RTIcap.InteractionClassNotKnown, RTIcap.InteractionParameterNotKnown, RTIcap.FederateInternalError
public void removeObjectInstanceWithTime(int theObject, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle) throws RTIcap.ObjectNotKnown, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void removeObjectInstance(int theObject, java.lang.String theTag) throws RTIcap.ObjectNotKnown, RTIcap.FederateInternalError
public void attributesInScope(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateInternalError
public void attributesOutOfScope(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateInternalError
public void provideAttributeValueUpdate(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeNotOwned, RTIcap.FederateInternalError
public void turnUpdatesOnForObjectInstance(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotOwned, RTIcap.FederateInternalError
public void turnUpdatesOffForObjectInstance(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotOwned, RTIcap.FederateInternalError
public void requestAttributeOwnershipAssumption(int theObject, short[] offeredAttributes, java.lang.String theTag) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeAlreadyOwned, RTIcap.AttributeNotPublished, RTIcap.FederateInternalError
public void attributeOwnershipDivestitureNotification(int theObject, short[] releasedAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeNotOwned, RTIcap.AttributeDivestitureWasNotRequested, RTIcap.FederateInternalError
public void attributeOwnershipAcquisitionNotification(int theObject, short[] securedAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeAcquisitionWasNotRequested, RTIcap.AttributeAlreadyOwned, RTIcap.AttributeNotPublished, RTIcap.FederateInternalError
public void attributeOwnershipUnavailable(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeAlreadyOwned, RTIcap.AttributeAcquisitionWasNotRequested, RTIcap.FederateInternalError
public void requestAttributeOwnershipRelease(int theObject, short[] candidateAttributes, java.lang.String theTag) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeNotOwned, RTIcap.FederateInternalError
public void confirmAttributeOwnershipAcquisitionCancellation(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeAlreadyOwned, RTIcap.AttributeAcquisitionWasNotCancelled, RTIcap.FederateInternalError
public void informAttributeOwnership(int theObject, short theAttribute, short theOwner) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateInternalError
public void attributeIsNotOwned(int theObject, short theAttribute) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateInternalError
public void attributeIsOwnedByRTI(int theObject, short theAttribute) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateInternalError
public void timeAdvanceGrant(double theTime) throws RTIcap.InvalidFederationTime, RTIcap.TimeAdvanceWasNotInProgress, RTIcap.FederateInternalError
public void timeRegulationEnabled(double theTime) throws RTIcap.InvalidFederationTime, RTIcap.EnableTimeRegulationWasNotPending, RTIcap.FederateInternalError
public void timeConstrainedEnabled(double theTime) throws RTIcap.InvalidFederationTime, RTIcap.EnableTimeConstrainedWasNotPending, RTIcap.FederateInternalError
public void requestRetraction(RTIcap.EventRetractionHandle theHandle) throws RTIcap.EventNotKnown, RTIcap.FederateInternalError
public void changeThresholds(RTIcap.Region theRegion, RTIcap.ThresholdSetHolder theThresholds) throws RTIcap.RegionNotKnown, RTIcap.FederateInternalError
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |