Class ChatFedAmb

ChatFedAmb

public class ChatFedAmb

This is callback object to receive RTI messages. We used the following callback messages for this demo program:

  1. timeAdcanceGrant

  2. timeRegulationEnabled

  3. timeConstrainedEnabled

  4. receiveInteractionWithTime

  5. receiveInteraction


Field Summary
(package private)  ChatGUI boss
           
 
Constructor Summary
ChatFedAmb(ChatGUI 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)
           
 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)
           
 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)
           
 void reflectAttributeValuesWithTime(int theObject, RTIcap.AttributeHandleValuePair[] theAttributes, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle)
           
 void removeObjectInstance(int theObject, java.lang.String theTag)
           
 void removeObjectInstanceWithTime(int theObject, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle)
           
 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)
           
 void turnUpdatesOnForObjectInstance(int theObject, short[] theAttributes)
           
 

Field Detail

boss

ChatGUI boss
Constructor Detail

ChatFedAmb

public ChatFedAmb(ChatGUI father)
Method Detail

synchronizationPointRegistrationSucceeded

public void synchronizationPointRegistrationSucceeded(java.lang.String theLabel)
                                               throws RTIcap.FederateInternalError

synchronizationPointRegistrationFailed

public void synchronizationPointRegistrationFailed(java.lang.String theLabel)
                                            throws RTIcap.FederateInternalError

announceSynchronizationPoint

public void announceSynchronizationPoint(java.lang.String theLabel,
                                         java.lang.String theTag)
                                  throws RTIcap.FederateInternalError

federationSynchronized

public void federationSynchronized(java.lang.String theLabel)
                            throws RTIcap.FederateInternalError

initiateFederateSave

public void initiateFederateSave(java.lang.String theLabel)
                          throws RTIcap.UnableToPerformSave,
                                 RTIcap.FederateInternalError

federationSaved

public void federationSaved()
                     throws RTIcap.FederateInternalError

federationNotSaved

public void federationNotSaved()
                        throws RTIcap.FederateInternalError

requestFederationRestoreSucceeded

public void requestFederationRestoreSucceeded(java.lang.String theLabel)
                                       throws RTIcap.FederateInternalError

requestFederationRestoreFailed

public void requestFederationRestoreFailed(java.lang.String theLabel)
                                    throws RTIcap.FederateInternalError

federationRestoreBegun

public void federationRestoreBegun()
                            throws RTIcap.FederateInternalError

initiateFederateRestore

public void initiateFederateRestore(java.lang.String theLabel,
                                    short handle)
                             throws RTIcap.SpecifiedLabelDoesNotExist,
                                    RTIcap.CouldNotRestore,
                                    RTIcap.FederateInternalError

federationRestored

public void federationRestored()
                        throws RTIcap.FederateInternalError

federationNotRestored

public void federationNotRestored()
                           throws RTIcap.FederateInternalError

startRegistrationForObjectClass

public void startRegistrationForObjectClass(short theClass)
                                     throws RTIcap.ObjectClassNotPublished,
                                            RTIcap.AttributeNotPublished,
                                            RTIcap.FederateInternalError

stopRegistrationForObjectClass

public void stopRegistrationForObjectClass(short theClass)
                                    throws RTIcap.ObjectClassNotPublished,
                                           RTIcap.AttributeNotPublished,
                                           RTIcap.FederateInternalError

turnInteractionsOn

public void turnInteractionsOn(short theHandle)
                        throws RTIcap.InteractionClassNotPublished,
                               RTIcap.FederateInternalError

turnInteractionsOff

public void turnInteractionsOff(short theHandle)
                         throws RTIcap.InteractionClassNotPublished,
                                RTIcap.FederateInternalError

startUpdates

public void startUpdates(short theClass,
                         short[] theAttributes)
                  throws RTIcap.ObjectClassNotPublished,
                         RTIcap.AttributeNotPublished,
                         RTIcap.FederateInternalError

stopUpdates

public void stopUpdates(short theClass,
                        short[] theAttributes)
                 throws RTIcap.ObjectClassNotPublished,
                        RTIcap.AttributeNotPublished,
                        RTIcap.FederateInternalError

discoverObjectInstance

public void discoverObjectInstance(int theObject,
                                   short theObjectClass)
                            throws RTIcap.CouldNotDiscover,
                                   RTIcap.ObjectClassNotKnown,
                                   RTIcap.InvalidFederationTime,
                                   RTIcap.FederateInternalError

reflectAttributeValuesWithTime

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

reflectAttributeValues

public void reflectAttributeValues(int theObject,
                                   RTIcap.AttributeHandleValuePair[] theAttributes,
                                   java.lang.String theTag)
                            throws RTIcap.ObjectNotKnown,
                                   RTIcap.AttributeNotKnown,
                                   RTIcap.FederateOwnsAttributes,
                                   RTIcap.FederateInternalError

receiveInteractionWithTime

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

receiveInteraction

public void receiveInteraction(short theInteraction,
                               RTIcap.ParameterHandleValuePair[] theParameters,
                               java.lang.String theTag)
                        throws RTIcap.InteractionClassNotKnown,
                               RTIcap.InteractionParameterNotKnown,
                               RTIcap.FederateInternalError

removeObjectInstanceWithTime

public void removeObjectInstanceWithTime(int theObject,
                                         double theTime,
                                         java.lang.String theTag,
                                         RTIcap.EventRetractionHandle theHandle)
                                  throws RTIcap.ObjectNotKnown,
                                         RTIcap.InvalidFederationTime,
                                         RTIcap.FederateInternalError

removeObjectInstance

public void removeObjectInstance(int theObject,
                                 java.lang.String theTag)
                          throws RTIcap.ObjectNotKnown,
                                 RTIcap.FederateInternalError

attributesInScope

public void attributesInScope(int theObject,
                              short[] theAttributes)
                       throws RTIcap.ObjectNotKnown,
                              RTIcap.AttributeNotKnown,
                              RTIcap.FederateInternalError

attributesOutOfScope

public void attributesOutOfScope(int theObject,
                                 short[] theAttributes)
                          throws RTIcap.ObjectNotKnown,
                                 RTIcap.AttributeNotKnown,
                                 RTIcap.FederateInternalError

provideAttributeValueUpdate

public void provideAttributeValueUpdate(int theObject,
                                        short[] theAttributes)
                                 throws RTIcap.ObjectNotKnown,
                                        RTIcap.AttributeNotKnown,
                                        RTIcap.AttributeNotOwned,
                                        RTIcap.FederateInternalError

turnUpdatesOnForObjectInstance

public void turnUpdatesOnForObjectInstance(int theObject,
                                           short[] theAttributes)
                                    throws RTIcap.ObjectNotKnown,
                                           RTIcap.AttributeNotOwned,
                                           RTIcap.FederateInternalError

turnUpdatesOffForObjectInstance

public void turnUpdatesOffForObjectInstance(int theObject,
                                            short[] theAttributes)
                                     throws RTIcap.ObjectNotKnown,
                                            RTIcap.AttributeNotOwned,
                                            RTIcap.FederateInternalError

requestAttributeOwnershipAssumption

public void requestAttributeOwnershipAssumption(int theObject,
                                                short[] offeredAttributes,
                                                java.lang.String theTag)
                                         throws RTIcap.ObjectNotKnown,
                                                RTIcap.AttributeNotKnown,
                                                RTIcap.AttributeAlreadyOwned,
                                                RTIcap.AttributeNotPublished,
                                                RTIcap.FederateInternalError

attributeOwnershipDivestitureNotification

public void attributeOwnershipDivestitureNotification(int theObject,
                                                      short[] releasedAttributes)
                                               throws RTIcap.ObjectNotKnown,
                                                      RTIcap.AttributeNotKnown,
                                                      RTIcap.AttributeNotOwned,
                                                      RTIcap.AttributeDivestitureWasNotRequested,
                                                      RTIcap.FederateInternalError

attributeOwnershipAcquisitionNotification

public void attributeOwnershipAcquisitionNotification(int theObject,
                                                      short[] securedAttributes)
                                               throws RTIcap.ObjectNotKnown,
                                                      RTIcap.AttributeNotKnown,
                                                      RTIcap.AttributeAcquisitionWasNotRequested,
                                                      RTIcap.AttributeAlreadyOwned,
                                                      RTIcap.AttributeNotPublished,
                                                      RTIcap.FederateInternalError

attributeOwnershipUnavailable

public void attributeOwnershipUnavailable(int theObject,
                                          short[] theAttributes)
                                   throws RTIcap.ObjectNotKnown,
                                          RTIcap.AttributeNotKnown,
                                          RTIcap.AttributeAlreadyOwned,
                                          RTIcap.AttributeAcquisitionWasNotRequested,
                                          RTIcap.FederateInternalError

requestAttributeOwnershipRelease

public void requestAttributeOwnershipRelease(int theObject,
                                             short[] candidateAttributes,
                                             java.lang.String theTag)
                                      throws RTIcap.ObjectNotKnown,
                                             RTIcap.AttributeNotKnown,
                                             RTIcap.AttributeNotOwned,
                                             RTIcap.FederateInternalError

confirmAttributeOwnershipAcquisitionCancellation

public void confirmAttributeOwnershipAcquisitionCancellation(int theObject,
                                                             short[] theAttributes)
                                                      throws RTIcap.ObjectNotKnown,
                                                             RTIcap.AttributeNotKnown,
                                                             RTIcap.AttributeAlreadyOwned,
                                                             RTIcap.AttributeAcquisitionWasNotCancelled,
                                                             RTIcap.FederateInternalError

informAttributeOwnership

public void informAttributeOwnership(int theObject,
                                     short theAttribute,
                                     short theOwner)
                              throws RTIcap.ObjectNotKnown,
                                     RTIcap.AttributeNotKnown,
                                     RTIcap.FederateInternalError

attributeIsNotOwned

public void attributeIsNotOwned(int theObject,
                                short theAttribute)
                         throws RTIcap.ObjectNotKnown,
                                RTIcap.AttributeNotKnown,
                                RTIcap.FederateInternalError

attributeIsOwnedByRTI

public void attributeIsOwnedByRTI(int theObject,
                                  short theAttribute)
                           throws RTIcap.ObjectNotKnown,
                                  RTIcap.AttributeNotKnown,
                                  RTIcap.FederateInternalError

timeAdvanceGrant

public void timeAdvanceGrant(double theTime)
                      throws RTIcap.InvalidFederationTime,
                             RTIcap.TimeAdvanceWasNotInProgress,
                             RTIcap.FederateInternalError
Change the HelloWorld federation's time. And inform that time is advanced.

timeRegulationEnabled

public void timeRegulationEnabled(double theTime)
                           throws RTIcap.InvalidFederationTime,
                                  RTIcap.EnableTimeRegulationWasNotPending,
                                  RTIcap.FederateInternalError
Change the HelloWorld federate's time. And inform that time is advanced.

timeConstrainedEnabled

public void timeConstrainedEnabled(double theTime)
                            throws RTIcap.InvalidFederationTime,
                                   RTIcap.EnableTimeConstrainedWasNotPending,
                                   RTIcap.FederateInternalError
Change the HelloWorld federate's time. And inform that time is advanced.

requestRetraction

public void requestRetraction(RTIcap.EventRetractionHandle theHandle)
                       throws RTIcap.EventNotKnown,
                              RTIcap.FederateInternalError

changeThresholds

public void changeThresholds(RTIcap.Region theRegion,
                             RTIcap.ThresholdSetHolder theThresholds)
                      throws RTIcap.RegionNotKnown,
                             RTIcap.FederateInternalError