IntegerToProperty function
Requirements.LogicalFunctions.IntegerToProperty
ยท source
Convert Integer (1,2,3,4) to Property (Violated, Undecided, Satisfied, Undefined)
Extends Requirements.Interfaces.PropertyFunction
Syntax
y = IntegerToProperty(u);
Description
The function converts an Integer u to the corresponding value of enumeration Property:
- 1 is mapped to Violated,
- 2 is mapped to Undecided,
- 3 is mapped to Satisfied,
- 4 is mapped to Undefined.
Any other value of u triggers an assertion. This is the inverse of PropertyToInteger. The function extends Interfaces.PropertyFunction and therefore has the icon of a function returning a Property.
Inputs
| Name | Type | Description |
|---|---|---|
u input | Integer | Integer to be mapped to Property |
Outputs
| Name | Type | Description |
|---|---|---|
y output | Requirements.Types.Property | Integer as Property |