forall3 function

Requirements.LogicalFunctions.forall3  · source

Icon of forall3

Returns Violated, if at least one element of the Property vector is Violated (superseded by and4All)

Extends Requirements.Interfaces.PropertyFunction

Syntax

forall3(p);

Description

Superseded by and4All since version 0.8.0; kept for existing models. For a non-empty vector the function returns and4All(p): Property.Violated, if at least one element of Property vector p has value Violated; else Undecided if one element is Undecided; else Satisfied if one element is Satisfied; else Undefined (every element Undefined). Elements that are Undefined do not affect the result. For the empty vector (dimension of p is 0) the function keeps its old result Undecided, where and4All returns Undefined.

Example

The property is demonstrated with the following example calling the function as:

properties = {during(p.isActive, check=p.p_a > p_cavitate) for p in pumps};
result = forall3(properties);

results in

simulation result

Inputs

NameTypeDescription
p[…] inputTypes.PropertyProperty vector

Outputs

NameTypeDescription
result outputTypes.Property= and4All(p) for a non-empty vector (Violated if one element is Violated, else Undecided if one is Undecided, else Satisfied if one is Satisfied, else Undefined); Undecided for the empty vector