// 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 }
// 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 }
// 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 }
// 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 }
// 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 }
// 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); } }
// 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); }
// 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 }
// 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. } }
// 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 }