Sublibrary LogicalFunctions contains operators without memory, implemented as Modelica functions. The input arguments of these functions have 2-valued logic type (Boolean). The output arguments of these functions have 2-valued or 3-valued logic type (Boolean or Property). The provided operators reason about their input arguments based on Boolean algebra. The icon of a function depends on the the type of its output argument (whether it is Boolean or Property).
Name | Description |
---|---|
Returns the number of elements of a Boolean vector that are true | |
Returns true if at least one element of a Boolean vector is true ('or' of all elements) | |
Returns true if all elements of a Boolean vector are true ('and' of all elements) | |
Returns check as long as the condition is true, otherwise returns true | |
Returns the value of the first element of a Boolean vector | |
Returns the value of the last element of a Boolean vector | |
Returns true if exactly one element of a Boolean vector is true ('xor' of all elements) | |
Convert Property (Violated, Undecided, Satisfied) to Boolean (false, true) | |
Convert Property (Violated, Undecided, Satisfied) to Integer (1,2,3) | |
Convert Boolean (false,true) to Property (Violated, Satisfied) | |
Convert Integer (1,2,3) to Property (Violated, Undecided, Satisfied) | |
Return Satisfied when check is true as long as condition is true | |
Return Satisfied when check is Satisfied as long as condition is true (check: 3-valued logic) | |
Returns Violated, if at least one element of the Property vector is Violated (vector: 3-valued logic) | |
Returns the number of elements of a Property vector that are Satisfied | |
Returns the number of elements of a Property vector that are Undecided | |
Returns the number of elements of a Property vector that are Violated |