blockPropertyToBoolean
Convert Property (Violated, Undecided, Satisfied) to Boolean (false, true)
Information
The Property input u is converted to a Boolean output y according to the following table (note, undecided is a parameter that defines, how a Property.Undecided value shall be mapped to a Boolean):
Property u = Boolean y = Violated false Undecided undecided Satisfied true
This block is demonstrated with example Conversions.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | undecided | false | Boolean value of Property.Undecided |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_Requirements.Interfaces.PropertyInput | u | Property input signal | |
| Modelica.Blocks.Interfaces.BooleanOutput | y | Boolean output signal |