IComponentCfg and IComponentFactory interfaces and all derived classes modified.

This commit is contained in:
Milan Hanajik
2016-08-05 14:32:36 +02:00
parent 4d616939ad
commit 8dae45e10e
201 changed files with 491 additions and 354 deletions
@@ -1,6 +1,5 @@
///
/// Copyright (c) 2013-2015 Sensus Metering Systems
/// Author: Milan Hanajík
///
using System;
using System.Collections.Generic;
@@ -23,7 +22,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
{
}
public TestMethod(TestMethodCfg cfg)
public TestMethod(Generic.IComponentCfg cfg)
: base(cfg)
{
log.Debug(this.ToString());
@@ -1,5 +1,5 @@
///
/// Copyright (c) 2013-2015 Sensus Metering Systems
/// Copyright (c) 2013-2016 Sensus Metering Systems
///
using System;
using System.Collections.Generic;
@@ -12,21 +12,18 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
{
public class TestMethodCfg : ComponentCfgBase, Generic.IComponentCfg
{
public IComponent GetComponent(IList<IComponent> components) { return new TestMethod(this); }
public IComponentCfgCtrl GetControl() { return new TestMethodCfgCtrl(); }
/// Private parameterless constructor invoked by all other (public) constructors
TestMethodCfg()
{
Name = "FlyingStartCollection";
ParentName = string.Empty;
}
TestMethodCfg() { }
public TestMethodCfg(IComponentFactory factory)
public TestMethodCfg(string name, IComponentFactory factory)
: this()
{
this.Factory = factory;
}
Name = name;
Factory = factory;
ParentName = string.Empty;
}
public string ToString(int i)
{
@@ -1,6 +1,7 @@
///
/// Copyright (c) 2013-2015 Sensus Metering Systems
/// Copyright (c) 2013-2016 Sensus Metering Systems
///
using System.Collections.Generic;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
@@ -13,7 +14,9 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
public IComponent DummyComponent() { return new TestMethod(); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg("FlyingStartCollection", this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{