ChecksInFixedWindow package
Requirements.ChecksInFixedWindow
ยท source
Library of check blocks (if the condition input is true, a property must hold)
Extends Modelica.Icons.Package
This library provides blocks that check properties in fixed windows defined by the true value of Boolean input variable condition. Whenever this variable is true, the check is performed. Blocks performing checks in a sliding time window are provided in sublibrary ChecksInSlidingWindow.
All blocks of this library have the following interface:
- Boolean input condition. If true, the check is performed. Typically, condition is the output of a time locator from library TimeLocators.
- Boolean input check is a Boolean expression that must be true according to the property check of the particular block. The blocks WithinBand, GreaterEqual and StableSignal (ported from the Modelica Buildings_Requirements library in version 0.13.0) form check from their Real inputs instead, and apply it only delayTime after each rising edge of condition.
- Property output y is of enumeration type Property. If the check is successful, y = Property.Satisfied. If the check fails, y = Property.Violated. If neither of the two properties hold yet inside a true condition phase (a duration not yet reached, a count still below its minimum), y = Property.Undecided. While condition = false, and before the first true condition phase, y = Property.Undefined: the check is not applicable (before version 0.8.0 this was Undecided too; the two are distinguished so that a combination of checks and a requirement over a set of components can leave the inapplicable ones out, see Property). A block that decides at the end of a condition phase (the duration and count checks) keeps that verdict on y after the phase, until the next phase starts.
Contents
| Name | Kind | Description | |
|---|---|---|---|
| During | block | In every true condition phase, check must be true | |
| MinDuration | block | In every true condition phase, check must be true for at least the defined duration | |
| MaxDuration | block | In every true condition phase, check must be true for at most the defined duration | |
| BandDuration | block | In every true condition phase, check must be true for at least a minimum duration and at most a maximum duration | |
| NoRising | block | In every true condition phase, no rising edge of check is allowed | |
| FixedRising | block | In every true condition phase, a defined number of check rising edges must occur | |
| MinRising | block | In every true condition phase, a minimum number of check rising edges must occur | |
| MaxRising | block | In every true condition phase, the number of check rising edges must be bounded | |
| BandRising | block | In every true condition phase, a minimum number of check rising edges must occur and the number of check rising edges is bounded | |
| MaxRisingFrequency | block | In every true condition phase, the frequency of the check rising edges is limited | |
| WhenRising | block | When condition input has a rising edge, check must be true | |
| WhenFalling | block | When condition input has a falling edge, check must be true | |
| WhenChanging | block | When condition input has a changing edge, check must be true | |
| WithinDomain | model | In every true condition phase, point input must be within the domain defined by a polygon | |
| StepResponseCheck | block | One step-response metric of u after a step of r, bounded: Property and margin | |
| WithinBand | block | In every true condition phase (after an optional delay), the Real input must stay within a lower and an upper limit | |
| GreaterEqual | block | In every true condition phase (after an optional delay), Real input u_max must be greater than or equal to Real input u_min | |
| StableSignal | block | In every true condition phase (after an optional delay), the moving average of the input's rate of change must stay at or below a limit | |
| RegionFraction | block | In every true condition phase, the weighted fraction of n places where a check holds must stay within a lower and an upper limit |