init
This commit is contained in:
18
Common/DTS.CommonCore/Interface/Graphs/IGraph.cs
Normal file
18
Common/DTS.CommonCore/Interface/Graphs/IGraph.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using DTS.Common.Interface.Channels;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DTS.Common.Interface.Graphs
|
||||
{
|
||||
public interface IGraph : IGraphRecord
|
||||
{
|
||||
void AddChannel(IGroupChannel groupChannel);
|
||||
void RemoveChannel(IGroupChannel groupChannel);
|
||||
void ReadXML(System.Xml.XmlElement root, IReadOnlyDictionary<long, IGroupChannel> channelLookup);
|
||||
void WriteXML(ref System.Xml.XmlWriter writer);
|
||||
/// <summary>
|
||||
/// updates the ChannelsString and ThresholdsString
|
||||
/// using GroupChannels and Thresholds properties
|
||||
/// </summary>
|
||||
void UpdateChannelAndThresholdStrings();
|
||||
}
|
||||
}
|
||||
80
Common/DTS.CommonCore/Interface/Graphs/IGraphRecord.cs
Normal file
80
Common/DTS.CommonCore/Interface/Graphs/IGraphRecord.cs
Normal file
@@ -0,0 +1,80 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DTS.Common.Interface.Graphs
|
||||
{
|
||||
/// <summary>
|
||||
/// describes a record in the db for a graph
|
||||
/// </summary>
|
||||
public interface IGraphRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// database key for graph
|
||||
/// </summary>
|
||||
int GraphId { get; set; }
|
||||
/// <summary>
|
||||
/// test setup key for graph
|
||||
/// </summary>
|
||||
int TestSetupId { get; set; }
|
||||
/// <summary>
|
||||
/// name of graph
|
||||
/// </summary>
|
||||
[MaxLength(50)]
|
||||
string GraphName { get; set; }
|
||||
/// <summary>
|
||||
/// description of graph
|
||||
/// </summary>
|
||||
[MaxLength(50)]
|
||||
string GraphDescription { get; set; }
|
||||
/// <summary>
|
||||
/// all the channels in the graph
|
||||
/// </summary>
|
||||
[MaxLength(2048)]
|
||||
string ChannelsString { get; set; }
|
||||
/// <summary>
|
||||
/// whether to restrict domain axis to a min value
|
||||
/// </summary>
|
||||
bool UseDomainMin { get; set; }
|
||||
/// <summary>
|
||||
/// the minimum value to show on domain axis
|
||||
/// (only valid when UseDomainMin is true)
|
||||
/// </summary>
|
||||
double DomainMin { get; set; }
|
||||
/// <summary>
|
||||
/// whether to restrict domain axis to a max value
|
||||
/// </summary>
|
||||
bool UseDomainMax { get; set; }
|
||||
/// <summary>
|
||||
/// maximum value to show on domain axis
|
||||
/// (only valid when UseDomainMax is true)
|
||||
/// </summary>
|
||||
double DomainMax { get; set; }
|
||||
/// <summary>
|
||||
/// whether to restrict range axis to a min value
|
||||
/// </summary>
|
||||
bool UseRangeMin { get; set; }
|
||||
/// <summary>
|
||||
/// minimum value to show on range axis
|
||||
/// (only valid when UseRangeMin is true)
|
||||
/// </summary>
|
||||
double RangeMin { get; set; }
|
||||
/// <summary>
|
||||
/// whether to restrict range axis to a max value
|
||||
/// </summary>
|
||||
bool UseRangeMax { get; set; }
|
||||
/// <summary>
|
||||
/// the maximum value to show on the range axis
|
||||
/// (only valid when UseRangeMax is true)
|
||||
/// </summary>
|
||||
double RangeMax { get; set; }
|
||||
/// <summary>
|
||||
/// any thresholds/lines to show on the graph
|
||||
/// </summary>
|
||||
[MaxLength(2048)]
|
||||
string ThresholdsString { get; set; }
|
||||
/// <summary>
|
||||
/// whether to synchronize record with central db
|
||||
/// [deprecated]
|
||||
/// </summary>
|
||||
bool LocalOnly { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user