Une image contenant texte, signe

Description générée automatiquement

Constraint Specifications

Overview

Constraint Specifications are written in the Parametric Constraint Expression Language (PCEL), a constraint expression language used by the IBM Rhapsody Parametric Constraint Evaluator (PCE). The Constraint Editor automatically applies syntax-highlighting based on that language:

A screen shot of a computer

AI-generated content may be incorrect.

Highlighted Elements:

·       Functions - for example sqrt, min, long

·       Keywords - for example if, true, pi

·       Numbers

·       Operators - for example <, >, >=

·       Parameters (constraint parameters from the constraint block/property)

 

These all have default colors which may be changed using the following properties, along with the default color which is used when no highlight is applied, and the font size in the editor:

RhapsodyPowerPack.ConstraintEditor.DefaultColor

RhapsodyPowerPack.ConstraintEditor.FunctionColor

RhapsodyPowerPack.ConstraintEditor.KeywordColor

RhapsodyPowerPack.ConstraintEditor.NumberColor

RhapsodyPowerPack.ConstraintEditor.OperatorColor

RhapsodyPowerPack.ConstraintEditor.ParameterColor

RhapsodyPowerPack.ConstraintEditor.FontSize

A screenshot of a computer

AI-generated content may be incorrect.