PropertyToBoolean block
Requirements.LogicalBlocks.PropertyToBoolean
ยท source
Convert Property (Violated, Undecided, Satisfied, Undefined) to Boolean (false, true)
The Property input u is converted to a Boolean output y according to the following table (note, undecided and undefined are parameters that define, how a Property.Undecided and a Property.Undefined value shall be mapped to a Boolean; both default to false):
Property u = Boolean y = Violated false Undecided undecided Satisfied true Undefined undefined
This block is demonstrated with example Conversions.
Parameters
| Name | Type | Description |
|---|---|---|
undecided parameter | Boolean | Boolean value of Property.Undecided |
undefined parameter | Boolean | Boolean value of Property.Undefined (not applicable) |
Components and variables
| Name | Type | Description |
|---|---|---|
u | Requirements.Interfaces.PropertyInput | Property input signal |
y | Modelica.Blocks.Interfaces.BooleanOutput | Boolean output signal |