PropertyToBoolean block

Requirements.LogicalBlocks.PropertyToBoolean  ยท source

Icon of PropertyToBoolean

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 =
Violatedfalse
Undecidedundecided
Satisfiedtrue
Undefinedundefined

This block is demonstrated with example Conversions.

Parameters

NameTypeDescription
undecided parameterBooleanBoolean value of Property.Undecided
undefined parameterBooleanBoolean value of Property.Undefined (not applicable)

Components and variables

NameTypeDescription
uRequirements.Interfaces.PropertyInputProperty input signal
yModelica.Blocks.Interfaces.BooleanOutputBoolean output signal