Hooks#

class ansys.scade.wux.hooks.Hooks#

Implements the C/C++ Simulation Hooks (WUX2_HOOKS) extension.

Refer to Wrapper for its usage.

Refer to Generation Module in the User Documentation, section 3/ Code Integration Toolbox/Declaring Code Generator Extension.

Overview#

get_services

Declare the generation service GoWrapper.

generate

Generate the code for this generation service.

init

Declare the required generation services and the execution order.

Import detail#

from ansys.scade.wux.hooks import Hooks

Method detail#

Hooks.generate(target_dir: str, project: scade.model.project.stdproject.Project, configuration: scade.model.project.stdproject.Configuration)#

Generate the code for this generation service.

Refer to Generation Service in section 3 of the SCADE Python API Guide in the SCADE Suite documentation.

Parameters:
target_dirstr

Target directory for the code generation.

projectProject

Input SCADE Suite project.

configurationconfiguration

SCADE Suite configuration selected for the code generation.

classmethod Hooks.get_services()#

Declare the generation service GoWrapper.

Hooks.init(target_dir: str, project: scade.model.project.stdproject.Project, configuration: scade.model.project.stdproject.Configuration)#

Declare the required generation services and the execution order.

Refer to Generation Service in section 3 of the SCADE Python API Guide in the SCADE Suite documentation.

Parameters:
target_dirstr

Target directory for the code generation.

projectProject

Input SCADE Suite project.

configurationconfiguration

SCADE Suite configuration selected for the code generation.