The Object Execution Framework (OXF) is a fixed, predefined
framework used by code generation and where the generated code also
reuses the framework.
About this task
IBM® Rational® Rhapsody® is
a visual programming environment that enables you to create an embedded
software application by creating a graphical, object-oriented model
and generating production-level code from that model.
Code generation
in the product is framework-based: it includes a fixed, predefined
framework called the Object Execution Framework (OXF), and the generated
code reuses that framework. For example, the code generated for a
reactive class reuses the event processing functionality by subclassing
a framework class that embodies event processing capabilities.
- The framework contains a set of real-time abstractions that structure
the generated code and give concrete meaning to UML concepts (such
as “active class”).
- Significant portions of functionality are factored out into the
framework classes, so there is less need to generate specific code.
Therefore making it easier to understand the code.
- You can customize framework elements using inheritance to fit
your specific needs
- The framework has an existence of its own, which is independent
of the code generator. Its classes can be used outside the code generation
process, in user-class implementations, or in any other way you want.
You can work with the OXF at several levels.
For example, you can use the OXF to:
- Create multi-threaded, reactive applications. This
approach is the most common way to use the OXF.
- Write actions (generate events, synchronize threads,
manipulate relations, and so on) by calling the necessary methods.
- Implement reactive behaviors without a statechart.
If you want to further customize the automated behavioral code, you
need to understand the collaborations within the framework.
- Customize the framework. The framework classes
enable you to tailor the framework for your specific needs.