SrmSystems.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.ComponentModel;
  2. using WCS.Core;
  3. using WCS.Entity.Protocol.Station;
  4. using WCS.WorkEngineering.Worlds;
  5. namespace WCS.WorkEngineering.Systems
  6. {
  7. /// <summary>
  8. /// 堆垛机系统
  9. /// </summary>
  10. [BelongTo(typeof(MainWorld))]
  11. [Description("堆垛机系统")]
  12. public class SrmSystems : DeviceSystem<Device<IStation520, IStation521, IStation522>>
  13. {
  14. //TODO:堆垛机相关信息未完善等待完善之后再处理
  15. /// <summary>
  16. /// 取货点设备集合
  17. /// </summary>
  18. private List<Device<IStation520, IStation521, IStation522>> PickUpDevices;
  19. public SrmSystems()
  20. {
  21. PickUpDevices = World.Devices.Where(v => v.Code is "1601" or "1603" or "1605" or "1611" or "1613" or "1615" or "2527" or "2528" or "2727" or "")
  22. .Select(v => new Device<IStation520, IStation521, IStation522>(v)).ToList();
  23. }
  24. protected override bool ParallelDo => true;
  25. protected override bool SaveLogsToFile => true;
  26. public override void Do(Device<IStation520, IStation521, IStation522> obj)
  27. {
  28. throw new NotImplementedException();
  29. }
  30. public override bool Select(Device dev)
  31. {
  32. throw new NotImplementedException();
  33. }
  34. }
  35. }