IMoveManager.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Core.RT.Routine;
  6. using Aitex.Sorter.Common;
  7. namespace Aitex.Sorter.RT.Module
  8. {
  9. public class MoveErrorArgument
  10. {
  11. public string ErrorModule;
  12. public string ErrorMessage;
  13. public MoveErrorArgument(string module, string message)
  14. {
  15. ErrorModule = module;
  16. ErrorMessage = message;
  17. }
  18. }
  19. public interface IMoveManager
  20. {
  21. event Action<MoveErrorArgument> OnMoveError;
  22. int TaskCount { get; }
  23. int WaferCompleted { get; }
  24. bool Pause();
  25. bool Resume();
  26. bool Stop();
  27. bool Start(List<MoveTask> tasks);
  28. /// <summary>
  29. /// 任务完成,或者任务失败返回true。任务进行中,返回false
  30. /// </summary>
  31. /// <param name="objs"></param>
  32. /// <returns></returns>
  33. bool Monitor(object[] objs);
  34. /// <summary>
  35. ///
  36. /// </summary>
  37. /// <returns></returns>
  38. Result Monitor();
  39. bool IsPaused { get; }
  40. }
  41. }