#region --------------- Copyright Dresser Wayne Pignone ------------- /* * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/IFuelPrice.cs $ * * 4 07-06-26 9:18 roger.månsson * * 3 07-01-05 8:59 roger.månsson * Renamed GeneralPriceChange -> GeneralPriceDelta and AddPrices -> * PriceGroupDelta */ #endregion using System.Runtime.InteropServices; namespace Wayne.ForecourtControl { /// /// The fuel price represents the prices for one Fuel grade for the whole Forecourt. The prices /// are read /// Total fuel price for a fuelling is calculated as FuelPrice.BasePrice + FuelPrice.GeneralPriceChange + FuelPrice.AddPrices[ current price group] /// [System.Runtime.InteropServices.ComVisible(true)] public interface IFuelPrice { /// /// The Fuel grade that this fuel price represents. /// int FuelGrade { get; } /// /// Indicates if the Fuel price is reserved, and thus writable. /// bool Reserved { get; } /// /// Base price of the fuel grade /// decimal BasePrice { get; set; } /// /// Base price of the fuel grade as currency in COM. /// decimal BasePriceAsCurrency { [return: MarshalAs(UnmanagedType.Currency)] get; [param: MarshalAs(UnmanagedType.Currency)] set; } /// /// A general price deviation from the base price that is used for all PriceGroups. /// decimal GeneralPriceDelta { get; set; } /// /// A general price deviation from the base price that is used for all PriceGroups. /// decimal GeneralPriceDeltaAsCurrency { [return: MarshalAs(UnmanagedType.Currency)] get; [param: MarshalAs(UnmanagedType.Currency)] set; } /// /// The Price deviation from the /// IFuelPriceAddPricePerPriceGroup PriceGroupDelta { get; } /// /// Validates the price setup against the min/max prices. /// /// bool Validate(); } }