Compatibility of Component Instances

A component instance is created for each component (module, class, AUTOSAR software component, record) that is used in a project. The component instance refers to the component and the implementation. At code generation time, the compatibility of component instances is checked when a new value is assigned to a component reference, passed as an argument of component type, or returned from a method. If the check fails, an error is issued.

Two component instances that do not contain elements with rescalable implementations are compatible if the following conditions are fulfilled:

  1. both instances refer to the same component
  2. both instances refer to the same implementation

Two component instances that contain elements with rescalable implementations are compatible if the following conditions are fulfilled:

  1. both instances refer to the same component
  2. both instances refer to the same implementation

    and – in addition -

  3. both instances use the same rescaling formula

See also

Definition and Instantiation of Components

Modules

Classes

Software Component Editors

Records

Editing Implementations

Rescalable Implementations