Compound profiles support in progress
This commit is contained in:
@@ -55,6 +55,7 @@ namespace TBF.Rig
|
||||
|
||||
/// Public components
|
||||
public static ControlBoard.IControlBoard ControlBoard;
|
||||
public static TestMethods.CombinedWithDetection.TestMethod QriseQfallDetection;
|
||||
public static GenericDevices.IAmbient Ambient;
|
||||
public static IOperation BenchWaitingOp;
|
||||
public static IOperation BenchErrorOp;
|
||||
@@ -227,10 +228,14 @@ namespace TBF.Rig
|
||||
UInt128 valvesToInvert = 0;
|
||||
foreach (var cmpnt in components)
|
||||
{
|
||||
if (cmpnt is TBF.Rig.ControlBoard.IControlBoard) ControlBoard = cmpnt as TBF.Rig.ControlBoard.IControlBoard;
|
||||
if (cmpnt is ControlBoard.IControlBoard) ControlBoard = cmpnt as ControlBoard.IControlBoard;
|
||||
if (cmpnt is IBenchInfo) ProcessData.BenchInfo = cmpnt as IBenchInfo;
|
||||
if (cmpnt is IErrorFlags) ProcessData.ErrorFlagsComp = cmpnt as IErrorFlags;
|
||||
if (cmpnt is IStatisticsMonitoring) ProcessData.StatisticsMonitoringComp = cmpnt as IStatisticsMonitoring;
|
||||
if (cmpnt is TestMethods.CombinedWithDetection.TestMethod && QriseQfallDetection == null)
|
||||
{
|
||||
QriseQfallDetection = cmpnt as TestMethods.CombinedWithDetection.TestMethod;
|
||||
}
|
||||
|
||||
if (cmpnt is SchematicDrawing.IDrawingItCmpntWithMeasuredVal)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace TBF.Rig.TestMethods.CombinedWithDetection
|
||||
public override XmlSerializer GetSerializer() { return Serializer; }
|
||||
|
||||
public double TargetQ; /// Target=terminal flow durning detection when increasing or decreasing the flow
|
||||
public double RelativeQfrom; /// Tested flow low range related to the detected flow
|
||||
public double RelativeQfrom; /// Tested flow low range related to the detected flow
|
||||
public double RelativeQto; /// Tested flow high range related to the detected flow
|
||||
public float RateOfChange; /// Each step is calculated as (TargetQfrom - Qfrom) * RateOfChange, text form is displayed in % (*100)
|
||||
public float DetectionThreshold; /// Drop of frequency for the detection, text form is displayed in % (*100)
|
||||
|
||||
@@ -8,14 +8,14 @@ namespace TBF.Rig.TestMethods.CombinedWithDetection
|
||||
{
|
||||
public class TestMethodFactory : IComponentFactory
|
||||
{
|
||||
public string ClassName { get { return this.GetType().Namespace.Substring(8) + ".Compound"; } }
|
||||
public string ClassName { get { return GetType().Namespace.Substring(8) + ".Compound"; } }
|
||||
public override string ToString() { return ClassName; }
|
||||
|
||||
public IComponent DummyComponent() { return new TestMethod(); }
|
||||
|
||||
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
|
||||
|
||||
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(20), this); }
|
||||
public IComponentCfg DefaultConfig() { return new TestMethodCfg(GetType().Namespace.Substring(20), this); }
|
||||
|
||||
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user