init
This commit is contained in:
24
Common/DTS.Common.DAS.Concepts/DAS/Channel/Channel.cs
Normal file
24
Common/DTS.Common.DAS.Concepts/DAS/Channel/Channel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* DTS.Common.DAS.Concepts.DAS.Channel.cs
|
||||
*
|
||||
* Copyright © 2009
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
using DTS.Common.Utilities;
|
||||
|
||||
namespace DTS.Common.DAS.Concepts.DAS
|
||||
{
|
||||
/// <summary>
|
||||
/// Slice control app's internal abstract representation of a DAS channel.
|
||||
/// </summary>
|
||||
///
|
||||
/// <typeparam name="TDataType">
|
||||
/// The "type" of the data contained by channels of this DAS.
|
||||
/// </typeparam>
|
||||
///
|
||||
public abstract class Channel<TDataType> : Exceptional
|
||||
{
|
||||
}
|
||||
}
|
||||
52
Common/DTS.Common.DAS.Concepts/DAS/Channel/Data.cs
Normal file
52
Common/DTS.Common.DAS.Concepts/DAS/Channel/Data.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* DTS.Common.DAS.Concepts.DAS.Channel.Data.cs
|
||||
*
|
||||
* Copyright © 2009
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Utilities;
|
||||
|
||||
namespace DTS.Common.DAS.Concepts.DAS.Channel
|
||||
{
|
||||
/// <summary>
|
||||
/// Representation of a list of channel data.
|
||||
/// </summary>
|
||||
public abstract class Data<TDatumType> : ExceptionalList<TDatumType>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initialize an instance of the DTS.Common.DAS.Concepts.DAS.Channel.Data class.
|
||||
/// </summary>
|
||||
protected Data()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize an instance of the DTS.Common.DAS.Concepts.DAS.Channel.Data class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="capacity">
|
||||
/// The number of elements that the list can initially store.
|
||||
/// </param>
|
||||
///
|
||||
protected Data(int capacity)
|
||||
: base(capacity)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize an instance of the DTS.Common.DAS.Concepts.DAS.Channel.Data class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="collection">
|
||||
/// The collection whose elements are copied to the new list.
|
||||
/// </param>
|
||||
///
|
||||
protected Data(IEnumerable<TDatumType> collection)
|
||||
: base(collection)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.DAS.Concepts.DAS.Channel
|
||||
{
|
||||
[Flags]
|
||||
public enum LevelTriggerTypes
|
||||
{
|
||||
NONE = 0x00,
|
||||
OutsideWindow = 0x01,
|
||||
InsideWindow = 0x02,
|
||||
LessThan = 0x04,
|
||||
GreaterThan = 0x08
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using DTS.Common.Converters;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.DAS.Concepts.DAS.Channel
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
[Flags]
|
||||
public enum TimestampPartTypes
|
||||
{
|
||||
[Description("Marker")]
|
||||
Marker = 1 <<0 ,
|
||||
[Description("Seconds")]
|
||||
Seconds_High = 1 << 1,
|
||||
[Description("Seconds")]
|
||||
Seconds_Low = 1 << 2,
|
||||
[Description("Nanoseconds")]
|
||||
Nanoseconds_High = 1 << 3,
|
||||
[Description("Nanoseconds")]
|
||||
Nanoseconds_Low = 1 << 4,
|
||||
[Description("Reserved")]
|
||||
Reserved = 1 << 5
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user