LC PSM

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 50.

Light Controller scenario Deployment model
Figure 50: Light Controller scenario Deployment model

The development environment defines two alternative programming languages: the Java EE5 and the C# Compact Framework 3.0. The development environment defines three operating systems where the system should be able to run: Linux RedHat 9.0, Windows Embedded 5.0 and Windows Mobile PC 6.1. It defines two communication mediums the WiFi 802.11 G and the Bluetooth Class 2 v2.1. Finally, regarding protocols, the development environment defines two communication protocols: SOAP 1.2 and WSDL 1.1.

The environment also defines four devices:

  1. The PDA device represents the software that will be used by the user to control light intensity in the room. It is composed by the following entities (defined in the entity context model of the system): PDA, SetButton, PDAControl, LightIntensityEntry, LocatinManager and GPS. This software is created for a single platform (C# for Windows Mobile).
  2. The BlindManager device represents the software that will be the intermediary between the PDA and Blinds in the room. It is composed by a single entity, the BlindManager. This software is created for a single platform (Java EE 5 for Linux RedHat 9.0).
  3. The Blind device represents an actuator on the environment that modifies the light intensity in the room. It is composed by a single entity, the Blind. This software is created for a single platform (C # for Windows embedded).
  4. The LightSensor device represents a sensor on the environment that perceives the light intensity in the room. It is composed by a single entity, the LightSensor. This software is created for a single platform (C # for Windows embedded).

Finally, the environment defines 3 connections among devices:

  1. The PDA2BlindManager is used to communicate the PDA device with the BlindManager device. It uses Bluetooth as a medium to communicate them and two SOA protocols, SOAP and WSDL. The communication is defined by the SetLightIntensity information flow.
  2. The BlindManager2Blind is used to communicate the BlindManager device with the Blind device. It uses Wi-Fi as a medium to communicate them and two SOA protocols, SOAP and WSDL. The communication is defined by the SetLightIntensity2 information flow.
  3. The Blind2 LightSensor is used to communicate the Blind device with the LightSensor device. It uses Wi-Fi as a medium to communicate them and two SOA protocols, SOAP and WSDL. The communication is defined by the GetLightIntensity information flow.

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