Table of Contents

Struct ControlPolicy

Namespace
Pamoja.Profile
Assembly
Pamoja.Profile.dll

A profile's control policy.

public readonly record struct ControlPolicy : IEquatable<ControlPolicy>
Implements
Inherited Members

Remarks

Only the values belonging to Kind are set.

Constructors

ControlPolicy(ControlKind, float?, float?, bool?, float?, float?, uint?, bool?, float?)

A profile's control policy.

public ControlPolicy(ControlKind Kind, float? Setpoint, float? Hysteresis, bool? Cooling, float? SafeBand, float? Empty, uint? WarnWithin, bool? Rising, float? Limit)

Parameters

Kind ControlKind

Which policy this describes.

Setpoint float?

The target reading, for a setpoint policy.

Hysteresis float?

Half the deadband width, for a setpoint policy.

Cooling bool?

Whether the output cools rather than heats.

SafeBand float?

How far the reading may stray before an alert.

Empty float?

The level treated as empty, for a level policy.

WarnWithin uint?

How many samples ahead to warn, for a level policy.

Rising bool?

Whether a rise rather than a fall is watched.

Limit float?

The largest safe change per sample, for a surge policy.

Remarks

Only the values belonging to Kind are set.

Properties

Cooling

Whether the output cools rather than heats.

public bool? Cooling { get; init; }

Property Value

bool?

Empty

The level treated as empty, for a level policy.

public float? Empty { get; init; }

Property Value

float?

Hysteresis

Half the deadband width, for a setpoint policy.

public float? Hysteresis { get; init; }

Property Value

float?

Kind

Which policy this describes.

public ControlKind Kind { get; init; }

Property Value

ControlKind

Limit

The largest safe change per sample, for a surge policy.

public float? Limit { get; init; }

Property Value

float?

Rising

Whether a rise rather than a fall is watched.

public bool? Rising { get; init; }

Property Value

bool?

SafeBand

How far the reading may stray before an alert.

public float? SafeBand { get; init; }

Property Value

float?

Setpoint

The target reading, for a setpoint policy.

public float? Setpoint { get; init; }

Property Value

float?

WarnWithin

How many samples ahead to warn, for a level policy.

public uint? WarnWithin { get; init; }

Property Value

uint?