IDevice.cs 643 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using Aitex.Core.RT.Event;
  3. using MECF.Framework.Common.Event;
  4. namespace Aitex.Core.RT.Device
  5. {
  6. public interface IDevice
  7. {
  8. event Action<string, AlarmEventItem> OnDeviceAlarmStateChanged;
  9. string Module { get; set; }
  10. string Name { get; set; }
  11. bool HasAlarm { get; }
  12. bool Initialize();
  13. void Monitor();
  14. void Terminate();
  15. void Reset();
  16. }
  17. public interface IModuleDevice
  18. {
  19. bool IsReady { get; }
  20. bool IsError { get; }
  21. bool IsInit { get; }
  22. bool Home(out string reason);
  23. }
  24. }