LLRExport#

class ansys.scade.pyalmgw.llrs.LLRExport(project)#

Entry point for exporting the surrogate model.

Overview#

dump_model

Generate the surrogate model as a dictionary.

get_export_classes

Return the export classes applicable to a project.

get_url

Return the URL corresponding to an oid.

read_schema

Parse the input configuration schema.

write

Write the dictionary to a file.

Import detail#

from ansys.scade.pyalmgw.llrs import LLRExport

Attribute detail#

LLRExport.classes#
LLRExport.diagrams = False#
LLRExport.export_classes = []#
LLRExport.project#
LLRExport.project_id = None#
LLRExport.roots#
LLRExport.schema = None#
LLRExport.version = 0#

Method detail#

LLRExport.dump_model(diagrams: bool = False, version: int = 0, empty: str = '') dict#

Generate the surrogate model as a dictionary.

Parameters:
diagramsbool

Whether the images should be generated, for applicable elements.

versionint

Target version of the surrogate model.

  • 0 (LLRS.VCUSTOM): Default format + icons + urls. Applies to custom connectors.

  • 4 (LLRS.V194): Default format for ALM Gateway interface.

emptystr

Value to use when the value of an attribute is empty. This is required for some target ALM tools such as DOORS for SCADE releases up to 2025 R1.

Returns:
dict

Surrogate model.

LLRExport.get_export_classes(project: scade.model.project.stdproject.Project) List[LLRS]#

Return the export classes applicable to a project.

LLRExport.get_url(oid: str) str#

Return the URL corresponding to an oid.

LLRExport.read_schema(path: pathlib.Path)#

Parse the input configuration schema.

LLRExport.write(llrs: dict, path: pathlib.Path)#

Write the dictionary to a file.