PartialCheckInSlidingWindowWithBooleanOutput partial block
Requirements.Interfaces.PartialCheckInSlidingWindowWithBooleanOutput
ยท source
Interfaces and icon for check block that evaluates a property in a sliding time window and returns the result as Boolean
Interfaces and icon of the check blocks in ChecksInSlidingWindow that evaluate a property in a sliding time window and return the result as Boolean. It declares
- the Boolean input check (entered in the parameter dialog and displayed in the icon), the signal that is inspected,
- the parameter window > 0, the length of the sliding time window, displayed in the icon,
- the Boolean output y, which is true if the property is satisfied in the window and false otherwise,
- the optional MarginOutput margin = robustness/scale
(present if
computeMargin= true), and the parameter scale of the margin (tab "Margin"), - the protected variable robustness, the signed distance of the check to its limit in the quantity's unit, ≥ 0 exactly when the check holds.
An extending block must provide the equations for y and robustness. It is extended, for example, by MaxDuration, MaxAccumulatedDuration, MaxRising, MaxFrequency, MaxRisingFrequency. The variant with Property output is PartialCheckInSlidingWindowWithPropertyOutput; the base class of checks in a fixed window is PartialCheck.
Parameters
| Name | Type | Description |
|---|---|---|
window parameter | SI.Time | Length of sliding time window (> 0) |
scale parameter | Real | Scale of the margin: margin = robustness/scale, with scale the requirement's tolerance (1 = the raw robustness in the quantity's unit) |
computeMargin parameter | Boolean | = true, if the normalized margin output is provided |
Inputs
| Name | Type | Description |
|---|---|---|
check input | Boolean | Boolean to check |
Components and variables
| Name | Type | Description |
|---|---|---|
y | Modelica.Blocks.Interfaces.BooleanOutput | = true if property satisfied, otherwise false |
margin | Requirements.Interfaces.MarginOutput | Normalized margin of the check: >= 0 exactly when the check holds, in units of scale |