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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | u | Boolean to be mapped to Property |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_Requirements.Types.Property | y | Boolean as Property |
