tbf/TBF/Rig/Uni/SharedDialogs/SmartMetersCommunication/SmartComponentBase.cs
Michal Buzik 2842425673 Add simulation logic for test operations and water metrology, enhance UI initialization, and implement optohead flow rate handling.
- Introduced simulation timers in `FlyingStartStopTestOp`.
- Added `Simulate` methods in `WaterMetrologyData`, `WaterMetrologyDataC7`, and `WaterMetrologyDataC2`.
- Enhanced `SmartCommunicationForm` with textbox resizing logic and initialization code.
- Implemented flow rate and volume calculation from optohead telemetry in `SmartReader`.
- Added unit tests for Poseidon correction parsing.
2025-12-06 12:46:12 +01:00

28 lines
752 B
C#

using TBF.Rig.Configs.NameOnly;
using TBF.Rig.Generic;
using TBF.Rig.RegisterReaders.CommonRR.IPerl;
namespace TBF.Rig.Uni.SharedDialogs.SmartMetersCommunication
{
public abstract class SmartComponentBase : ComponentBase, ISmartTestMethod
{
private ITestMethodCfg cfg;
public abstract void MeterCommMilestone(int iItem, bool bValue);
public abstract bool IsMeterCommMilestone(int iItem);
public ITestMethodCfg TestMethodCfg { get => cfg; }
public SmartComponentBase()
: base()
{
cfg = null;
}
public SmartComponentBase(IComponentCfg cfg)
: base(cfg)
{
this.cfg = cfg as ITestMethodCfg;
}
}
}