IScanCorrService.cs 2.92 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using FLY.Thick.Base.Common;
using System.Collections.ObjectModel;
潘栩锋's avatar
潘栩锋 committed
8 9 10
using Misc;
using FObjBase.Reflect;
using FObjBase;
潘栩锋's avatar
潘栩锋 committed
11 12 13 14 15 16 17 18 19 20

namespace FLY.Thick.Base.IService
{
    public interface IScanCorrService : INotifyPropertyChanged
    {
        /// <summary>
        /// 使能修正
        /// </summary>
        bool Enable{set;get;}

潘栩锋's avatar
潘栩锋 committed
21 22 23 24
        /// <summary>
        /// 当前修正的组
        /// </summary>
        int CurrGroupIndex { get; }
潘栩锋's avatar
潘栩锋 committed
25 26 27 28
        /// <summary>
        /// 当前进度 0 - 100 
        /// </summary>
        int Progress { get; }
潘栩锋's avatar
潘栩锋 committed
29 30 31 32 33 34

        /// <summary>
        /// 数据更新时间
        /// </summary>
        DateTime[] UpdateTimes { get; }

潘栩锋's avatar
潘栩锋 committed
35 36 37
        /// <summary>
        /// 正在机架修正中
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
38
        bool IsRunning { get; }
潘栩锋's avatar
潘栩锋 committed
39 40 41 42

        /// <summary>
        /// 来回次数
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
43
        int ScanCnt { get; }
潘栩锋's avatar
潘栩锋 committed
44

45 46 47 48 49
        /// <summary>
        /// 平滑
        /// </summary>
        int SmoothFactor { get; }

潘栩锋's avatar
潘栩锋 committed
50
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
51
        /// 开始机架修正
潘栩锋's avatar
潘栩锋 committed
52
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
53 54
        /// <param name="groupIndex">组序号</param>
        /// <param name="scanCnt">扫描次数</param>
55 56
        /// <param name="smoothFactor">平滑</param>
        void Start(int groupIndex, int scanCnt, int smoothFactor);
潘栩锋's avatar
潘栩锋 committed
57 58

        /// <summary>
潘栩锋's avatar
潘栩锋 committed
59
        /// 清空组数据
潘栩锋's avatar
潘栩锋 committed
60
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
61 62 63
        /// <param name="groupIndex"></param>
        void Clear(int groupIndex);

潘栩锋's avatar
潘栩锋 committed
64
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
65
        /// 设置修正曲线
潘栩锋's avatar
潘栩锋 committed
66
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
67 68 69 70
        /// <param name="groupIndex">组序号</param>
        /// <param name="corrDatas">修正数据</param>
        /// <param name="avg">均值</param>
        void SetCorrData(int groupIndex, int[][] corrDatas, int avg);
潘栩锋's avatar
潘栩锋 committed
71 72


潘栩锋's avatar
潘栩锋 committed
73 74
        [Call(typeof(GetScanCorrGroupResponse))]
        void GetScanCorrGroup(int groupIndex, AsyncCBHandler asyncDelegate, object asyncContext);
潘栩锋's avatar
潘栩锋 committed
75

潘栩锋's avatar
潘栩锋 committed
76
    }
潘栩锋's avatar
潘栩锋 committed
77

潘栩锋's avatar
潘栩锋 committed
78 79
    public class GetScanCorrGroupResponse
    {
潘栩锋's avatar
潘栩锋 committed
80
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
81
        /// 组序号
潘栩锋's avatar
潘栩锋 committed
82
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
83
        public int GroupIndex;
潘栩锋's avatar
潘栩锋 committed
84
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
85
        /// 更新时间
潘栩锋's avatar
潘栩锋 committed
86
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
87
        public DateTime UpdateTime;
潘栩锋's avatar
潘栩锋 committed
88 89

        /// <summary>
潘栩锋's avatar
潘栩锋 committed
90
        /// 机架准备好了
潘栩锋's avatar
潘栩锋 committed
91
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
92 93
        public bool IsDataOK;

潘栩锋's avatar
潘栩锋 committed
94
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
95
        /// 机架总长,脉冲
潘栩锋's avatar
潘栩锋 committed
96
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
97
        public int PosLen;
潘栩锋's avatar
潘栩锋 committed
98 99

        /// <summary>
潘栩锋's avatar
潘栩锋 committed
100
        /// 1个grid = N个pos
潘栩锋's avatar
潘栩锋 committed
101
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
102 103
        public int PosOfGrid;

潘栩锋's avatar
潘栩锋 committed
104
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
105
        /// 原始 正反方向机架AD值数据, grid数据
潘栩锋's avatar
潘栩锋 committed
106
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
107 108
        public int[][] OrgDatas;

潘栩锋's avatar
潘栩锋 committed
109
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
110
        /// 修正用 正反方向机架AD值数据
潘栩锋's avatar
潘栩锋 committed
111
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
112
        public int[][] CorrDatas;
潘栩锋's avatar
潘栩锋 committed
113 114

        /// <summary>
潘栩锋's avatar
潘栩锋 committed
115
        /// CorrDatas 的均值
潘栩锋's avatar
潘栩锋 committed
116
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
117
        public int Avg;
潘栩锋's avatar
潘栩锋 committed
118 119
    }
    
潘栩锋's avatar
潘栩锋 committed
120 121 122 123


    

潘栩锋's avatar
潘栩锋 committed
124
}