tbf/TBF/BenchControl/Output/FlexFlow/Factory.cs

25 lines
782 B
C#

///
/// Copyright (c) 2021 Sensus Slovensko a.s.
///
using System.Collections.Generic;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.Output.FlexFlow
{
public class Factory : IComponentFactory
{
public string ClassName { get { return GetType().Namespace.Substring(17); } }
public IComponent DummyComponent() { return new FlexFlow(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new FlexFlow(cfg); }
public IComponentCfg DefaultConfig() { return new FlexFlowCfg("FlexFlow", this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(FlexFlowCfg.Serializer, component, this);
}
}
}