Refactorization : BenchControl -> Rig

This commit is contained in:
Milan Hanajik
2021-03-05 16:12:24 +01:00
parent 84c8ec26b6
commit 6cf3bd6160
1461 changed files with 6330 additions and 6330 deletions
@@ -0,0 +1,37 @@
///
/// Copyright (c) 2016 Sensus Metering Systems
///
using System.Collections.Generic;
using TBF.Rig.Generic;
namespace TBF.Rig.MettlerToledo.Standard
{
public class BalanceOldFactory : IComponentFactory
{
public string ClassName { get { return "MettlerToledoBalanceOld"; } }
public override string ToString() { return ClassName; }
/// <summary>Max. number of components of this class in the system</summary>
public int MaxCount { get { return 5; } }
public IComponent DummyComponent() { return new BalanceOld(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new BalanceOld(cfg); }
public IComponentCfg DefaultConfig() { return new BalanceCfg(this); }
public IComponentCfgCtrl CreateCfgCtrl() { return new BalanceCfgCtrl(); }
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
{
return new BalanceOld((BalanceCfg)config);
}
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(BalanceCfg.Serializer, component, this);
}
public void ResetStaticProperties() { BalanceOld.ResetStaticProperties(); }
}
}