Files
DP44/Common/DTS.Common.Serialization/.svn/pristine/a3/a3f180be1be2c49c777b617ef6ef6d76b796e030.svn-base

82 lines
2.9 KiB
Plaintext
Raw Normal View History

2026-04-17 14:55:32 -04:00
/*
* DTS.Slice.Control.Event.Module.ReviewableSampleRateAttribute.cs
*
* Copyright © 2009
* Diversified Technical Systems, Inc.
* All Rights Reserved
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTS.Utilities;
namespace DTS.Slice.Control
{
// *** see DTS.Slice.Control.Event.cs ***
public partial class Event {
// *** see DTS.Slice.Control.Event.Module.cs ***
public partial class Module {
/// <summary>
/// A reviewable filter frequency attribute attached to a specific channel.
/// </summary>
public class ReviewableSampleRateAttribute
: Slice.Control.Event.Module.ReviewableAttribute
{
/// <summary>
/// Initialize an instance of this class.
/// </summary>
///
/// <param name="channel">
/// The <see cref="Event.Module"/> to which this attribute is attached.
/// </param>
///
public ReviewableSampleRateAttribute(Event.Module module)
: base("Sample Rate", delegate { return module.SampleRateHz.ToString("N"); })
{
}
}
/// <summary>
/// A reviewable filter frequency attribute attached to a specific channel.
/// </summary>
public class ReviewableTestDescriptionAttribute
: Slice.Control.Event.Module.ReviewableAttribute
{
/// <summary>
/// Initialize an instance of this class.
/// </summary>
///
/// <param name="channel">
/// The <see cref="Event.Module"/> to which this attribute is attached.
/// </param>
///
public ReviewableTestDescriptionAttribute(Event.Module module)
: base("Test Description", delegate { return module.ParentEvent.Description; })
{
}
}
public class ReviewableHardwareFrequencyAttribute
: Slice.Control.Event.Module.ReviewableAttribute
{
/// <summary>
/// Initialize an instance of this class.
/// </summary>
///
/// <param name="channel">
/// The <see cref="Event.Module.Channel"/> to which this attribute is attached.
/// </param>
///
public ReviewableHardwareFrequencyAttribute(Event.Module module)
: base("HW AAF", delegate { return module.AaFilterRateHz.ToString("N2"); })
{
}
}
} // *** end Module ***
} // *** end Event ***
}