GetSampleServiceClient.cs 2.82 KB
Newer Older
1
using FLY.Thick.Base.IService;
2 3
using FObjBase;
using FObjBase.Reflect;
4
using System;
5
using System.Collections.Generic;
潘栩锋's avatar
潘栩锋 committed
6
using System.Linq;
7

潘栩锋's avatar
潘栩锋 committed
8 9
namespace FLY.Thick.Base.Client
{
10 11 12
    /// <summary>
    /// 样品采样服务 客户代理
    /// </summary>
13
    public class GetSampleServiceClient : FObjBase.Reflect.Reflect_SeviceClient, IGetSampleService
潘栩锋's avatar
潘栩锋 committed
14
    {
15 16 17 18 19 20

        protected override Type InterfaceType => typeof(IGetSampleService);
        /// <summary>
        /// 边界查找服务 构造
        /// </summary>
        /// <param name="id"></param>
21
        public GetSampleServiceClient(UInt32 id) : base(id) { }
22 23 24 25 26 27

        /// <summary>
        /// 边界查找服务 构造
        /// </summary>
        /// <param name="serviceId">服务id</param>
        /// <param name="connName">连接器</param>
28
        public GetSampleServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }
29 30 31



潘栩锋's avatar
潘栩锋 committed
32
        #region IGetSampleService 成员
33

潘栩锋's avatar
潘栩锋 committed
34
        /// <summary>
35
        /// 参数:使能
潘栩锋's avatar
潘栩锋 committed
36
        /// </summary>
37
        public bool Enable { get; set; }
潘栩锋's avatar
潘栩锋 committed
38

39 40 41 42
        /// <summary>
        /// 参数:速度
        /// </summary>
        public UInt32 Velocity { get; set; }
潘栩锋's avatar
潘栩锋 committed
43

44 45 46
        /// <summary>
        /// 参数:样品点范围
        /// </summary>
47
        public int SampleRange { get; set; }
潘栩锋's avatar
潘栩锋 committed
48 49 50


        /// <summary>
51
        /// 滤波窗口
潘栩锋's avatar
潘栩锋 committed
52
        /// </summary>
53 54
        public int Window { get; set; }

55 56 57 58 59 60 61 62 63 64 65 66 67
        /// <summary>
        /// 使用%方式检查异常
        /// </summary>
        public bool IsCheckByPercent { get; set; } = true;
        /// <summary>
        /// 异常% 单位%
        /// </summary>
        public double ErrPercent { get; set; } = 2;
        /// <summary>
        /// 异常值
        /// </summary>
        public int ErrValue { get; set; } = 200;

68 69 70
        /// <summary>
        /// 样品
        /// </summary>
71 72 73
        public SampleCell[] Samples { get; set; } = new SampleCell[] {
            new SampleCell(),new SampleCell(),new SampleCell()
        };
74 75 76 77

        /// <summary>
        /// 查找公差
        /// </summary>
78
        public int SearchRange { get; set; }
79 80 81 82

        /// <summary>
        /// 特征  相识度 0 正, 1 反
        /// </summary>
83 84 85 86 87
        public SampleFeature[] Features { get; set; } = new SampleFeature[] {
            new SampleFeature(),new SampleFeature()
        };
        public double CrossErrPercent { get; set; }
        public int ErrIntervalMin { get; set; }
潘栩锋's avatar
潘栩锋 committed
88

89 90 91
        /// <summary>
        /// 
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
92
        public void Apply()
潘栩锋's avatar
潘栩锋 committed
93
        {
94
            Call(nameof(Apply));
潘栩锋's avatar
潘栩锋 committed
95
        }
96 97 98 99 100 101

        [Call(typeof(List<List<TempFilterData>>))]
        public void GetTempFilterDatas(AsyncCBHandler asyncDelegate, object asyncContext) 
        {
            Call(nameof(GetTempFilterDatas),null, asyncDelegate,asyncContext);
        }
潘栩锋's avatar
潘栩锋 committed
102 103 104 105 106
        #endregion

    }

}