예제 #1
0
        // FdAmb_FederationSaveStatusResponse
        public override void FdAmb_FederationSaveStatusResponse(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_FederationSaveStatusResponse(sender, data);

            #region User Code
            throw new NotImplementedException("FdAmb_FederationSaveStatusResponse");
            #endregion //User Code
        }
예제 #2
0
파일: StationFdApp.cs 프로젝트: otopcu/STMS
        // FdAmb_FederationSynchronized
        public override void FdAmb_FederationSynchronized(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_FederationSynchronized(sender, data);

            #region User Code
            Report($"simulation pacing ({data.Label}) is completed." + Environment.NewLine);
            #endregion //User Code
        }
예제 #3
0
        // FdAmb_InitiateFederateRestoreHandler
        public override void FdAmb_InitiateFederateRestoreHandler(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_InitiateFederateRestoreHandler(sender, data);

            #region User Code
            throw new NotImplementedException("FdAmb_InitiateFederateRestoreHandler");
            #endregion //User Code
        }
예제 #4
0
        // FdAmb_ConnectionLost
        public override void FdAmb_ConnectionLost(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_ConnectionLost(sender, data);

            #region User Code
            //throw new NotImplementedException("FdAmb_ConnectionLost");
            #endregion //User Code
        }
예제 #5
0
파일: StationFdApp.cs 프로젝트: otopcu/STMS
        // FdAmb_SynchronizationPointAnnounced
        public override void FdAmb_SynchronizationPointAnnounced(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_SynchronizationPointAnnounced(sender, data);

            #region User Code
            //Report.WriteLine($"Ready for zone transfer. Label: {data.Label}" + Environment.NewLine);
            SynchronizationPointAchieved(data.Label, true);
            #endregion //User Code
        }
        public override void FdAmb_SynchronizationPointAnnounced(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_SynchronizationPointAnnounced(sender, data);

            #region User Code
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine($" @@@@@@ ({data.Label}) is announced. @@@@@@ " + Environment.NewLine);
            manager.SynchronData = data.Label;
            Console.WriteLine($"Announced Syncronized Data: {manager.SynchronData}");
            //throw new NotImplementedException("FdAmb_SynchronizationPointAnnounced");
            #endregion //User Code
        }
예제 #7
0
파일: StationFdApp.cs 프로젝트: otopcu/STMS
        // FdAmb_FederationSaved
        public override void FdAmb_FederationSaved(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_FederationSaved(sender, data);

            if (data.Success)
            {
                // federation saved
            }
            else
            {
                // federation not saved. The save failure reason is
                string information = data.Reason;
                Report("The save failure reason: " + information);
            }
        }
예제 #8
0
        // FdAmb_OnSynchronizationPointRegistrationConfirmedHandler

        // FdAmb_OnSynchronizationPointRegistrationFailedHandler
        public override void FdAmb_OnSynchronizationPointRegistrationFailedHandler(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_OnSynchronizationPointRegistrationFailedHandler(sender, data);

            #region User Code
            throw new NotImplementedException("FdAmb_OnSynchronizationPointRegistrationFailedHandler");
            #endregion //User Code
        }
        public override void FdAmb_OnSynchronizationPointRegistrationConfirmedHandler(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_OnSynchronizationPointRegistrationConfirmedHandler(sender, data);

            #region User Code
            //Console.ForegroundColor = ConsoleColor.DarkBlue;
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine($" @@@@@ ({data.Label}) is registered. @@@@@@" + Environment.NewLine);
            Console.WriteLine($"Registered Syncronized Data: {manager.SynchronData}");
            #endregion //User Code
        }
 public override void FdAmb_FederationSynchronized(object sender, HlaFederationManagementEventArgs data)
 {
     base.FdAmb_FederationSynchronized(sender, data);
     Console.ForegroundColor = ConsoleColor.Magenta;
     Console.WriteLine($"Federation Synchronized: ({data.Label})" + Environment.NewLine);
 }
예제 #11
0
파일: StationFdApp.cs 프로젝트: otopcu/STMS
        // FdAmb_OnSynchronizationPointRegistrationFailedHandler
        public override void FdAmb_OnSynchronizationPointRegistrationFailedHandler(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_OnSynchronizationPointRegistrationFailedHandler(sender, data);

            #region User Code
            Report($"Pacing request ({data.Label}) is NOT accepted by RTI. Reason: {data.Reason}" + Environment.NewLine);
            #endregion //User Code
        }
예제 #12
0
파일: StationFdApp.cs 프로젝트: otopcu/STMS
        // FdAmb_ConfirmFederationRestorationRequestHandler
        public override void FdAmb_ConfirmFederationRestorationRequestHandler(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_ConfirmFederationRestorationRequestHandler(sender, data);

            if (data.Success)
            {
                // restoration request is confirmed
            }
            else
            {
                // restoration request is failed. This callback does not provide a reason.
            }
        }
예제 #13
0
파일: ShipFdApp.cs 프로젝트: otopcu/STMS
        // FdAmb_OnSynchronizationPointRegistrationFailedHandler
        public override void FdAmb_OnSynchronizationPointRegistrationFailedHandler(object sender, HlaFederationManagementEventArgs data)
        {
            // Call the base class handler
            base.FdAmb_OnSynchronizationPointRegistrationFailedHandler(sender, data);

            #region User Code
            // do nothing
            #endregion //User Code
        }