Struct ControlPolicy
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
KindControlKindWhich policy this describes.
Setpointfloat?The target reading, for a setpoint policy.
Hysteresisfloat?Half the deadband width, for a setpoint policy.
Coolingbool?Whether the output cools rather than heats.
SafeBandfloat?How far the reading may stray before an alert.
Emptyfloat?The level treated as empty, for a level policy.
WarnWithinuint?How many samples ahead to warn, for a level policy.
Risingbool?Whether a rise rather than a fall is watched.
Limitfloat?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
Hysteresis
Half the deadband width, for a setpoint policy.
public float? Hysteresis { get; init; }
Property Value
Kind
Which policy this describes.
public ControlKind Kind { get; init; }
Property Value
Limit
The largest safe change per sample, for a surge policy.
public float? Limit { get; init; }
Property Value
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
Setpoint
The target reading, for a setpoint policy.
public float? Setpoint { get; init; }
Property Value
WarnWithin
How many samples ahead to warn, for a level policy.
public uint? WarnWithin { get; init; }
Property Value
- uint?