65 lines
1.4 KiB
C#
65 lines
1.4 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using log4net;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Collections.Generic;
|
|
using TBF.Rig;
|
|
|
|
namespace TBF.Rig.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()
|
|
{
|
|
}
|
|
}
|
|
}
|