26 lines
871 B
C#
26 lines
871 B
C#
///
|
|
/// Copyright (c) 2021 Sensus Slovensko a.s.
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.TestMethods.S640Communication
|
|
{
|
|
public class S640StartFactory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return GetType().Namespace.Substring(8) + ".Start"; } }
|
|
public override string ToString() { return ClassName; }
|
|
|
|
public IComponent DummyComponent() { return new S640Start(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new S640Start(cfg); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new S640StartCfg("S640Comm.Start", this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(S640StartCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|