BooleanToProperty function

Requirements.LogicalFunctions.BooleanToProperty  ยท source

Icon of BooleanToProperty

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

NameTypeDescription
u inputBooleanBoolean to be mapped to Property

Outputs

NameTypeDescription
y outputRequirements.Types.PropertyBoolean as Property