Connector
#
- class ansys.scade.pyalmgw.connector.Connector(id: str, project: scade.model.project.stdproject.Project | None = None)#
Top-level class for an external ALM Gateway connector.
Overview#
Process the |
|
Process the |
|
Process the |
|
Process the |
|
Process the |
Execute the ALM Gateway command. |
|
Generate the surrogate models. |
|
Return an instance of LLRExport. |
|
Return a default schema to be used for exporting the surrogate model. |
|
Return whether the surrogfate model should include images: diagrams or panels for example. |
|
Return the schema to be used for exporting the LLRS. |
|
Return the default path of the file to contain the exported LLRS. |
|
Package entry point. |
Import detail#
from ansys.scade.pyalmgw.connector import Connector
Attribute detail#
- Connector.id#
- Connector.project = None#
Method detail#
- Connector.export_llrs()#
Generate the surrogate models.
- Connector.get_export_class() ansys.scade.pyalmgw.llrs.LLRExport | None #
Return an instance of LLRExport.
- Connector.get_llr_default_schema() pathlib.Path #
Return a default schema to be used for exporting the surrogate model.
The schema depends on the project’s nature: SCADE Suite, Test, Display or Architect.
- Connector.get_llr_diagrams() bool #
Return whether the surrogfate model should include images: diagrams or panels for example.
By default, the information is expected to be persisted in the project as a tool property
@ALMGW:DIAGRAMS
(default:false
).
- Connector.get_llr_schema() pathlib.Path #
Return the schema to be used for exporting the LLRS.
By default, the information is expected to be persisted in the project as a tool property
@ALMGW:LLRSCHEMA
. If the property is not defined, the method returns a default schema.
- Connector.get_llrs_file() pathlib.Path #
Return the default path of the file to contain the exported LLRS.
- abstract Connector.on_export(links: pathlib.Path, pid: int) int #
Process the
export
command.
- abstract Connector.on_import(file: pathlib.Path, pid: int) int #
Process the
import
command.