INozzle.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #endregion
  46. #region Methods
  47. /// <summary>
  48. /// Requests a momentary reading of the physical accumulators for the nozzle.
  49. /// </summary>
  50. /// <param name="accumulatorsRead"></param>
  51. /// <param name="userToken"></param>
  52. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
  53. void ReadPumpAccumulatorAsync(EventHandler<AsyncCompletedEventArgs<PumpAccumulatorReading>> accumulatorsRead, object userToken);
  54. #endregion
  55. }
  56. }