INozzle.cs 2.2 KB

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