IntegerToProperty function

Requirements.LogicalFunctions.IntegerToProperty  ยท source

Icon of IntegerToProperty

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

NameTypeDescription
u inputIntegerInteger to be mapped to Property

Outputs

NameTypeDescription
y outputRequirements.Types.PropertyInteger as Property