Gating model

Requirements.Examples.Elementary.ViolationStatistics.Gating  ยท source

Icon of Gating

A MinDuration check: its provisional margin while Undecided does not count, the worst decided margin is 0

Extends Modelica.Icons.Example

The condition phase [1, 4) s with the check true on [1.5, 3) s against MinDuration(durationMin = 1, scale = 0.5). The check is Undecided until the accumulated duration reaches 1 s at 2.5 s; until then its margin (duration − 1)/0.5 is provisional, −2 at 1.5 s. A ViolationStatistics takes the worst margin over the decided phases only: 0 at 2.5 s, the instant the requirement became satisfied. The verdict of the requirement follows the same rule.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Components and variables

NameTypeDescription
conditionModelica.Blocks.Sources.BooleanTabletrue on [1, 4)
checkModelica.Blocks.Sources.BooleanTabletrue on [1.5, 3)
minDurationRequirements.ChecksInFixedWindow.MinDurationcheck must be true for at least 1 s in the condition phase, tolerance 0.5 s
continuousRequirements.Verify.ViolationStatisticsStatistics of minDuration, continuous worst-margin method
ratchetRequirements.Verify.ViolationStatisticsStatistics of minDuration, ratchet worst-margin method