IComponentFactory.DummyComponent() interface function added and implemented in all components.

This commit is contained in:
Milan Hanajik
2015-06-29 11:14:33 +02:00
parent 9c99799694
commit 7b902e8ca3
95 changed files with 316 additions and 44 deletions
@@ -41,6 +41,10 @@ namespace TBF.BenchControl.Ambient.Comet
/// <summary>Measurement time stamp when MsrmntState == MsrmntState.Valid</summary>
int msrmntTimeStamp;
public Ambient()
{
}
/// <summary>
/// Ambient temperature / humidity / pressure meter 'Greco' connected via serial interface (RS232)
/// Connection settings: 19200 Bd 8-bits No-parity 1-stop-bit Flow control: none or hardware.
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Ambient.Comet
public void ResetStaticProperties() { Ambient.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Ambient(); }
public IComponentCfg DefaultConfig() { return new AmbientCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -42,6 +42,10 @@ namespace TBF.BenchControl.Ambient.Greco
/// <summary>Measurement time stamp when MsrmntState == MsrmntState.Valid</summary>
int msrmntTimeStamp;
public Ambient()
{
}
/// <summary>
/// Ambient temperature / humidity / pressure meter 'Greco' connected via serial interface (RS232)
/// Connection settings: 19200 Bd 8-bits No-parity 1-stop-bit Flow control: none or hardware.
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Ambient.Greco
public void ResetStaticProperties() { Ambient.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Ambient(); }
public IComponentCfg DefaultConfig() { return new AmbientCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -23,6 +23,10 @@ namespace TBF.BenchControl.BenchId
public int TestBenchNr { get { return benchIdCfg.TestBenchNr; } }
public Component()
{
}
public Component(ComponentCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.BenchId
public void ResetStaticProperties() { Component.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Component(); }
public IComponentCfg DefaultConfig() { return new ComponentCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -28,6 +28,10 @@ namespace TBF.BenchControl.Cameras.CameraRoi
public float PulsesPerLtr { get { return cameraRoiCfg.ProcParams.GradPerLtr; } }
public CameraRoi()
{
}
public CameraRoi(CameraRoiCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Cameras.CameraRoi
public void ResetStaticProperties() { CameraRoi.ResetStaticProperties(); }
public IComponent DummyComponent() { return new CameraRoi(); }
public IComponentCfg DefaultConfig() { return new CameraRoiCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -61,6 +61,10 @@ namespace TBF.BenchControl.Cameras.IdcCamera
IWorkerCmd detectCmd;
IWorkerCmd measureCmd;
public IdcCamera()
{
}
public IdcCamera(IdcCameraCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Cameras.IdcCamera
public void ResetStaticProperties() { IdcCamera.ResetStaticProperties(); }
public IComponent DummyComponent() { return new IdcCamera(); }
public IComponentCfg DefaultConfig() { return new IdcCameraCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -22,7 +22,16 @@ namespace TBF.BenchControl
public Entities.LogLevel LogLevel { get { return cfg.LogLevel; } }
public IList<MeasurementCorrection> Corrections { get { return cfg.Corrections; } }
/// Constructor
/// Constructor, components created in this way is used by
/// IComponentFactory.DummyComponent() function. Such dummy component should be used
/// only for runtime class type identification (e.g. object is iValve)
public ComponentBase()
{
cfg = null;
}
/// Constructor with configuration as an argument
public ComponentBase(IComponentCfg cfg)
{
if (cfg == null) throw new ArgumentNullException("cfg");
@@ -107,6 +107,10 @@ namespace TBF.BenchControl.Danfoss.VLT2800
StringBuilder responseBuilder;
public Pump()
{
}
/// <summary>
/// Ambient temperature / humidity / pressure meter 'Greco' connected via serial interface (RS232)
/// Connection settings: 19200 Bd 8-bits No-parity 1-stop-bit Flow control: none or hardware.
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Danfoss.VLT2800
public void ResetStaticProperties() { Pump.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Pump(); }
public IComponentCfg DefaultConfig() { return new PumpCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -62,7 +62,11 @@ namespace TBF.BenchControl.DataEntry.Combined
CurrentOp currentOp;
public EntryForm(EntryFormCfg cfg)
public EntryForm()
{
}
public EntryForm(EntryFormCfg cfg)
: base(cfg)
{
serialNr = new string[Program.WMsCount / 2 * 2];
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.DataEntry.Combined
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
public IComponent DummyComponent() { return new EntryForm(); }
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -56,7 +56,11 @@ namespace TBF.BenchControl.DataEntry.Munich
CurrentOp currentOp;
public EntryForm(EntryFormCfg cfg)
public EntryForm()
{
}
public EntryForm(EntryFormCfg cfg)
: base(cfg)
{
serialNr = new string[Program.WMsCount];
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.DataEntry.Munich
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
public IComponent DummyComponent() { return new EntryForm(); }
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -56,6 +56,10 @@ namespace TBF.BenchControl.DataEntry.Munich3
CurrentOp currentOp;
public EntryForm()
{
}
public EntryForm(EntryFormCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.DataEntry.Munich3
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
public IComponent DummyComponent() { return new EntryForm(); }
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -62,6 +62,10 @@ namespace TBF.BenchControl.DataEntry.Standard
CurrentOp currentOp;
public EntryForm()
{
}
public EntryForm(EntryFormCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.DataEntry.Standard
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
public IComponent DummyComponent() { return new EntryForm(); }
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -62,6 +62,10 @@ namespace TBF.BenchControl.DataEntry.Standard24
CurrentOp currentOp;
public EntryForm()
{
}
public EntryForm(EntryFormCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.DataEntry.Standard24
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
public IComponent DummyComponent() { return new EntryForm(); }
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -67,6 +67,10 @@ namespace TBF.BenchControl.DataEntry.WMStates
CurrentOp currentOp;
public EntryForm()
{
}
public EntryForm(EntryFormCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.DataEntry.WMStates
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
public IComponent DummyComponent() { return new EntryForm(); }
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -181,7 +181,11 @@ namespace TBF.BenchControl.Elde
}
/// <summary>
public ControlBoardDev()
{
}
/// <summary>
/// Constructor
/// </summary>
public ControlBoardDev(ControlBoardCfg cfg)
@@ -14,15 +14,11 @@ namespace TBF.BenchControl.Elde
/// <summary>Max. number of components of this class in the system</summary>
public int MaxCount { get { return 1; } }
public IComponentCfg DefaultConfig()
{
return new ControlBoardCfg(this);
}
public IComponent DummyComponent() { return new ControlBoardDev(); }
public IComponentCfgCtrl CreateCfgCtrl()
{
return new ControlBoardCfgCtrl();
}
public IComponentCfg DefaultConfig() { return new ControlBoardCfg(this); }
public IComponentCfgCtrl CreateCfgCtrl() { return new ControlBoardCfgCtrl(); }
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
{
@@ -21,6 +21,10 @@ namespace TBF.BenchControl.Elde.Diverter
get { return (controlBoard.Route & mask) != 0; }
}
public Diverter()
{
}
public Diverter(DiverterCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.Diverter
public void ResetStaticProperties() { Diverter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Diverter(); }
public IComponentCfg DefaultConfig() { return new DiverterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -22,6 +22,10 @@ namespace TBF.BenchControl.Elde.FixedStartRegisterReader
public readonly ControlBoardDev ControlBoard;
public RegisterReader()
{
}
public RegisterReader(RegisterReaderCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.FixedStartRegisterReader
public void ResetStaticProperties() { RegisterReader.ResetStaticProperties(); }
public IComponent DummyComponent() { return new RegisterReader(); }
public IComponentCfg DefaultConfig() { return new RegisterReaderCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -31,6 +31,10 @@ namespace TBF.BenchControl.Elde.FlowMeter
}
public FlowMeter()
{
}
public FlowMeter(FlowMeterCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.FlowMeter
public void ResetStaticProperties() { FlowMeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new FlowMeter(); }
public IComponentCfg DefaultConfig() { return new FlowMeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -34,7 +34,11 @@ namespace TBF.BenchControl.Elde.FlowMeterTwins
}
public FlowMeter(FlowMeterCfg cfg, IList<Generic.IComponent> components)
public FlowMeter()
{
}
public FlowMeter(FlowMeterCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
flowMeterCfg = cfg;
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.FlowMeterTwins
public void ResetStaticProperties() { FlowMeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new FlowMeter(); }
public IComponentCfg DefaultConfig() { return new FlowMeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -21,6 +21,10 @@ namespace TBF.BenchControl.Elde.PressureMeter
public readonly int Idx0; /// 0..3
public readonly byte RS485Address; /// 0..255
public PressureMeter()
{
}
public PressureMeter(PressureMeterCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.PressureMeter
public void ResetStaticProperties() { PressureMeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new PressureMeter(); }
public IComponentCfg DefaultConfig() { return new PressureMeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -21,6 +21,10 @@ namespace TBF.BenchControl.Elde.PressureMeterInternal
public int Idx0 { get { return pressureMeterCfg.Idx0; } } /// 0..7
public PressureMeter()
{
}
public PressureMeter(PressureMeterCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -12,6 +12,8 @@ namespace TBF.BenchControl.Elde.PressureMeterInternal
public void ResetStaticProperties() { PressureMeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new PressureMeter(); }
public IComponentCfg DefaultConfig() { return new PressureMeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -32,6 +32,10 @@ namespace TBF.BenchControl.Elde.Pump
public readonly ulong Mask; /// derived from bitPosition in the constructor
public Pump()
{
}
public Pump(PumpCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.Pump
public void ResetStaticProperties() { Pump.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Pump(); }
public IComponentCfg DefaultConfig() { return new PumpCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -42,6 +42,10 @@ namespace TBF.BenchControl.Elde.PumpTandem
public ulong Mask { get { return mask1 | mask2; } } /// derived from masks of two pumps
public Pump()
{
}
public Pump(PumpCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.PumpTandem
public void ResetStaticProperties() { Pump.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Pump(); }
public IComponentCfg DefaultConfig() { return new PumpCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -41,6 +41,11 @@ namespace TBF.BenchControl.Elde.PumpWithFM
get { return power; }
}
public Pump()
{
}
/// <summary>
/// Constructor
/// </summary>
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.PumpWithFM
public void ResetStaticProperties() { Pump.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Pump(); }
public IComponentCfg DefaultConfig() { return new PumpCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -21,6 +21,10 @@ namespace TBF.BenchControl.Elde.RegisterReader
public readonly ControlBoardDev ControlBoard;
public RegisterReader()
{
}
public RegisterReader(RegisterReaderCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.RegisterReader
public void ResetStaticProperties() { RegisterReader.ResetStaticProperties(); }
public IComponent DummyComponent() { return new RegisterReader(); }
public IComponentCfg DefaultConfig() { return new RegisterReaderCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -80,6 +80,10 @@ namespace TBF.BenchControl.Elde.RegulValve
#endregion Configuration Change Handling
public RegulValve()
{
}
public RegulValve(RegulValveCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.RegulValve
public void ResetStaticProperties() { RegulValve.ResetStaticProperties(); }
public IComponent DummyComponent() { return new RegulValve(); }
public IComponentCfg DefaultConfig() { return new RegulValveCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -35,6 +35,10 @@ namespace TBF.BenchControl.Elde.RegulValveTandem
}
public RegulValveTandem()
{
}
public RegulValveTandem(RegulValveTandemCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.RegulValveTandem
public void ResetStaticProperties() { RegulValveTandem.ResetStaticProperties(); }
public IComponent DummyComponent() { return new RegulValveTandem(); }
public IComponentCfg DefaultConfig() { return new RegulValveTandemCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -25,6 +25,10 @@ namespace TBF.BenchControl.Elde.TempMeter
public float A4 { get { return tempMtrCfg.A4; } }
public float A5 { get { return tempMtrCfg.A5; } }
public TempMeter()
{
}
public TempMeter(TempMeterCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.Elde.TempMeter
public void ResetStaticProperties() { TempMeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TempMeter(); }
public IComponentCfg DefaultConfig() { return new TempMeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -21,6 +21,10 @@ namespace TBF.BenchControl.Elde.TempMeterInternal
public int Idx0 { get { return tempMtrCfg.Idx0; } } /// 0..7
public TempMeter()
{
}
public TempMeter(TempMeterCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -12,6 +12,8 @@ namespace TBF.BenchControl.Elde.TempMeterInternal
public void ResetStaticProperties() { TempMeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TempMeter(); }
public IComponentCfg DefaultConfig() { return new TempMeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -31,6 +31,10 @@ namespace TBF.BenchControl.Elde.Valve
public readonly ulong Mask; /// derived from bitPosition in the constructor
public Valve()
{
}
public Valve(ValveCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
{
@@ -7,10 +7,12 @@ namespace TBF.BenchControl.Elde.Valve
{
public class ValveFactory : IComponentFactory
{
public string ClassName { get { return "Valve"; } }
public string ClassName { get { return "ValveEx"; } }
public void ResetStaticProperties() { Valve.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Valve(); }
public IComponentCfg DefaultConfig() { return new ValveCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -9,6 +9,12 @@ namespace TBF.BenchControl.Generic
{
string ClassName { get; } /// Name of the class of components (for instance "Valve")
/// <summary>
/// Returns a dummy component without configuration useful only for runtime class type identification
/// Usage: if (TbfComponents.CmpntFactoryFromClassName(className).DummyComponent() is IValve) { ... }
/// </summary>
IComponent DummyComponent();
/// <summary>
/// Returns the default configuration
/// </summary>
@@ -8,6 +8,10 @@ namespace TBF.BenchControl.GenericDevices
{
public class ValveBase : ComponentBase
{
public ValveBase()
{
}
/// <summary>
/// Invokes ComponentBase constructor
/// </summary>
@@ -65,9 +65,13 @@ namespace TBF.BenchControl.MettlerToledo.Multi
public string Format { get { return balanceCfg.Format; } }
/// <summary>
/// Constructor
/// </summary>
public BalanceDev()
{
}
/// <summary>
/// Constructor
/// </summary>
/// <param name="cfg">Balance properties</param>
public BalanceDev(BalanceCfg cfg)
: base(cfg)
@@ -14,15 +14,11 @@ namespace TBF.BenchControl.MettlerToledo.Multi
/// <summary>Max. number of components of this class in the system</summary>
public int MaxCount { get { return 5; } }
public IComponentCfg DefaultConfig()
{
return new BalanceCfg(this);
}
public IComponent DummyComponent() { return new BalanceDev(); }
public IComponentCfgCtrl CreateCfgCtrl()
{
return new BalanceCfgCtrl();
}
public IComponentCfg DefaultConfig() { return new BalanceCfg(this); }
public IComponentCfgCtrl CreateCfgCtrl() { return new BalanceCfgCtrl(); }
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
{
@@ -65,9 +65,13 @@ namespace TBF.BenchControl.MettlerToledo.Standard
public string Format { get { return balanceCfg.Format; } }
/// <summary>
/// Constructor
/// </summary>
public BalanceDev()
{
}
/// <summary>
/// Constructor
/// </summary>
/// <param name="cfg">Balance properties</param>
/// <param components="cfg">A list of components loaded so far</param>
public BalanceDev(BalanceCfg cfg)
@@ -14,15 +14,11 @@ namespace TBF.BenchControl.MettlerToledo.Standard
/// <summary>Max. number of components of this class in the system</summary>
public int MaxCount { get { return 5; } }
public IComponentCfg DefaultConfig()
{
return new BalanceCfg(this);
}
public IComponent DummyComponent() { return new BalanceDev(); }
public IComponentCfgCtrl CreateCfgCtrl()
{
return new BalanceCfgCtrl();
}
public IComponentCfg DefaultConfig() { return new BalanceCfg(this); }
public IComponentCfgCtrl CreateCfgCtrl() { return new BalanceCfgCtrl(); }
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
{
@@ -31,6 +31,10 @@ namespace TBF.BenchControl.MettlerToledo.Standard
public string SerialNumber { get { return serialNumber; } }
string serialNumber;
public BalanceNewDev()
{
}
public BalanceNewDev(BalanceCfg cfg)
: base(cfg)
{
@@ -14,15 +14,11 @@ namespace TBF.BenchControl.MettlerToledo.Standard
/// <summary>Max. number of components of this class in the system</summary>
public int MaxCount { get { return 5; } }
public IComponentCfg DefaultConfig()
{
return new BalanceCfg(this);
}
public IComponent DummyComponent() { return new BalanceNewDev(); }
public IComponentCfgCtrl CreateCfgCtrl()
{
return new BalanceCfgCtrl();
}
public IComponentCfg DefaultConfig() { return new BalanceCfg(this); }
public IComponentCfgCtrl CreateCfgCtrl() { return new BalanceCfgCtrl(); }
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
{
@@ -26,6 +26,10 @@ namespace TBF.BenchControl.ResultsPrinters.Basic
Entities.Procedure procedure;
IList<Entities.TestResult> unsortedResults;
public Printer()
{
}
public Printer(PrinterCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.ResultsPrinters.Basic
public void ResetStaticProperties() { Printer.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Printer(); }
public IComponentCfg DefaultConfig() { return new PrinterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -32,6 +32,10 @@ namespace TBF.BenchControl.ResultsPrinters.Munich
public bool SupressPrinting { get { return false; } }
public Printer()
{
}
public Printer(PrinterCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.ResultsPrinters.Munich
public void ResetStaticProperties() { Printer.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Printer(); }
public IComponentCfg DefaultConfig() { return new PrinterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -33,6 +33,10 @@ namespace TBF.BenchControl.ResultsWriters.Basic
string separatorStr;
public Writer()
{
}
public Writer(WriterCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.ResultsWriters.Basic
public void ResetStaticProperties() { Writer.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Writer(); }
public IComponentCfg DefaultConfig() { return new WriterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -17,6 +17,10 @@ namespace TBF.BenchControl.TestMethods.Adjustment
public bool Publish { get { return false; } }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Single; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.Adjustment
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -17,6 +17,10 @@ namespace TBF.BenchControl.TestMethods.CameraRoiDetection
public bool Publish { get { return false; } }
public bool CanTest(Entities.MetersKind meters) { return true; }
public RoiDetection()
{
}
public RoiDetection(RoiDetectionCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.CameraRoiDetection
public void ResetStaticProperties() { RoiDetection.ResetStaticProperties(); }
public IComponent DummyComponent() { return new RoiDetection(); }
public IComponentCfg DefaultConfig() { return new RoiDetectionCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -19,6 +19,10 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Combined; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -19,6 +19,10 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Combined; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -17,6 +17,10 @@ namespace TBF.BenchControl.TestMethods.FixedStartCombinedMeters
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Single; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.FixedStartCombinedMeters
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -17,6 +17,10 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Single; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -17,6 +17,10 @@ namespace TBF.BenchControl.TestMethods.FlyingStart
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Single; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.FlyingStart
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -17,6 +17,10 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Single; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -19,6 +19,10 @@ namespace TBF.BenchControl.TestMethods.LeakTest
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return true; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.LeakTest
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -19,6 +19,10 @@ namespace TBF.BenchControl.TestMethods.PMaxTest
public bool Publish { get { return true; } }
public bool CanTest(Entities.MetersKind meters) { return true; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.PMaxTest
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -17,6 +17,10 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
public bool Publish { get { return false; } }
public bool CanTest(Entities.MetersKind meters) { return true; }
public TestMethod()
{
}
public TestMethod(TestMethodCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
@@ -59,6 +59,10 @@ namespace TBF.BenchControl.WaterMeter
}
bool disabled;
public WaterMeter()
{
}
public WaterMeter(WaterMeterCfg cfg)
: base(cfg)
{
@@ -11,6 +11,8 @@ namespace TBF.BenchControl.WaterMeter
public void ResetStaticProperties() { WaterMeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new WaterMeter(); }
public IComponentCfg DefaultConfig() { return new WaterMeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)