28 lines
931 B
C#
28 lines
931 B
C#
///
|
|
/// Copyright (c) 2021 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Uni.RegValve
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(17 + 4); } }
|
|
public override string ToString() { return ClassName; }
|
|
|
|
public void ResetStaticProperties() { RegValve.ResetStaticProperties(); }
|
|
|
|
public IComponent DummyComponent() { return new RegValve(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new RegValve(cfg, components); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new RegValveCfg("RV", this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(RegValveCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|