SchedulerLoadLock.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 && 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. private LLEntity _entity = null;
  31. public SchedulerLoadLock(ModuleName module) : base(module.ToString())
  32. {
  33. _entity = Singleton<RouteManager>.Instance.GetLL(module);
  34. }
  35. private bool CheckTaskDone()
  36. {
  37. return true;
  38. }
  39. }
  40. }