ErrorFlags.TestParams : E25, E26, E27, E28 added for IPERL

This commit is contained in:
Milan Hanajik
2019-05-16 10:34:37 +02:00
parent 357a216b6b
commit 48c021e9fb
@@ -1,5 +1,5 @@
///
/// Copyright (c) 2017-2018 Sensus Slovensko a.s.
/// Copyright (c) 2017-2019 Sensus Slovensko a.s.
///
using System.IO;
using System.Xml.Serialization;
@@ -50,6 +50,13 @@ namespace TBF.BenchControl.Various.ErrorFlags
public float Offset_E9; /// [s] default 0 (no offset)
public float Offset_E12; /// [s] default 0 (no offset)
#if IPERL
public bool E25; /// MaxProefindex verification
public bool E26; /// Q2 factors verification (saved from production == current)
public bool E27; /// Direction verification
public bool E28; /// Previous workflow step verification
#endif
public override void InitializeAll()
{
Mode = ErrorFlagsMode.Info;
@@ -71,6 +78,11 @@ namespace TBF.BenchControl.Various.ErrorFlags
E15 = false;
E16 = false;
E21 = true;
E25 = true; /// MaxPruefindex verification
E26 = false; /// Q2 factors verification (saved from production == current)
E27 = false; /// Direction verification
E28 = true; /// Previous workflow step verification
#else
E1 = true;
E2 = true;
@@ -145,6 +157,12 @@ namespace TBF.BenchControl.Various.ErrorFlags
"Coef.E12",
"Offset E9 [s]",
"Offset E12 [s]",
#if IPERL
"E25",
"E26",
"E27",
"E28",
#endif
};
public override string ParamName(int i) { return paramNames[i]; }
public override int ParamsCount() { return paramNames.Length; }
@@ -187,7 +205,12 @@ namespace TBF.BenchControl.Various.ErrorFlags
case 30: return Coef_E12.ToString();
case 31: return Offset_E9.ToString();
case 32: return Offset_E12.ToString();
#if IPERL
case 33: return (E25 ? Strings.yes : Strings.no);
case 34: return (E26 ? Strings.yes : Strings.no);
case 35: return (E27 ? Strings.yes : Strings.no);
case 36: return (E28 ? Strings.yes : Strings.no);
#endif
default: return string.Empty;
}
}
@@ -240,7 +263,12 @@ namespace TBF.BenchControl.Various.ErrorFlags
case 30: Coef_E12 = Utils.ParseUFloat(strValue); return CfgUpdateFlags.None;
case 31: Offset_E9 = Utils.ParseUFloat(strValue); return CfgUpdateFlags.None;
case 32: Offset_E12 = Utils.ParseUFloat(strValue); return CfgUpdateFlags.None;
#if IPERL
case 33: E25 = (strValue == Strings.yes); return CfgUpdateFlags.None;
case 34: E26 = (strValue == Strings.yes); return CfgUpdateFlags.None;
case 35: E27 = (strValue == Strings.yes); return CfgUpdateFlags.None;
case 36: E28 = (strValue == Strings.yes); return CfgUpdateFlags.None;
#endif
default: return CfgUpdateFlags.None;
}
}
@@ -277,6 +305,10 @@ namespace TBF.BenchControl.Various.ErrorFlags
case 15:
case 16:
case 17:
case 33:
case 34:
case 35:
case 36:
if (strValue == Strings.yes || strValue == Strings.no) return true;
break;
@@ -343,6 +375,12 @@ namespace TBF.BenchControl.Various.ErrorFlags
prms.Coef_E12 = this.Coef_E12;
prms.Offset_E9 = this.Offset_E9;
prms.Offset_E12 = this.Offset_E12;
#if IPERL
prms.E25 = this.E25;
prms.E26 = this.E26;
prms.E27 = this.E27;
prms.E28 = this.E28;
#endif
}
public IParamsProvider Clone()