Interface IMeasurePoint
Описывает интерфейс для взаимодействия с точкой учёта.
Inherited Members
Namespace: Lers.Core
Assembly: Lers.Server.System.dll
Syntax
public interface IMeasurePoint : IMeasurePointData
Properties
AdmissionDate
Дата, до которой разрешена эксплуатация точки учёта.
Declaration
DateTime? AdmissionDate { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<DateTime> |
Attributes
Возвращает массив атрибутов, назначенных точке учета.
Declaration
MeasurePointCustomAttribute[] Attributes { get; }
Property Value
| Type | Description |
|---|---|
| Lers.Models.MeasurePointCustomAttribute[] |
AttributeValues
Значения атрибутов.
Declaration
IReadOnlyDictionary<string, string> AttributeValues { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<System.String, System.String> |
Comment
Комментарий.
Declaration
string Comment { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ContractFlow
Часовое договорное значение расхода (т/ч или м3/ч).
Declaration
float ContractFlow { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ContractHeat
Часовое договорное значение тепловой энергии (ГКал/ч).
Declaration
float ContractHeat { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ContractPin
Договорное давление в подающей магистрали (избыточное, кгс/см2).
Declaration
float ContractPin { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ContractPout
Договорное давление в отводящей магистрали (избыточное, кгс/см2).
Declaration
float ContractPout { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ContractTin
Договорная температура в подающей магистрали.
Declaration
float ContractTin { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ContractTout
Договорная температура в отводящей магистрали.
Declaration
float ContractTout { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
CounterId
Идентификатор счётчика, установленного на точке учёта.
Declaration
int? CounterId { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
CurrentRatio
Коэффициент трансформации по току (для точек учета с системой "Электроснабжение").
Declaration
float CurrentRatio { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
DataCalculation
Параметры расчёта, настроенные в точке учёта.
Declaration
IMeasurePointDataCalculation DataCalculation { get; }
Property Value
| Type | Description |
|---|---|
| IMeasurePointDataCalculation |
DeviceId
Идентификатор оборудования для опроса.
Declaration
int? DeviceId { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
DevicePressureType
Тип давления, которое возвращает прибор, связанный с точкой учёта.
Declaration
PressureType DevicePressureType { get; }
Property Value
| Type | Description |
|---|---|
| PressureType |
DiagDataTypes
Тип данных, по которым производится диагностика для точки учёта.
Declaration
DeviceDataType[] DiagDataTypes { get; }
Property Value
| Type | Description |
|---|---|
| DeviceDataType[] |
FullTitle
Полное наименование, включающее наименование Объекта учета или Лицевого счета.
Declaration
string FullTitle { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Id
Идентификатор точки учёта.
Declaration
int Id { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Identifier
Типизированный идентификатор (нужно использовать вместо Id).
Declaration
EntityIdentifier<MeasurePoint> Identifier { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdentifier<Lers.Models.MeasurePoint> |
IsDoublePipeHotWaterSystem
Признак двухтрубной системы ГВС.
Declaration
bool IsDoublePipeHotWaterSystem { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsReversibleFlow
Реверсивный поток.
Declaration
bool IsReversibleFlow { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsTwoChannels
Определяет количество каналов точки учета, в зависимости от системы.
Declaration
bool IsTwoChannels { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsVirtual
Признак расчетной точки учета.
Declaration
bool IsVirtual { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MeasuredParameterUnitCollection
Возвращает список отображаемых в таблице и графиках единиц измерения.
Declaration
Dictionary<DataParameterCategory, Unit>? MeasuredParameterUnitCollection { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<Dictionary<DataParameterCategory, Unit>> |
NodeId
Возвращает идентификатор объекта учета (для обычных точек) или идентификатор жилого дома (для квартирных точек).
Declaration
int NodeId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
NodeIdentifier
Типизированный идентификатор объекта учёта, которому принадлежит точка.
Declaration
EntityIdentifier<Node> NodeIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdentifier<Lers.Models.Node> |
NormalizedCustomId
Нормализованный уникальный идентификатор точки, используемый при импорте и экспорте данных между системами.
Declaration
string NormalizedCustomId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Number
Глобальный уникальный номер точки учета, используемый при импорте и экспорте данных между системами.
Declaration
int Number { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
OrderNumber
Порядковый номер точки учёта в системе (для отчётов).
Declaration
byte OrderNumber { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
ParentTitle
Наименование родительского объекта или помещения.
Declaration
string ParentTitle { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ReportingDay
Расчетные сутки.
Declaration
byte ReportingDay { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
ReportingHour
Расчетный час.
Declaration
byte ReportingHour { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
ReportingHourMode
Вариант группировки часовых записей по расчетному часу.
Declaration
ReportingHourMode ReportingHourMode { get; }
Property Value
| Type | Description |
|---|---|
| ReportingHourMode |
ResourceKind
Возвращает вид ресурса, учитываемого на этой точке учета.
Declaration
ResourceKind ResourceKind { get; }
Property Value
| Type | Description |
|---|---|
| ResourceKind |
RoomId
Идентификатор помещения если точка учёта относится к квартире.
Declaration
int? RoomId { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
RoomIdentifier
Типизированный идентификатор помещения, если точка учёта относится к квартире.
Declaration
EntityIdentifier<Room>? RoomIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<EntityIdentifier<Lers.Models.Room>> |
SelectedParamsList
Отображаемые параметры, настроенные в точке учёта.
Declaration
IReadOnlyCollection<int> SelectedParamsList { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<System.Int32> |
ServicingStatusId
Идентификатор режима обслуживания точки учёта.
Declaration
int ServicingStatusId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ShowBadValues
Указывает что нужно отображать недостоверные значения.
Declaration
bool ShowBadValues { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ShowCalculatedData
Указывает что нужно отображать рассчитанные значения.
Declaration
bool ShowCalculatedData { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
State
Состояние точки учёта.
Declaration
MeasurePointState State { get; }
Property Value
| Type | Description |
|---|---|
| MeasurePointState |
SystemType
Тип системы.
Declaration
SystemType SystemType { get; }
Property Value
| Type | Description |
|---|---|
| SystemType |
Title
Наименование.
Declaration
string Title { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Type
Тип точки учета.
Declaration
MeasurePointType Type { get; }
Property Value
| Type | Description |
|---|---|
| MeasurePointType |
VoltageRatio
Коэффициент трансформации по напряжению (для точек учета с системой "Электроснабжение").
Declaration
float VoltageRatio { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
GetCalcExpressions()
Возвращает формулы расчёта, которые выполняются перед сохранением в БД.
Declaration
IList<MeasurePointExpression> GetCalcExpressions()
Returns
| Type | Description |
|---|---|
| IList<Lers.Models.MeasurePointExpression> |
GetConnections(EntityIdentifier<IntegrationType>)
Возвращает подключения для опроса точки.
Declaration
IEnumerable<IPollConnection> GetConnections(EntityIdentifier<IntegrationType> integrationTypeId)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityIdentifier<Lers.Models.IntegrationType> | integrationTypeId |
Returns
| Type | Description |
|---|---|
| IEnumerable<IPollConnection> |
GetContractConsumption(ContractConsumptionType)
Возвращает указанное договорное потребление.
Declaration
MonthContractConsumption[] GetContractConsumption(ContractConsumptionType type)
Parameters
| Type | Name | Description |
|---|---|---|
| ContractConsumptionType | type |
Returns
| Type | Description |
|---|---|
| Lers.Models.MonthContractConsumption[] |
GetContractTemperature()
Возвращает температурный график для точки учёта.
Declaration
ContractTemperature GetContractTemperature()
Returns
| Type | Description |
|---|---|
| ContractTemperature |
GetCounter()
Возвращает счётчик, связанный с точкой учёта или null если счётчик не задан.
Declaration
IEquipment GetCounter()
Returns
| Type | Description |
|---|---|
| IEquipment |
GetCustomer()
Возвращает потребителя точки учёта.
Declaration
Customer GetCustomer()
Returns
| Type | Description |
|---|---|
| Lers.Models.Customer |
GetCustomerChecked()
Возвращает потребителя точки учёта с проверкой того, что он задан.
Declaration
Customer GetCustomerChecked()
Returns
| Type | Description |
|---|---|
| Lers.Models.Customer |
GetDefaultPressureType()
Возвращает давление по умолчанию для точки учёта.
Declaration
PressureType GetDefaultPressureType()
Returns
| Type | Description |
|---|---|
| PressureType |
GetDevice()
Возвращает устройство, связанное с точкой учёта или null если оно не задано.
Declaration
IEquipment GetDevice()
Returns
| Type | Description |
|---|---|
| IEquipment |
GetDisplayUnit(DataParameterCategory)
Возвращает отображаемую единицу измерения для указанной категории параметров.
Declaration
Unit GetDisplayUnit(DataParameterCategory category)
Parameters
| Type | Name | Description |
|---|---|---|
| DataParameterCategory | category |
Returns
| Type | Description |
|---|---|
| Unit |
GetHeatLoss()
Возвращает теплопотери для точки учета.
Declaration
HeatLoss[] GetHeatLoss()
Returns
| Type | Description |
|---|---|
| Lers.Models.HeatLoss[] | Массив Lers.Models.HeatLoss |
GetModel()
Возвращает базовые параметры точки учёта, пригодные для сериализации.
Declaration
MeasurePoint GetModel()
Returns
| Type | Description |
|---|---|
| Lers.Models.MeasurePoint |
GetNode()
Возвращает объект учёта, которому принадлежит точка.
Declaration
INode GetNode()
Returns
| Type | Description |
|---|---|
| INode |
GetNormHourHeatLoss(Int32)
Возвращает нормативные часовые теплопотери для заданного года.
Declaration
double? GetNormHourHeatLoss(int year)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | year |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Double> |
GetReports()
Возвращает массив назначенных отчетных форм.
Declaration
IEnumerable<MeasurePointReport> GetReports()
Returns
| Type | Description |
|---|---|
| IEnumerable<Lers.Interop.MeasurePointReport> |
GetSensors()
Параметры датчиков используемых на точке учета.
Declaration
MeasurePointSensor[] GetSensors()
Returns
| Type | Description |
|---|---|
| MeasurePointSensor[] | Массив MeasurePointSensor |
GetServicingStatus()
Возвращает режим обслуживания точки учёта.
Declaration
ServicingStatus GetServicingStatus()
Returns
| Type | Description |
|---|---|
| Lers.Models.ServicingStatus |
GetVirtualMeasurePointExpressions()
Возвращает список выражений для расчёта параметров по этой точке.
Declaration
IEnumerable<ParameterExpression> GetVirtualMeasurePointExpressions()
Returns
| Type | Description |
|---|---|
| IEnumerable<Lers.Models.ParameterExpression> |
ServerTimeToLocalTime(DateTime)
Преобразует время по часам сервера в локальное время на объекте учета.
Declaration
DateTime ServerTimeToLocalTime(DateTime dateTime)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | dateTime | Время по часам сервера. |
Returns
| Type | Description |
|---|---|
| DateTime | Локальное время на объекте учета. |
SystemTypeToResourceKind(SystemType)
Преобразует тип системы в вид ресурса, к которому она относится.
Declaration
static ResourceKind SystemTypeToResourceKind(SystemType systemType)
Parameters
| Type | Name | Description |
|---|---|---|
| SystemType | systemType | Тип системы. |
Returns
| Type | Description |
|---|---|
| ResourceKind | Вид ресурса. |