using System.ComponentModel.DataAnnotations;
namespace DTS.Common.Interface.Graphs
{
///
/// describes a record in the db for a graph
///
public interface IGraphRecord
{
///
/// database key for graph
///
int GraphId { get; set; }
///
/// test setup key for graph
///
int TestSetupId { get; set; }
///
/// name of graph
///
[MaxLength(50)]
string GraphName { get; set; }
///
/// description of graph
///
[MaxLength(50)]
string GraphDescription { get; set; }
///
/// all the channels in the graph
///
[MaxLength(2048)]
string ChannelsString { get; set; }
///
/// whether to restrict domain axis to a min value
///
bool UseDomainMin { get; set; }
///
/// the minimum value to show on domain axis
/// (only valid when UseDomainMin is true)
///
double DomainMin { get; set; }
///
/// whether to restrict domain axis to a max value
///
bool UseDomainMax { get; set; }
///
/// maximum value to show on domain axis
/// (only valid when UseDomainMax is true)
///
double DomainMax { get; set; }
///
/// whether to restrict range axis to a min value
///
bool UseRangeMin { get; set; }
///
/// minimum value to show on range axis
/// (only valid when UseRangeMin is true)
///
double RangeMin { get; set; }
///
/// whether to restrict range axis to a max value
///
bool UseRangeMax { get; set; }
///
/// the maximum value to show on the range axis
/// (only valid when UseRangeMax is true)
///
double RangeMax { get; set; }
///
/// any thresholds/lines to show on the graph
///
[MaxLength(2048)]
string ThresholdsString { get; set; }
///
/// whether to synchronize record with central db
/// [deprecated]
///
bool LocalOnly { get; set; }
}
}