37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
///
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.MettlerToledo.Standard
|
|
{
|
|
public class BalanceOldFactory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return "MettlerToledoBalanceOld"; } }
|
|
|
|
/// <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(); }
|
|
}
|
|
}
|