INozzle.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/INozzle.cs $
  4. *
  5. * 3 07-07-31 14:36 roger.månsson
  6. * Made Com visible.
  7. *
  8. * 2 07-01-05 15:14 roger.månsson
  9. * Added ReadPumpAccumulatorAsync method
  10. *
  11. * 1 07-01-05 9:00 roger.månsson
  12. * Created
  13. */
  14. #endregion
  15. using System.Runtime.InteropServices;
  16. namespace Wayne.ForecourtControl.Com
  17. {
  18. /// <summary>
  19. /// Represents a nozzle
  20. /// </summary>
  21. [ComVisible(true)]
  22. public interface INozzle
  23. {
  24. #region Properties
  25. /// <summary>
  26. /// Nozzle Id.
  27. /// </summary>
  28. int Id { get;}
  29. /// <summary>
  30. /// State of the Nozzle.
  31. /// </summary>
  32. NozzleState State { get;}
  33. /// <summary>
  34. /// The primary tank group.
  35. /// </summary>
  36. int PrimaryTankGroupId { get;}
  37. /// <summary>
  38. /// Blend percentage drawn from the Primary TankGroup. The rest will be drawn from the secondary TankGroup. (100 % for non blending pumps.)
  39. /// </summary>
  40. int PrimaryTankGroupPercentage { get;}
  41. /// <summary>
  42. /// Pointer to the secondary tank group. Blend percentage is 100 % - PrimaryTankPercentage.
  43. /// </summary>
  44. int SecondaryTankGroupId { get;}
  45. /// <summary>
  46. /// Indicates the fuel grade that is connected to this nozzle.
  47. /// </summary>
  48. int FuelGrade { get;}
  49. #endregion
  50. #region Methods
  51. /// <summary>
  52. /// Requests a momentary reading of the physical accumulators for the nozzle.
  53. /// </summary>
  54. /// <param name="userToken"></param>
  55. void ReadPumpAccumulatorAsync(object userToken);
  56. #endregion
  57. }
  58. }