ATL Use Case - Model Driven Performance Engineering: From UML/SPT to AnyLogic
Keywords
UML2, Simulation, Model Driven Performance Engineering, SPT |
Overview
In this case study we present a transformation from annotated UML activity diagrams to AnyLogic simulation models. The actions and control flows in activity diagrams are annotated with performance information utilizing the UML profile for schedulability, performance, and timing (SPT). This information is used to generate a simulation model that can be executed by the AnyLogic simulation tool from XJ Technologies. Such simulations can help to identify performance issues early in a software design process.
When designing software, system behavior can be modeled using UML by utilizing, for instance, activity diagrams. To lower costs and risks, it is desirable to run analysis on the modeled system before it is actually implemented.
In the diagram, several elements are stereotyped with the PStep stereotype. It is defined in the SPT profile and identifies one processing step that has performance properties. It defines a set of stereotype attributes that can be used to set concrete performance parameters. The values set for the CreateOrder action are shown below.
Two of the properties are set to meaningful values here: the Host Execution Demand and the Repetition.
The figure shows the status of a system after a certain running time. Green coloring indicates that an action is currently active. In front of the actions, red bars show the amount of requests waiting for processing. In the figure, one notices the fairly high amount of waiting requests at the PhoneNumberCheck action. This hints at a possible bottleneck in the design.
In order to execute the use case, Eclipse UML2 and TOPCASED should be installed in an Eclipse environment. This will automatically make the UML2 and TOPCASED DI metamodels available to the transformation. Because the TOPCASED DI metamodel introduces some specific primitive types, an extended model handler is required for DI models. It can be found in the download section below and can be installed by putting it into the Eclipse plugin folder. All other metamodels and the example are contained in the scenario package. |
Related Use Cases
None at the current time. |
Download
Complete Scenario |
ATL project containing all the resources allowing running the whole transformation scenario |
Extended EMF Model Handler For ATL |
Extended EMF model handler for ATL permitting dealing with non-standard primitive types |
AnyLogic Metamodel |
Metamodel for creating AnyLogic simulation models |
Acknowledgement
The present work is being supported by the IST European MODELPLEX project (MODELing solution for comPLEX software systems, FP6-IP 34081). |
General Information
- January 2008
- By Jendrik Johannes (TU Dresden)
Please, ask your questions on the M2M newsgroup