155 lines
2.3 KiB
C#
155 lines
2.3 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Config.Entities
|
|
{
|
|
/// <summary> Identifies the type of a database </summary>
|
|
public enum DBType
|
|
{
|
|
MySql, /// MySQL database
|
|
SQLite, /// SQLite
|
|
DbTypesCount,
|
|
}
|
|
|
|
/// <summary> Identifies the database based on the content </summary>
|
|
public enum DBKind
|
|
{
|
|
Config,
|
|
Results,
|
|
Count,
|
|
}
|
|
|
|
public enum ProcedureState
|
|
{
|
|
Active,
|
|
History,
|
|
Template,
|
|
Count,
|
|
}
|
|
|
|
/// <summary> Kind of meters for the procedure / test </summary>
|
|
public enum MetersKind
|
|
{
|
|
Single,
|
|
Combined,
|
|
}
|
|
|
|
public enum CompoundMeterId : byte
|
|
{
|
|
Single,
|
|
CompoundMain,
|
|
CompoundAux,
|
|
Compound,
|
|
}
|
|
|
|
public enum Medium
|
|
{
|
|
ColdWater,
|
|
HotWater,
|
|
}
|
|
|
|
/// <summary> Transition step is finished when this condition is fulfilled </summary>
|
|
public enum StepCondition
|
|
{
|
|
None,
|
|
Scale1Empty,
|
|
Scale2Empty,
|
|
Scale3Empty,
|
|
AllScalesEmpty,
|
|
Count,
|
|
}
|
|
|
|
public enum TestRedType
|
|
{
|
|
Fix,
|
|
/// etc.
|
|
Count,
|
|
}
|
|
|
|
public enum FQC1
|
|
{
|
|
FQC1,
|
|
FQP1,
|
|
Count,
|
|
}
|
|
|
|
public enum Progress
|
|
{
|
|
JustStarted,
|
|
TransitionBefore,
|
|
SwitchingFlowDetection,
|
|
FlowSetting,
|
|
Test,
|
|
TransitionAfter,
|
|
Completed,
|
|
Count,
|
|
}
|
|
|
|
public enum Device
|
|
{
|
|
Screen,
|
|
Printer,
|
|
Disk,
|
|
}
|
|
|
|
public enum PageOrientation
|
|
{
|
|
Portrait,
|
|
Landscape,
|
|
Count,
|
|
}
|
|
|
|
public enum UnitsVolume
|
|
{
|
|
Liter,
|
|
CubicMtr,
|
|
}
|
|
|
|
/// <summary> Possible modes of operation of components and devices. </summary>
|
|
public enum DebugMode
|
|
{
|
|
DetectedOff = -2,
|
|
DetectedOn = -1,
|
|
Normal = 0, /// Normal operation
|
|
AutoDetect, /// The component (device) will be auto-detected
|
|
FailureDuringOperation, /// Failure during operation -> disabled
|
|
Off, /// The component is off
|
|
Record,
|
|
Reply,
|
|
Simulate, /// Test bench simulation, this mode does not require any hardware
|
|
Inherit,
|
|
Count,
|
|
}
|
|
|
|
public enum LogLevel
|
|
{
|
|
Off,
|
|
Fatal,
|
|
Error,
|
|
Warn,
|
|
Info,
|
|
Debug,
|
|
All,
|
|
Count,
|
|
}
|
|
|
|
|
|
/// <summary> Arrangement of tests </summary>
|
|
public enum TestsArrangement
|
|
{
|
|
Rows,
|
|
Columns,
|
|
}
|
|
|
|
/// <summary> Arrangement of meters </summary>
|
|
public enum MetersArrangement
|
|
{
|
|
Vertically,
|
|
Horizontally,
|
|
}
|
|
}
|
|
|