using System.Collections.Generic;
using XP.Hardware.Detector.Abstractions;
using XP.Hardware.Detector.Abstractions.Enums;
using XP.Hardware.Detector.Config;
namespace XP.Hardware.Detector.Factories
{
///
/// 探测器工厂接口 | Detector factory interface
/// 根据配置创建探测器实例
///
public interface IDetectorFactory
{
///
/// 创建探测器实例 | Create detector instance
///
/// 探测器配置 | Detector configuration
/// 探测器实例或错误结果 | Detector instance or error result
DetectorResult CreateDetector(DetectorConfig config);
///
/// 获取支持的探测器类型 | Get supported detector types
///
/// 支持的类型列表 | List of supported types
IEnumerable GetSupportedTypes();
}
}