PropertyAnd block

Requirements.LogicalBlocks.PropertyAnd  ยท source

Icon of PropertyAnd

4-valued logic 'and' of Property input u: y = and4All(u) = u[1] and u[2] and ... and u[nu]

Extends Requirements.Interfaces.PartialPropertyVISO

Property output y is the 4-valued logic and of the elements of the property input vector u, and4All(u):

y = u[1] and u[2] and ... and u[size(u,1)]

The "and" 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] and u[2]ViolatedUndecidedSatisfiedUndefined
ViolatedViolatedViolatedViolatedViolated
UndecidedViolatedUndecidedUndecidedUndecided
SatisfiedViolatedUndecidedSatisfiedSatisfied
UndefinedViolatedUndecidedSatisfiedUndefined

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 Satisfied).

Example

This block is demonstrated with the following example:

results in

simulation result