using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MainShell.AlgorithmCalib.Common
{
    public sealed class AlgorithmCalibExecutionResult
    {
        public AlgorithmCalibExecutionResult(IDictionary<string, double> actualPositions)
        {
            var positions = actualPositions ?? new Dictionary<string, double>(StringComparer.Ordinal);
            ActualPositions = new ReadOnlyDictionary<string, double>(
                new Dictionary<string, double>(positions, StringComparer.Ordinal));
        }

        public IReadOnlyDictionary<string, double> ActualPositions { get; private set; }
    }
}
