2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Elde
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ControlBoardFactory : IComponentFactory
|
|
|
|
|
|
{
|
|
|
|
|
|
public string ClassName { get { return "ControlBoard"; } }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Max. number of components of this class in the system</summary>
|
|
|
|
|
|
public int MaxCount { get { return 1; } }
|
|
|
|
|
|
|
2015-06-29 09:14:33 +00:00
|
|
|
|
public IComponent DummyComponent() { return new ControlBoardDev(); }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-06-29 09:14:33 +00:00
|
|
|
|
public IComponentCfg DefaultConfig() { return new ControlBoardCfg(this); }
|
|
|
|
|
|
|
|
|
|
|
|
public IComponentCfgCtrl CreateCfgCtrl() { return new ControlBoardCfgCtrl(); }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
|
|
|
|
|
|
{
|
2015-01-02 18:14:19 +00:00
|
|
|
|
return new ControlBoardDev((ControlBoardCfg)config);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(typeof(Elde.ControlBoardCfg), component, this);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void ResetStaticProperties() { ControlBoardDev.ResetStaticProperties(); }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|