functionBooleanToProperty

Convert Boolean (false,true) to Property (Violated, Satisfied)

Extends from Modelica_Requirements.Interfaces.PropertyFunction (Icon for functions returning a variable of type Property).

Information

Syntax

BooleanToProperty(check);

Description

The function returns Satisfied if check=true and returns Violated, if check=false. Satisfied and Violated are elements of enumeration Property

Example

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

property = BooleanToProperty(check)

results in

simulation result

Inputs

TypeNameDefaultDescription
BooleanuBoolean to be mapped to Property

Outputs

TypeNameDefaultDescription
Modelica_Requirements.Types.PropertyyBoolean as Property