PragmaDataExchange#

class ansys.scade.guitools.data.PragmaDataExchange(id: str)#

Bases: DataExchange

Means to serialize values as SCADE Suite pragmas.

SCADE Suite pragmas are either text or XML. This class uses a textual pragma made of a json string.

Parameters#

idstr

Identifier of the pragma.

Initialize the pragma data exchange instance.

Overview#

display

Update the page with the properties read from the model.

validate

Update the model with the properties read from the page.

id

Import detail#

from ansys.scade.guitools.data import PragmaDataExchange

Attribute detail#

PragmaDataExchange.id#

Method detail#

PragmaDataExchange.display(object_: scade.model.suite.Annotable)#

Update the page with the properties read from the model.

PragmaDataExchange.validate(object_: scade.model.suite.Annotable)#

Update the model with the properties read from the page.