ITankReading.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/ITankReading.cs $
  4. *
  5. * 1 07-03-09 15:37 roger.månsson
  6. * Created.
  7. */
  8. #endregion
  9. using System;
  10. using System.Runtime.InteropServices;
  11. namespace Wayne.ForecourtControl
  12. {
  13. /// <summary>
  14. /// Data structure carrying the information of a physical tank reading.
  15. /// </summary>
  16. [ComVisible(true)]
  17. public interface ITankReading
  18. {
  19. /// <summary>
  20. /// Id of the Tank where the reading was made.
  21. /// </summary>
  22. int TankId { get; }
  23. /// <summary>
  24. /// Status of the probe reading.
  25. /// </summary>
  26. ProbeState State { get; }
  27. /// <summary>
  28. /// Date and time when the phsical reading was made.
  29. /// </summary>
  30. DateTime DateTime { get; }
  31. /// <summary>
  32. /// Fuel level, read by the probe.
  33. /// </summary>
  34. decimal FuelLevel { [return: MarshalAs( UnmanagedType.Currency)]get; }
  35. /// <summary>
  36. /// Normalized fuel volume recalculated to the normalized temperature (15° C).
  37. /// </summary>
  38. decimal NormalizedFuelLevel { [return: MarshalAs(UnmanagedType.Currency)]get; }
  39. /// <summary>
  40. /// Water level, read by the probe.
  41. /// </summary>
  42. decimal WaterLevel { [return: MarshalAs(UnmanagedType.Currency)]get; }
  43. /// <summary>
  44. /// Fuel temperature, read by the probe.
  45. /// </summary>
  46. decimal FuelTemperature { [return: MarshalAs(UnmanagedType.Currency)]get; }
  47. /// <summary>
  48. /// Unit of measure for the water level.
  49. /// </summary>
  50. UnitOfMeasure WaterLevelUnit { get; }
  51. /// <summary>
  52. /// Unit of measure used for the fuel level.
  53. /// </summary>
  54. UnitOfMeasure FuelLevelUnit { get; }
  55. /// <summary>
  56. /// Indicates if the normalized fuel volume is supplied.
  57. /// </summary>
  58. bool NormalizedFuelLevelSupplied { get; }
  59. }
  60. }