SerialStream.S640Stream in progress.

This commit is contained in:
Milan Hanajik
2021-05-25 22:13:11 +02:00
parent 9d01d565df
commit 7613613fad
26 changed files with 1502 additions and 1122 deletions
@@ -7,6 +7,7 @@ using System.IO.Ports;
using log4net;
using Config.Entities;
using TBF.Rig.Generic;
using TBF.Rig.GenericDevices;
using TBF.Rig.Output;
namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
@@ -14,7 +15,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
/// <summary>
/// This component = instance of this class is a placeholder for a combined main watermeter
/// </summary>
public class IperlHead : ComponentBase, IDevice, GenericDevices.IRegReaderDatastream, GenericDevices.IHasTestName, IOperation
public class IperlHead : ComponentBase, IDevice, IRegReaderDatastream, IHasTestName, IHasClearSessionData, IOperation
{
private static readonly ILog log = LogManager.GetLogger(typeof(IperlHead));
public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(-1)); }
@@ -372,7 +373,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
public override void Initialize()
{
ClearData();
ClearSessionData();
optoSerialPortParsingEnabled = false;
flowDirectionDetection = new FlowDirectionDetection();
@@ -406,7 +407,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
/// <summary>
/// Clear data related to a specific water meter
/// </summary>
public void ClearData()
public void ClearSessionData()
{
resultCode = 0;
@@ -509,7 +510,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
/// Events: Event.ReadRegisterDone, Event.Error
/// </summary>
/// <returns>ReadWaterMeter instance reference casted to IOperaton</returns>
public IOperation ReadRegisterOp()
public IOperation ReadDatastreamOp()
{
return this;
}