BooleanToProperty function
Requirements.LogicalFunctions.BooleanToProperty
ยท source
Convert Boolean (false,true) to Property (Violated, Satisfied)
Extends Requirements.Interfaces.PropertyFunction
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
| Name | Type | Description |
|---|---|---|
u input | Boolean | Boolean to be mapped to Property |
Outputs
| Name | Type | Description |
|---|---|---|
y output | Requirements.Types.Property | Boolean as Property |
