This commit introduces the `RegValveLowRegulTimeSaturation` module, including core components such as `RegValve`, `ChangeRegValvePositionOp`, `Factory`, `Handlers`, and configuration classes (`RegValveCfg`, `RegValveCfgCtrl`). It integrates `log4net` for logging and adheres to the established modular design architecture.
26 lines
844 B
C#
26 lines
844 B
C#
///
|
|
/// Copyright (c) 2021 Sensus Slovensko a.s.
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.Uni.RegValveLowRegulTimeSaturation
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return GetType().Namespace.Substring(12); } }
|
|
public override string ToString() { return ClassName; }
|
|
|
|
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("VR", this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(RegValveCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|