예제 #1
0
    /// <summary>
    ///     Callback for the co-simulation event handler
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void CoSimulator_MSimulationEventHandler(object sender, MSimulationEvent e)
    {
        Debug.Log(e.Reference + " " + e.Name + " " + e.Type);

        //If Queue is finished abort all instructions and raise event
        if (e.Name.Equals("FinishedQueue"))
        {
            CoSimulator.Abort();
            QueueFinished?.Invoke();
        }
    }
예제 #2
0
 /// <summary>
 ///     Abort all running instructions
 /// </summary>
 public void Abort()
 {
     CoSimulator.Abort();
     QueueFinished?.Invoke();
 }