tbf/TBF/BenchControl/Generic/IComponent.cs

41 lines
951 B
C#

///
/// Copyright (c) 2013-2021 Sensus Slovensko a.s.
///
using System.Collections.Generic;
namespace TBF.BenchControl.Generic
{
public interface IComponent
{
string Name { get; }
string ClassName { get; }
string ParentName { get; }
Config.Entities.DebugMode DebugLevel { get; }
Config.Entities.LogLevel LogLevel { get; }
IComponentCfg Cfg { get; }
/// <summary>
/// Measurement correction table
/// </summary>
IList<Config.Entities.MeasurementCorrection> Corrections { get; set; }
IList<Config.Entities.Uncertainty> Uncertainties { get; set; }
/// <summary>
/// Invoked once on program start-up before the state machine is started,
/// before RunDeviceBefore() functions of all devices and before Start()
/// functions of all operations.
/// </summary>
void Initialize();
void StartChangeHandler();
void StopChangeHandler();
}
}