Refactoring : TestBenchFramework --> TBF ver. 2.18.789
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
||||
///
|
||||
using log4net;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Collections.Generic;
|
||||
using TBF.BenchControl;
|
||||
|
||||
namespace TBF.BenchControl.Operations
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty operation.
|
||||
///
|
||||
/// Constructors:
|
||||
/// OpTemplate()
|
||||
///
|
||||
/// Start argument:
|
||||
///
|
||||
/// Events:
|
||||
/// Event.None ...... operation is in progress
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
public OpTemplate(int someValue)
|
||||
{
|
||||
if (someValue < 0 || someValue > 5) throw new ArgumentOutOfRangeException("someValue");
|
||||
this.someValue = someValue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// When started
|
||||
/// </summary>
|
||||
public void Start()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// When running
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Event Run()
|
||||
{
|
||||
/// Must return some event
|
||||
return Event.None;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// When stopped
|
||||
/// </summary>
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user