添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.AlgorithmCalib.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// 进度事件参数
|
||||
/// </summary>
|
||||
public class CalibrationProgressEventArgs : EventArgs
|
||||
{
|
||||
public string Message { get; set; }
|
||||
public int Current { get; set; }
|
||||
public int Total { get; set; }
|
||||
public double Percentage => Total > 0 ? (double)Current / Total * 100 : 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.AlgorithmCalib.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// 对标 OriginCalib 的 ICalibrationPostProcessor
|
||||
/// 旋转表标定的后处理器:原 task/rotateformcalibtask 的逻辑搬入实现类
|
||||
/// </summary>
|
||||
public interface IAlgorithmCalibrationPostProcessor
|
||||
{
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 标定后处理(对标原 RotateFormCalibTask.RotateCalib)
|
||||
/// </summary>
|
||||
Task ExecuteAsync(AlgorithmCalibExecutionResult calibrationResult, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// 验证后处理(对标原 RotateFormCalibTask.RotateCalibVerify)
|
||||
/// </summary>
|
||||
Task VerifyAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user