#region --------------- Copyright Dresser Wayne Pignone ------------- /* * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/ITankReading.cs $ * * 1 07-03-09 15:37 roger.månsson * Created. */ #endregion using System; using System.Runtime.InteropServices; namespace Wayne.ForecourtControl { /// /// Data structure carrying the information of a physical tank reading. /// [ComVisible(true)] public interface ITankReading { /// /// Id of the Tank where the reading was made. /// int TankId { get; } /// /// Status of the probe reading. /// ProbeState State { get; } /// /// Date and time when the phsical reading was made. /// DateTime DateTime { get; } /// /// Fuel level, read by the probe. /// decimal FuelLevel { [return: MarshalAs( UnmanagedType.Currency)]get; } /// /// Normalized fuel volume recalculated to the normalized temperature (15° C). /// decimal NormalizedFuelLevel { [return: MarshalAs(UnmanagedType.Currency)]get; } /// /// Water level, read by the probe. /// decimal WaterLevel { [return: MarshalAs(UnmanagedType.Currency)]get; } /// /// Fuel temperature, read by the probe. /// decimal FuelTemperature { [return: MarshalAs(UnmanagedType.Currency)]get; } /// /// Unit of measure for the water level. /// UnitOfMeasure WaterLevelUnit { get; } /// /// Unit of measure used for the fuel level. /// UnitOfMeasure FuelLevelUnit { get; } /// /// Indicates if the normalized fuel volume is supplied. /// bool NormalizedFuelLevelSupplied { get; } } }