PropertyOr block
Requirements.LogicalBlocks.PropertyOr
ยท source
4-valued logic 'or' of Property input u: y = or4All(u) = u[1] or u[2] or ... or u[nu]
Extends Requirements.Interfaces.PartialPropertyVISO
Property output y is the 4-valued logic or of the elements of the property input vector u, or4All(u):
y = u[1] or u[2] or ... or u[size(u,1)]
The "or" of two property values u[1] and u[2] is defined according to the following table (the extended temporal logic of EDF's ReqSysPro / CRML; Undefined, not applicable, is the neutral element):
u[1] or u[2] Violated Undecided Satisfied Undefined Violated Violated Undecided Satisfied Violated Undecided Undecided Undecided Satisfied Undecided Satisfied Satisfied Satisfied Satisfied Satisfied Undefined Violated Undecided Satisfied Undefined
Violated, Undecided, Satisfied and Undefined are elements of enumeration Property. The algebra is not a lattice (absorption and distributivity fail with Undefined): a diagram of these blocks must be evaluated as drawn, never simplified.
The input connector u is a vector of Property input signals. When a connection line is drawn, the dimension of the input vector is enlarged by one and the connection is automatically connected to this new free index (thanks to the connectorSizing annotation).
If no connection to the input connector u is present, the output is y = Undefined, the neutral element (before version 0.8.0 it was Violated).
Example
This block is demonstrated with the following example:
results in
![]() | |
| simulation result |

