-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathISignalSample.cs
More file actions
44 lines (40 loc) · 1.64 KB
/
ISignalSample.cs
File metadata and controls
44 lines (40 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Core.ArgumentValidation;
using System;
namespace RapidField.SolidInstruments.SignalProcessing
{
/// <summary>
/// Represents the result of a read operation performed against an <see cref="IChannel{T}" />.
/// </summary>
/// <typeparam name="T">
/// The type of the sampled channel's output value.
/// </typeparam>
public interface ISignalSample<T>
{
/// <summary>
/// Gets a range of discrete units of output following <see cref="UnitOfOutput" /> in the channel's output stream, or an
/// empty range if look-ahead was not requested.
/// </summary>
public IOutputRange<T> LookAheadRange
{
get;
}
/// <summary>
/// Gets a range of discrete units of output preceding <see cref="UnitOfOutput" /> in the channel's output stream, or an
/// empty range if look-behind was not requested.
/// </summary>
public IOutputRange<T> LookBehindRange
{
get;
}
/// <summary>
/// Gets the discrete unit of output that was read from the channel's output stream.
/// </summary>
public IDiscreteUnitOfOutput<T> UnitOfOutput
{
get;
}
}
}