tbf/TBF/Rig/TestMethods/StandingStartMassCollectionPoseidon/Compound/Factory.cs
Michal Buzik c3c21649fb new Test method Poseidon => StandingStartMassCollectionPoseidon
Add support for `StandingStartMassCollectionPoseidon` test methods.

- Introduced `Compound`, `HeatMeters`, and `Single` components for `StandingStartMassCollectionPoseidon`.
- Included factories, configuration classes, and test parameters for new test methods.
- Updated `TBF.csproj` to include new files and resources.
2025-11-12 13:42:19 +01:00

28 lines
980 B
C#

///
/// Copyright (c) 2013-2021 Sensus Slovensko a.s.
///
using System.Collections.Generic;
using TBF.Rig.Configs.NameOnly;
using TBF.Rig.Generic;
namespace TBF.Rig.TestMethods.StandingStartMassCollectionPoseidon.Compound
{
public class Factory : IComponentFactory
{
public string ClassName { get { return this.GetType().Namespace.Substring(8); } }
public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new StandingStartMassCollection.Compound.Component(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new StandingStartMassCollection.Compound.Component(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(20), this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(TestMethodCfg.Serializer, component, this);
}
}
}