tbf/TestBenchFramework/BenchControl/TestMethods/CameraRoiDetection/RoiDetection.cs
2014-07-28 09:56:40 +02:00

28 lines
710 B
C#

using System;
using System.Collections.Generic;
using TBF.BenchControl;
namespace TBF.BenchControl.TestMethods.CameraRoiDetection
{
public class RoiDetection : Generic.IComponent, GenericDevices.ITestMethod, ISequence
{
readonly RoiDetectionCfg roiDetectionCfg;
public Generic.IComponentCfg Cfg { get { return roiDetectionCfg; } }
public static void ResetStaticProperties() { }
public string Name { get { return roiDetectionCfg.Name; } }
public RoiDetection(RoiDetectionCfg cfg)
{
if (cfg == null) throw new ArgumentNullException("cfg");
this.roiDetectionCfg = cfg;
}
public IList<Event> Execute(Entities.Test test)
{
return (new RoiDetectionSeq()).Execute(test);
}
}
}