#region --------------- Copyright Dresser Wayne Pignone ------------- /* * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/TankReading.cs $ * * 3 07-02-16 9:59 roger.månsson * FxCop changes * * 2 07-01-09 9:28 roger.månsson * Documentation fixes * * 1 07-01-05 15:12 roger.månsson * Created */ #endregion using System; using System.Collections.Generic; using System.Text; namespace Wayne.ForecourtControl { /// /// Data structure carrying the information of a physical tank reading. /// public class TankReading // : Com.ITankReading { #region Fields ITank tank; ProbeState state; DateTime dateTime; decimal fuelLevel; decimal normalizedFuelLevel; decimal waterLevel; decimal fuelTemperature; UnitOfMeasure fuelLevelUnit; UnitOfMeasure waterLevelUnit; bool normalizedFuelLevelSupplied; #endregion #region Construction /// /// Constructor. /// /// /// /// /// /// /// /// /// /// /// public TankReading(ITank tank, ProbeState state, DateTime dateTime, decimal fuelLevel, decimal normalizedFuelLevel, decimal waterLevel, decimal fuelTemperature, UnitOfMeasure fuelLevelUnit, UnitOfMeasure waterLevelUnit, bool normalizedFuelLevelSupplied) { this.tank = tank; this.state = state; this.dateTime = dateTime; this.fuelLevel = fuelLevel; this.normalizedFuelLevel = normalizedFuelLevel; this.waterLevel = waterLevel; this.fuelTemperature = fuelTemperature; this.fuelLevelUnit = fuelLevelUnit; this.waterLevelUnit = waterLevelUnit; this.normalizedFuelLevelSupplied = normalizedFuelLevelSupplied; } #endregion #region ITankReading Members /// /// Tank where the reading was made. /// public ITank Tank { get { return tank ; } } /// /// Status of the probe reading. /// public ProbeState State { get { return state; } } /// /// Date and time when the phsical reading was made. /// public DateTime DateTime { get { return dateTime; } } /// /// Fuel level, read by the probe. /// public decimal FuelLevel { get { return fuelLevel; } } /// /// Normalized fuel volume recalculated to the normalized temperature (15° C). /// public decimal NormalizedFuelLevel { get { return normalizedFuelLevel; } } /// /// Water level, read by the probe. /// public decimal WaterLevel { get { return waterLevel; } } /// /// Fuel temperature, read by the probe. /// public decimal FuelTemperature { get { return fuelTemperature; } } /// /// Unit of measure used for the fuel level. /// public UnitOfMeasure FuelLevelUnit { get { return fuelLevelUnit; } } /// /// Unit of measure for the water level. /// public UnitOfMeasure WaterLevelUnit { get { return waterLevelUnit; } } /// /// Indicates if the normalized fuel volume is supplied. /// public bool NormalizedFuelLevelSupplied { get { return normalizedFuelLevelSupplied; } } #endregion } }