and4All function
Requirements.LogicalFunctions.and4All
· source
4-valued logic 'and' over a Property vector (the empty vector gives Undefined, the neutral element)
Extends Requirements.Interfaces.PropertyFunction
Syntax
result = and4All(p);
Description
The four-valued and4 folded over the elements of Property vector p, seeded with Undefined, the neutral element: the result is Violated if at least one element is Violated; else Undecided if at least one element is Undecided; else Satisfied if at least one element is Satisfied; else Undefined (every element Undefined, or the empty vector). Elements that are Undefined (not applicable: the component's requirement was outside its scope, or the component is absent) do not affect the result, which is what a requirement quantified over a set of components needs. Supersedes forall3.
Revisions
| Date | Description |
|---|---|
| Sept. 15, 2026 | Added with the fourth value Undefined (H. Tummescheit, Model Based Innovation LLC) |
Inputs
| Name | Type | Description |
|---|---|---|
p[…] input | Property | Property vector |
Outputs
| Name | Type | Description |
|---|---|---|
result output | Property | = p[1] and4 p[2] and4 ... and4 p[size(p,1)]; Undefined for the empty vector |