Before performing the MOFScript M2T transformation, we define the system platform using the Deployment metamodel (or Mapping Metamodel) to get the PSM of the system. A sample Deployment model is defined in Figure 60.

Healthy Screen scenario Deployment model
Figure 60: Healthy Screen scenario Deployment model

The development environment defines the following programming languages: Assembler and C# Compact Framework 3.0. It also defines two operating systems: Sensing OS and Windows Mobile 5.0. The medium employed to communicate entities is the Bluetooth Class 2 using the protocol SensorProtocol v1 protocol.

Besides, it defines two types of devices:

  1. The PDA device represents the software that will show changes on the user biophysical status. It is composed by a single entity the PDA. This software will be created for a single platform (C# for Windows Mobile).
  2. The Sensor device represents a sensor on the environment (the user biophysical condition) that perceives the cardiac pulse of the user. It is composed by a single entity, the CardiacPulseSensor. This software is created for a single platform (C # for Windows embedded).

Finally, it defines a single connection between PDA and Sensor devices. The Connection connection is used to communicate the Sensor to the PDA device through the Connection. It uses Bluetooth as a medium to get the Sensor through the PDA. The communication is defined by the GetCardiacPulse information flow.

The result of the MOFScript M2T transformation we are able to generate runs on the Abstract Architecture Framework we have defined using the Java programming language only.