IntegerToProperty block
Requirements.LogicalBlocks.IntegerToProperty
ยท source
Convert Integer (1,2,3,4) to Property (Violated, Undecided, Satisfied, Undefined)
Extends Interfaces.PartialConversion
The Integer input u is converted to a Property output y according to the following table:
Integer u = Property y = 1 Violated 2 Undecided 3 Satisfied 4 Undefined
An assert is triggered if the input is not 1, 2, 3 or 4. The inverse conversion is PropertyToInteger; the function version is LogicalFunctions.IntegerToProperty.
This block is demonstrated with example Conversions.
Components and variables
| Name | Type | Description |
|---|---|---|
u | Modelica.Blocks.Interfaces.IntegerInput | Integer input signal (with only values 1,2,3,4) |
y | Requirements.Interfaces.PropertyOutput | Property output signal |