Files
2026-04-17 14:55:32 -04:00

61 lines
2.2 KiB
C#

using DTS.Common.Enums.Sensors;
namespace DTS.Common.Interface.Sensors.SensorSettingsModule
{
/// <summary>
/// describes settings sensor calibrations
/// </summary>
public interface ICalibrationPolicy
{
/// <summary>
/// the current selected calibration policy
/// </summary>
SensorConstants.SensorCalPolicy SelectedCalPolicy { get; set; }
/// <summary>
/// all available calibration policies
/// </summary>
SensorConstants.SensorCalPolicy[] AvailableSensorCalPolicies { get; }
/// <summary>
/// period in days before calibration is due to warn
/// </summary>
int WarningPeriod { get; set; }
/// <summary>
/// The current value for whether sensor cal interval starts after calibration or first use
/// </summary>
bool UseSensorFirstUseDate { get; set; }
/// <summary>
/// Whether or not to keep track of, and validate a Test Setup based on, sensor use.
/// </summary>
bool DontAllowDataCollectionIfOverused { get; set; }
/// <summary>
/// A warning will be displayed if a sensor's usage is within this amount of its maximum.
/// </summary>
int UsageRemainingForWarning { get; set; }
/// <summary>
/// The default maximum number of uses for sensors
/// </summary>
int DefaultMaxUsageAllowed { get; set; }
/// <summary>
/// Whether or not the database being used supports the sensor usage policy.
/// </summary>
bool SensorAssemblyEnabled { get; }
/// <summary>
/// Whether or not the database being used supports the inspect before use
/// </summary>
bool AllowInspectBeforeUseEnabled { get; }
//FB43142
/// <summary>
/// Whether or not to allow inspect before use
/// </summary>
bool AllowInspectBeforeUse { get; set; }
/// <summary>
/// FB15758 Import/Export settings
/// </summary>
void ReadXML(System.Xml.XmlElement root);
void WriteXML(ref System.Xml.XmlWriter writer);
}
}