2014-07-28 07:54:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Generic
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IComponentFactory
|
|
|
|
|
|
{
|
|
|
|
|
|
string ClassName { get; } /// Name of the class of components (for instance "Valve")
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the default configuration
|
|
|
|
|
|
/// </summary>
|
2015-01-02 18:14:19 +00:00
|
|
|
|
IComponentCfg DefaultConfig();
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Converts an Entities.Component object into an instance of an appropriate class implementing IComponentCfg
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ResetStaticProperties();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|