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