RTIHostFederateAmbassador JavaScript is disabled on your browser. runtime

Class RTIHostFederateAmbassador

    All Implemented Interfaces:
    hla.rti13.java1.FederateAmbassador


    public class RTIHostFederateAmbassador
    extends hla.rti13.java1.NullFederateAmbassador

      Method Summary

      Methods 
      Modifier and Type Method and Description
      void announceSynchronizationPoint(java.lang.String label, java.lang.String tag) 
      double convertTime(byte[] time) 
      void discoverObjectInstance(int theObject, int theObjectClass, java.lang.String objectName) 
      void federationSynchronized(java.lang.String label) 
      private void log(java.lang.String message) 
      void receiveInteraction(int interactionClass, hla.rti13.java1.ReceivedInteraction theInteraction, byte[] theTime, java.lang.String theTag, hla.rti13.java1.EventRetractionHandle eventRetractionHandle) 
      void receiveInteraction(int interactionClass, hla.rti13.java1.ReceivedInteraction theInteraction, java.lang.String tag) 
      void reflectAttributeValues(int theObject, hla.rti13.java1.ReflectedAttributes theAttributes, byte[] theTime, java.lang.String theTag, hla.rti13.java1.EventRetractionHandle theHandle) 
      void reflectAttributeValues(int theObject, hla.rti13.java1.ReflectedAttributes theAttributes, java.lang.String tag) 
      void removeObjectInstance(int theObject, byte[] theTime, java.lang.String theTag, hla.rti13.java1.EventRetractionHandle theHandle) 
      void removeObjectInstance(int theObject, java.lang.String userSuppliedTag) 
      void synchronizationPointRegistrationFailed(java.lang.String label) 
      void synchronizationPointRegistrationSucceeded(java.lang.String label) 
      void timeAdvanceGrant(byte[] theTime) 
      void timeConstrainedEnabled(byte[] theFederateTime) 
      void timeRegulationEnabled(byte[] theFederateTime) The RTI has informed us that time regulation is now enabled.
      private void waitForAllUsers() This function is used for synchronize the data transfer between RTI and Unity

        Methods inherited from class hla.rti13.java1.NullFederateAmbassador

        attributeIsNotOwned, attributeOwnedByRTI, attributeOwnershipAcquisitionNotification, attributeOwnershipDivestitureNotification, attributeOwnershipUnavailable, attributesInScope, attributesOutOfScope, confirmAttributeOwnershipAcquisitionCancellation, federationNotRestored, federationNotSaved, federationRestoreBegun, federationRestored, federationSaved, informAttributeOwnership, initiateFederateRestore, initiateFederateSave, provideAttributeValueUpdate, requestAttributeOwnershipAssumption, requestAttributeOwnershipRelease, requestFederationRestoreFailed, requestFederationRestoreSucceeded, requestRetraction, startRegistrationForObjectClass, stopRegistrationForObjectClass, turnInteractionsOff, turnInteractionsOn, turnUpdatesOffForObjectInstance, turnUpdatesOnForObjectInstance

        Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

      Field Detail

        federateTime

        protected double federateTime

        federateLookahead

        protected double federateLookahead

        isRegulating

        protected boolean isRegulating

        isConstrained

        protected boolean isConstrained

        isAdvancing

        protected boolean isAdvancing

        isAnnounced

        protected boolean isAnnounced

        isReadyToRun

        protected boolean isReadyToRun

        count

        private int count

      Constructor Detail

        RTIHostFederateAmbassador

        public RTIHostFederateAmbassador(RTIHostFederate federate)

      Method Detail

        convertTime

        public double convertTime(byte[] time)

        log

        private void log(java.lang.String message)

        synchronizationPointRegistrationFailed

        public void synchronizationPointRegistrationFailed(java.lang.String label)
        Specified by:
        synchronizationPointRegistrationFailed in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        synchronizationPointRegistrationFailed in class hla.rti13.java1.NullFederateAmbassador

        synchronizationPointRegistrationSucceeded

        public void synchronizationPointRegistrationSucceeded(java.lang.String label)
        Specified by:
        synchronizationPointRegistrationSucceeded in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        synchronizationPointRegistrationSucceeded in class hla.rti13.java1.NullFederateAmbassador

        announceSynchronizationPoint

        public void announceSynchronizationPoint(java.lang.String label,
                                        java.lang.String tag)
        Specified by:
        announceSynchronizationPoint in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        announceSynchronizationPoint in class hla.rti13.java1.NullFederateAmbassador

        federationSynchronized

        public void federationSynchronized(java.lang.String label)
        Specified by:
        federationSynchronized in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        federationSynchronized in class hla.rti13.java1.NullFederateAmbassador

        timeRegulationEnabled

        public void timeRegulationEnabled(byte[] theFederateTime)
        The RTI has informed us that time regulation is now enabled.
        Specified by:
        timeRegulationEnabled in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        timeRegulationEnabled in class hla.rti13.java1.NullFederateAmbassador

        timeConstrainedEnabled

        public void timeConstrainedEnabled(byte[] theFederateTime)
        Specified by:
        timeConstrainedEnabled in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        timeConstrainedEnabled in class hla.rti13.java1.NullFederateAmbassador

        timeAdvanceGrant

        public void timeAdvanceGrant(byte[] theTime)
        Specified by:
        timeAdvanceGrant in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        timeAdvanceGrant in class hla.rti13.java1.NullFederateAmbassador

        discoverObjectInstance

        public void discoverObjectInstance(int theObject,
                                  int theObjectClass,
                                  java.lang.String objectName)
        Specified by:
        discoverObjectInstance in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        discoverObjectInstance in class hla.rti13.java1.NullFederateAmbassador

        reflectAttributeValues

        public void reflectAttributeValues(int theObject,
                                  hla.rti13.java1.ReflectedAttributes theAttributes,
                                  java.lang.String tag)
        Specified by:
        reflectAttributeValues in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        reflectAttributeValues in class hla.rti13.java1.NullFederateAmbassador

        reflectAttributeValues

        public void reflectAttributeValues(int theObject,
                                  hla.rti13.java1.ReflectedAttributes theAttributes,
                                  byte[] theTime,
                                  java.lang.String theTag,
                                  hla.rti13.java1.EventRetractionHandle theHandle)
        Specified by:
        reflectAttributeValues in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        reflectAttributeValues in class hla.rti13.java1.NullFederateAmbassador

        receiveInteraction

        public void receiveInteraction(int interactionClass,
                              hla.rti13.java1.ReceivedInteraction theInteraction,
                              java.lang.String tag)
        Specified by:
        receiveInteraction in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        receiveInteraction in class hla.rti13.java1.NullFederateAmbassador

        receiveInteraction

        public void receiveInteraction(int interactionClass,
                              hla.rti13.java1.ReceivedInteraction theInteraction,
                              byte[] theTime,
                              java.lang.String theTag,
                              hla.rti13.java1.EventRetractionHandle eventRetractionHandle)
        Specified by:
        receiveInteraction in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        receiveInteraction in class hla.rti13.java1.NullFederateAmbassador

        waitForAllUsers

        private void waitForAllUsers()
        This function is used for synchronize the data transfer between RTI and Unity

        removeObjectInstance

        public void removeObjectInstance(int theObject,
                                java.lang.String userSuppliedTag)
        Specified by:
        removeObjectInstance in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        removeObjectInstance in class hla.rti13.java1.NullFederateAmbassador

        removeObjectInstance

        public void removeObjectInstance(int theObject,
                                byte[] theTime,
                                java.lang.String theTag,
                                hla.rti13.java1.EventRetractionHandle theHandle)
        Specified by:
        removeObjectInstance in interface hla.rti13.java1.FederateAmbassador
        Overrides:
        removeObjectInstance in class hla.rti13.java1.NullFederateAmbassador