Refactorization : BenchControl -> Rig
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
||||
///
|
||||
namespace TBF.Rig.Generic
|
||||
{
|
||||
public interface IDevice : IComponent
|
||||
{
|
||||
void Initialize();
|
||||
|
||||
/// <summary>
|
||||
/// This function is invoked regularly each 1000 ms (once per second)
|
||||
/// just before Start(), Run() and Stop() functions of acrive operations.
|
||||
///
|
||||
/// It runs in a thread created by class Machine (not the user interface thread).
|
||||
/// The function should not block (otherwise it blocks all other devices) !!!
|
||||
/// In case needed, the device must create its own thread to handle hardware
|
||||
/// without any interference with the rest of the system.
|
||||
/// </summary>
|
||||
void RunDeviceBefore();
|
||||
|
||||
/// <summary>
|
||||
/// This function is invoked regularly each 1000 ms (once per second)
|
||||
/// just before Start(), Run() and Stop() functions of acrive operations.
|
||||
///
|
||||
/// It runs in a thread created by class Machine (not the user interface thread).
|
||||
/// The function should not block (otherwise it blocks all other devices) !!!
|
||||
/// In case needed, the device must create its own thread to handle hardware
|
||||
/// without any interference with the rest of the system.
|
||||
/// </summary>
|
||||
void RunDeviceAfter();
|
||||
|
||||
/// <summary>
|
||||
/// Should be invoked once on program shut-down after state machine is stopped
|
||||
/// and after all Stop() functions for all runing operations were called.
|
||||
/// </summary>
|
||||
void StopDevice();
|
||||
|
||||
void StopDevice2();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user