RoutineDefine.cs 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Aitex.Core.RT.Routine
  6. {
  7. public enum Result
  8. {
  9. RUN,
  10. DONE,
  11. FAIL,
  12. TIMEOUT,
  13. VERIFYFAIL, //Only for Verification use
  14. PAUSE, //Use When Process Needs Pause
  15. Succeed,
  16. WAIT,
  17. }
  18. public class RoutineFaildException : ApplicationException
  19. {
  20. public RoutineFaildException() { }
  21. public RoutineFaildException(string message)
  22. : base(message) { }
  23. }
  24. public class RoutineBreakException : ApplicationException
  25. {
  26. public RoutineBreakException() { }
  27. public RoutineBreakException(string message)
  28. : base(message) { }
  29. }
  30. public enum RoutineState
  31. {
  32. Running,
  33. Failed,
  34. Timeout,
  35. Finished,
  36. }
  37. public class RoutineResult
  38. {
  39. public RoutineState Result;
  40. public string ErrorMessage;
  41. }
  42. }