28 lines
919 B
C#
28 lines
919 B
C#
///
|
|
/// Copyright (c) 2021 Sensus Slovensko a.s.
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.ControlBoard.Uni
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(8); } }
|
|
public override string ToString() { return ClassName; }
|
|
|
|
public void ResetStaticProperties() { UniCB.ResetStaticProperties(); }
|
|
|
|
public IComponent DummyComponent() { return new UniCB(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new UniCB(cfg); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new UniCBCfg("UniCB", this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(UniCBCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|