DataProcessorContext.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Wit.SDK.Modular.Sensor.Device.Entity;
  7. namespace Wit.SDK.Modular.Sensor.Modular.DataProcessor.Context
  8. {
  9. /// <summary>
  10. /// 数据处理器上下文
  11. /// </summary>
  12. public class DataProcessorContext
  13. {
  14. /// <summary>
  15. /// 自动读取间隔
  16. /// </summary>
  17. private static int _AutoReadInterval = DefaultAutoReadInterval;
  18. /// <summary>
  19. /// 自动读取间隔
  20. /// </summary>
  21. public static int AutoReadInterval {
  22. get { return (_AutoReadInterval > 0) ? _AutoReadInterval : 10; }
  23. set { _AutoReadInterval = value; }
  24. }
  25. public static int DefaultAutoReadInterval
  26. {
  27. get { return 200; }
  28. }
  29. /// <summary>
  30. /// 暂停自动读取
  31. /// </summary>
  32. public static bool AutoReadPause = false;
  33. /// <summary>
  34. /// 读取的命令
  35. /// </summary>
  36. public static List<CmdBean> ReadCmdList = new List<CmdBean>();
  37. }
  38. }