Refactorization : BenchControl -> Rig
This commit is contained in:
@@ -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(); }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user