Objects that are typed by Rational Rhapsody mplementation
blocks (RIMBs) can implement atomic software component types.
Procedure
- Create
a ational Rhapsody implementation block by using either of these methods:
- For the Rational Rhapsody implementation block diagram under
a package in the ARBMTPackages category, from
the Drawing toolbar, select the Rational Rhapsody implementation block
tool
and click the diagram in the drawing area.
- Under the ARBMTPackages category, right-click
a package and select .
- Define the general features for a Rational Rhapsody implementation
block:
Note: Because Rational Rhapsody implementation
blocks resemble classes, they use many of the same fields on the General tab
of the Features window. The following fields on the General tab
for a Rational Rhapsody implementation block are either described
in respect to Rational Rhapsody implementation blocks or are specific
to the implementation blocks.
- Concurrency: When you define a Rational
Rhapsody implementation block, you must set the Concurrency field
to active. This setting specifies that a runnable
is created for each object typed by this Rational Rhapsody implementation
block. The function for the runnable is to be the doExecute method
of the Rational Rhapsody implementation block.
- Activation: You must specify an activation
policy. This policy determines when the Runtime Environment (RTE)
calls the doExecute method of the Rational Rhapsody
implementation block. In the Policy field,
select either Asynchronous or Periodic.
- Guarded: In this field, you can specify
that all guarded active operations are to be mutually exclusive. This
action is implemented in a dedicated AUTOSAR-exclusive area that all
runnables that are generated for guarded operations are specified
to “runs within.”
Active operations are central to Rational Rhapsody implementation
blocks. Active operations are translated to AUTOSAR runnables and
are called directly by the Runtime Environment (RTE). They drive the
execution of the implementation. A Rational Rhapsody implementation
block can have whatever a normal class has, including a statechart,
attributes, operations, and other elements. Rational Rhapsody implementation
blocks are defined in the Behavior Modeling Tool (BMT) packages and
then instantiated as objects inside software component types.