init
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using DTS.Common.Enums;
|
||||
using DTS.Common.Enums.Sensors;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
public interface ISensorBase
|
||||
{
|
||||
bool IsDigitalInput();
|
||||
bool IsDigitalOutput();
|
||||
bool IsSquib();
|
||||
bool IsUart();
|
||||
bool IsStreamOutput();
|
||||
bool CheckOffset { get; set; }
|
||||
bool MeasureNoise { get; set; }
|
||||
bool MeasureExcitation { get; set; }
|
||||
bool Invert { get; set; }
|
||||
string Model { get; set; }
|
||||
string Manufacturer { get; set; }
|
||||
string UserPartNumber { get; set; }
|
||||
double Capacity { get; set; }
|
||||
double FullScaleCapacity { get; }
|
||||
SensorConstants.CouplingModes CouplingMode { get; set; }
|
||||
double OffsetToleranceLow { get; set; }
|
||||
double OffsetToleranceHigh { get; set; }
|
||||
string DisplayUnit { get; set; }
|
||||
void SetDisplayUnitNoNotify(string unit);
|
||||
double RangeLow { get; set; }
|
||||
double RangeMedium { get; set; }
|
||||
double RangeHigh { get; set; }
|
||||
ExcitationVoltageOptions.ExcitationVoltageOption[] SupportedExcitation { get; set; }
|
||||
void SetExcitationsNoNotify(ExcitationVoltageOptions.ExcitationVoltageOption[] excitations);
|
||||
ISensorCalibration Calibration { get; set; }
|
||||
SensorConstants.BridgeType Bridge { get; set; }
|
||||
double BridgeResistance { get; set; }
|
||||
string FilterClassIso { get; set; }
|
||||
bool UniPolar { get; set; }
|
||||
bool IgnoreRange { get; set; }
|
||||
string LastUpdatedBy { get; set; }
|
||||
int Version { get; set; }
|
||||
bool LocalOnly { get; }
|
||||
void SetLocalOnly(bool bLocalOnly);
|
||||
short AxisNumber { get; set; }
|
||||
short NumberOfAxes { get; set; }
|
||||
int CalInterval { get; set; }
|
||||
string Polarity { get; set; }
|
||||
DateTime LastModified { get; set; }
|
||||
string UserChannelName { get; set; }
|
||||
string UserCode { get; set; }
|
||||
string ISOChannelName { get; set; }
|
||||
string ISOCode { get; set; }
|
||||
string PhysicalDimension { get; set; }
|
||||
string Direction { get; set; }
|
||||
bool DoNotUse { get; set; }
|
||||
bool Broken { get; set; }
|
||||
bool OutOfDate { get; set; }
|
||||
bool InWarningPeriod { get; set; }
|
||||
void CopyValues(ISensorBase copy, bool copyCalibration = true);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 722 B |
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IDasSummary : IBaseClass
|
||||
{
|
||||
string DASSerial { get; set; }
|
||||
string EIDFound { get; set; }
|
||||
string BatteryVoltageStatus { get; set; }
|
||||
System.Windows.Media.SolidColorBrush BatteryVoltageColor { get; set; }
|
||||
string InputVoltageStatus { get; set; }
|
||||
System.Windows.Media.SolidColorBrush InputVoltageColor { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Classes.Groups
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
/// <summary>
|
||||
/// this class encapsulates a group, or basically a .grp file
|
||||
/// </summary>
|
||||
public class GroupGRPImportGroup : BasePropertyChanged
|
||||
{
|
||||
public bool Included { get; set; } = true;
|
||||
public bool Overwrite { get; set; } = true;
|
||||
public string GroupName { get; set; }
|
||||
public string GroupTags { get; set; }
|
||||
public string ImportingUserTags { get; set; }
|
||||
public string SourceFile { get; set; }
|
||||
/// <summary>
|
||||
/// all channels in the gGRP file
|
||||
/// </summary>
|
||||
public GroupGRPImportChannel [] Channels { get; set; } = { };
|
||||
/// <summary>
|
||||
/// all errors discovered while GRP file
|
||||
/// this would include things like an empty file, a file with garbage only
|
||||
/// </summary>
|
||||
public GroupGRPImportError[] GroupErrors { get; set; } = null;
|
||||
|
||||
private bool _groupNameHasError;
|
||||
|
||||
/// <summary>
|
||||
/// indicates whether the group name specifically has an error
|
||||
/// the group name is exposed in a textbox, the design of this field was to
|
||||
/// control a red box around that textbox
|
||||
/// </summary>
|
||||
public bool GroupNameHasError
|
||||
{
|
||||
get => _groupNameHasError;
|
||||
set => SetProperty(ref _groupNameHasError, value, "GroupNameHasError");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user