Gating model
Requirements.Examples.Elementary.ViolationStatistics.Gating
ยท source
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
| Name | Type | Description |
|---|---|---|
condition | Modelica.Blocks.Sources.BooleanTable | true on [1, 4) |
check | Modelica.Blocks.Sources.BooleanTable | true on [1.5, 3) |
minDuration | Requirements.ChecksInFixedWindow.MinDuration | check must be true for at least 1 s in the condition phase, tolerance 0.5 s |
continuous | Requirements.Verify.ViolationStatistics | Statistics of minDuration, continuous worst-margin method |
ratchet | Requirements.Verify.ViolationStatistics | Statistics of minDuration, ratchet worst-margin method |