SchedulerLoadLock.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System.Diagnostics;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Aitex.Core.RT.Fsm;
  7. using Aitex.Core.Util;
  8. using Aitex.Core.RT.SCCore;
  9. using Aitex.Sorter.Common;
  10. using MECF.Framework.Common.Equipment;
  11. using MECF.Framework.Common.Schedulers;
  12. using MECF.Framework.Common.SubstrateTrackings;
  13. using Venus_RT.Scheduler;
  14. namespace Venus_RT.Modules.Schedulers
  15. {
  16. public class SchedulerLoadLock : SchedulerModule
  17. {
  18. public override bool IsAvailable
  19. {
  20. get { return _entity.IsIdle && (_entity.IsOnline || !Singleton<RouteManager>.Instance.IsAutoMode) && CheckTaskDone(); }
  21. }
  22. public override bool IsOnline
  23. {
  24. get { return _entity.IsOnline; }
  25. }
  26. public override bool IsError
  27. {
  28. get { return _entity.IsError; }
  29. }
  30. public override bool IsVac
  31. {
  32. get { return _entity.IsVac; }
  33. }
  34. public override bool IsAtm
  35. {
  36. get { return _entity.IsATM; }
  37. }
  38. private LLEntity _entity = null;
  39. public SchedulerLoadLock(ModuleName module) : base(module.ToString())
  40. {
  41. _entity = Singleton<RouteManager>.Instance.GetLL(module);
  42. }
  43. private bool CheckTaskDone()
  44. {
  45. return true;
  46. }
  47. }
  48. }