Esempio n. 1
0
    protected void OnFinished()
    {
        result = new ProcessingPacket();
        result.processedVariable = variableNameToProcess;
        result.result            = calculationResult;
        result.mathOperation     = mathOperation;
        result.typeOfProcessing  = typeOfProcessing;
        isRunning = false;

        // Send notification
        OnCalculationFinished(result);
    }
Esempio n. 2
0
    // Thread-safe. CAN use the Unity API here
    protected override void OnFinished()
    {
        result = new ProcessingPacket();
        result.processedVariable = variableNameToProcess;
        result.result            = calculationResult;
        result.mathOperation     = mathOperation;
        result.typeOfProcessing  = typeOfProcessing;

        // TODO: Consider deleting this Debug messages
        switch (typeOfProcessing)
        {
        case TypeOfProcessing.BaselineCalculation:
            Debug.Log("FINISHED THREAD: Baseline Calculation!!");
            break;

        case TypeOfProcessing.AdaptationCalculation:
            Debug.Log("FINISHED THREAD: Adaptation Calculation!!");
            break;
        }
    }