docs: fill missing XML docs and strip tracking IDs from src comments
Clears CommentChecker findings in src/ (3,280 -> 209, the remainder being false positives like PLC-5/IEEE-754/M0.0) by adding missing summaries/params/returns, normalising inheritdoc usage, and removing Gitea/review tracking IDs while keeping the rationale they annotated. Comment-only: comment-stripped sources are identical to the parent commit.
This commit is contained in:
@@ -4,7 +4,7 @@ using ZB.MOM.WW.OtOpcUa.Core.Abstractions;
|
||||
namespace ZB.MOM.WW.OtOpcUa.Driver.MTConnect;
|
||||
|
||||
/// <summary>
|
||||
/// What the server was last TOLD about one condition (#626): the last alarm statement it was given
|
||||
/// What the server was last TOLD about one condition: the last alarm statement it was given
|
||||
/// (active or Normal — never Unavailable) and whether its Quality is currently annotated Bad.
|
||||
/// </summary>
|
||||
/// <param name="Statement">The last statement delivered; <c>null</c> when only an Unavailable was ever seen.</param>
|
||||
@@ -12,7 +12,7 @@ namespace ZB.MOM.WW.OtOpcUa.Driver.MTConnect;
|
||||
internal sealed record MTConnectToldCondition(MTConnectConditionState? Statement, bool QualityBad);
|
||||
|
||||
/// <summary>
|
||||
/// The MTConnect CONDITION → OPC UA Part 9 mapping (#626), as one pure function: given what the server was
|
||||
/// The MTConnect CONDITION → OPC UA Part 9 mapping, as one pure function: given what the server was
|
||||
/// last told about a condition and what the Agent says now, the single <see cref="AlarmEventArgs"/> to
|
||||
/// raise — or none — and what the server has then been told.
|
||||
/// </summary>
|
||||
@@ -27,7 +27,7 @@ internal sealed record MTConnectToldCondition(MTConnectConditionState? Statement
|
||||
/// <para>
|
||||
/// <b>Unavailable is comms loss one hop further out, not a return to normal.</b> A cppagent marks every
|
||||
/// DataItem of an adapter UNAVAILABLE when the adapter socket drops, so it is treated exactly like the
|
||||
/// host's own transport loss (#477/#481): an active condition STAYS active (and keeps its ack), only its
|
||||
/// host's own transport loss: an active condition STAYS active (and keeps its ack), only its
|
||||
/// Quality goes Bad, as a quality-only annotation (<see cref="AlarmEventArgs.IsQualityOnly"/>, no
|
||||
/// <c>/alerts</c> row). When data returns: the same statement ⇒ quality-only Good; Normal ⇒ Clear; a
|
||||
/// different active statement ⇒ Retrigger.
|
||||
@@ -45,7 +45,7 @@ internal sealed record MTConnectToldCondition(MTConnectConditionState? Statement
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>Resync.</b> On a (re)subscribe an unchanged Bad quality is re-asserted, because the host
|
||||
/// re-annotates every condition Good when the driver reconnects (#477) and nothing else would put the
|
||||
/// re-annotates every condition Good when the driver reconnects and nothing else would put the
|
||||
/// per-condition Bad back.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
@@ -129,6 +129,7 @@ internal static class MTConnectConditionAlarmMapper
|
||||
|
||||
/// <summary>The Part 9 severity of an active level.</summary>
|
||||
/// <param name="level">An active level.</param>
|
||||
/// <returns>The Fault or Warning severity.</returns>
|
||||
internal static int SeverityOf(MTConnectConditionLevel level) =>
|
||||
level == MTConnectConditionLevel.Fault ? FaultSeverity : WarningSeverity;
|
||||
|
||||
@@ -138,6 +139,7 @@ internal static class MTConnectConditionAlarmMapper
|
||||
/// model has no slot for them, and an operator needs the native code to look the alarm up.
|
||||
/// </summary>
|
||||
/// <param name="state">The state to describe.</param>
|
||||
/// <returns>The alarm message text.</returns>
|
||||
internal static string MessageOf(MTConnectConditionState state)
|
||||
{
|
||||
var detail = state.Detail;
|
||||
|
||||
Reference in New Issue
Block a user