LLRExport
#
- class ansys.scade.pyalmgw.llrs.LLRExport(project)#
Entry point for exporting the surrogate model.
Overview#
Generate the surrogate model as a dictionary. |
|
Return the export classes applicable to a project. |
|
Return the URL corresponding to an oid. |
|
Parse the input configuration schema. |
|
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.
- version
int
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.
- empty
str
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.read_schema(path: pathlib.Path)#
Parse the input configuration schema.
- LLRExport.write(llrs: dict, path: pathlib.Path)#
Write the dictionary to a file.