NoInteractionSystems.cs 713 B

1234567891011121314151617181920212223242526272829303132
  1. using System.ComponentModel;
  2. using WCS.Core;
  3. using WCS.WorkEngineering.Extensions;
  4. using WCS.WorkEngineering.Worlds;
  5. namespace WCS.WorkEngineering.Systems
  6. {
  7. /// <summary>
  8. /// 无交互系统
  9. /// </summary>
  10. [BelongTo(typeof(MainWorldd))]
  11. [Description("无交互系统")]
  12. public class NoInteractionSystems : DeviceSystem<Station>
  13. {
  14. public NoInteractionSystems()
  15. {
  16. }
  17. protected override bool ParallelDo => true;
  18. protected override bool SaveLogsToFile => true;
  19. public override void Do(Station obj)
  20. {
  21. }
  22. public override bool Select(Device dev)
  23. {
  24. return dev.Code == "1011";
  25. }
  26. }
  27. }