using log4net;
using System;
using System.Diagnostics;
using System.Collections.Generic;
using TBF.BenchControl;
namespace TBF.BenchControl.Operations
{
///
/// An empty operation.
///
/// Constructors:
/// OpTemplate()
///
/// Start argument:
///
/// Events:
/// Event.None ...... operation is in progress
///
class OpTemplate : IOperation
{
private static readonly ILog log = LogManager.GetLogger(typeof(OpTemplate));
public override string ToString() { return string.Format("OpTemplate({0})", someValue); }
/// Set by the constructor
int someValue;
///
/// Constructor
///
public OpTemplate(int someValue)
{
if (someValue < 0 || someValue > 5) throw new ArgumentOutOfRangeException("someValue");
this.someValue = someValue;
}
///
/// When started
///
public void Start()
{
}
///
/// When running
///
///
public Event Run()
{
/// Must return some event
return Event.None;
}
///
/// When stopped
///
public void Stop()
{
}
}
}