Reproducing Database/Workspace Items
If you want to re-implement an existing component as another item type (e.g., an ESDL component as block diagram or in C code), you can use the Reproduce As command to copy the structure of the original component, so you will not have to specify it again. If you copy the structure of a component, the entire interface of the component is created automatically in the target component.
You can use Reproduce as to reproduce a block diagram component, including the functionality, as ESDL component. For that purpose, the default project of the block diagram component must be prepared so that code generation is possible. If code generation is not possible for the block diagram component, only the component structure is copied, and the following text is placed in the component body:
/* During code generation of the reproduced component errors occurred and therefore the internal behavior could not reproduced.
Prepare the default project and try again... */
Some block diagram constructions can only be transformed to ESDL with slight changes to the model (e.g., the introduction of a temporary variable). In these cases,
invalid ESDL code is generated so that you have to change the code before you can use the ESDL component.
You can use Reproduce as to reproduce block diagram or ESDL modules as AUTOSAR interfaces, or even as a software component with all necessary interfaces and an AUTOSAR project. Details are given in Special Features of Reproducing Components as AUTOSAR Components.
The columns of the
following table show the components that can be reproduced, and the rows show the available target item types for each component (+: available, -: not available).
See also
Special Features of Reproducing Components as AUTOSAR Components
Reproducing a Module as SWC Wrapper
Example: Reproducing a Block Diagram as ESDL Component