Development of an Object-Orientated DEVS-Simulator with MATLAB®
- Art: Diplomarbeit
- Autor: Christina Deatcu
- Abgabedatum: Januar 2003
- Umfang: 104 Seiten
- Dateigröße: 2,0 MB
- Note: 1,1
- Institution / Hochschule: Hochschule Wismar Deutschland
- ISBN (eBook): 978-3-8324-8688-4
-
ISBN (Paperback) :
978-3-8324-8688-4 P - ISBN (CD) :978-3-8324-8688-4 CD
- Sprache: Englisch
- Prämierung:
- Arbeit zitieren: Deatcu, Christina Januar 2003: Development of an Object-Orientated DEVS-Simulator with MATLAB®, Hamburg: Diplomica Verlag
- Schlagworte: Simulation, Programmierung, Softwareentwicklung, Modellbildung, Oberfläche
In den Warenkorb
74,00 €
Diplomarbeit von Christina Deatcu
Abstract:
To solve problems of real world systems using scientific methods, the model-based approach is an effective and widely used method. To help rebuilding a system properly, there exist formalistic descriptions of systems‘ behavior.
One of several system specification formalisms, the DEVS formalism and associated abstract simulator algorithms provide the bases of this work. The DEVS formalism offers ways to describe systems which change their state driven by events at discrete times.
Several implementations for computer aided simulation based on the DEVS formalism and associated abstract simulator concepts using object-orientated programming languages exist. One of those implementations, the MatlabDEVS simulation runtime system was modified and improved during this project and MatlabDEVS2, a modified version was developed. To make improvement possible, a proper understanding of the fundamental theories is indispensable. Hence, they are exhibited as a part of this work.
Because the modeler should be supported by the computer application while passing the process of modeling and simulation, the user interfaces are crucial for the quality of the system. The existing MatlabDEVS system did not offer any support for modeling and simulation, as well as it was not well documented.
Object orientated programming within the MATLAB® programming environment results in a complicated file structure representing the classes. This fact cannot be influenced. Hence, a GUI for modeling and simulation which creates the source code files for the classes was implemented.
The DEVS (Discrete Event Systems Specification) formalism introduced and developed by Zeigler is a formalistic way of describing systems which are subjects to event-driven changes of system states. An example for such a system could be any kind of sales office where something happens, if a customer arrives at the shop. The system then changes state, which means that the salesman is busy, or if he was already, the waiting queue grows. After a given time the customer is served and the system changes state again. Characteristically, the time base for such a system is continuous, this means a customer could arrive at any time not just at discrete times.
The DEVS formalism and associated simulator concepts have been implemented for simulation means in different ways using several object-orientated programming languages. To gain acquaintance of this field, first the general rules for modeling and simulation have to be exposed. Then an overview over system specification formalism is given and the DEVS formalism needs to be explained detailed.
Because the DEVS formalism includes a modular hierarchical concept, it fits well with the object-orientated programming paradigm and implementation with an object-orientated programming language is obvious.
The analysis of the MatlabDEVS simulation runtime system, which acts as starting-point, begins with the characterization of the object-orientated features of the MATLAB® programming language. The object-orientated programming within the MATLAB® environment differs quite a lot from object-orientated programming using for example C++, Java or Object Pascal.
Then MatlabDEVS, a simulation runtime system developed by Prof. T. Pawletta in 1998 and advanced as a diploma at the Wismar University of Technology, Business and Design and the Tomsk Polytechnic University by Issaev Artem in 2002, is explained and tested. The MatlabDEVS system is realized with the MATLAB® programming language and uses class definitions for both, model building and simulation.
MatlabDEVS implements the entire DEVS formalism well, but caused by MATLAB®’s way of defining classes, a complicated, hard to follow up file structure is needed to build models. This is the biggest disadvantage of MatlabDEVS: The modeler has to keep track of many source code files and may easily loose perspective. The next step is to give prospects for further improvement of the system.
Especially the user interfaces for modeling and simulation are of interest, because they are crucial for the quality of the system. Those prospects did lead to the development of the MatlabDEVS2 system, which includes some smaller changes in the simulation engine as well as a graphical user interface (GUI) for modeling and simulation. The GUI is implemented taking benefit of MATLAB®’s facilities for creating graphical user interfaces.
Since it is impossible to avoid models‘ complicated file structure, the user interface for modeling offers support to create and administer those files in a clearly arranged way. System requirements, structure and facilities of MatlabDEVS2 are presented and described. A user guide for MatlabDEVS2 can be found in appendix.
The last step in this project is the verification of the MatlabDEVS2 system using the Bank Simulation example taken from the diploma of Issaev Artem. This model represents the flow of customers in a bank. It consists of a waiting queue, two counters to serve the customers and the experimental frame which generates the customers and computes statistics of system’s behavior.
Table of Contents:
| 1. | Introduction | 1 |
| 2. | Modeling and Simulation | 3 |
| 2.1 | The General Scientific Problem Solving Process | 3 |
| 2.2 | Simulation | 4 |
| 3. | System Specification Formalism | 7 |
| 3.1 | The Systems Approach to Modeling and Simulation | 7 |
| 3.2 | Levels of System Description by Zeigler | 9 |
| 3.3 | Atomic Model and Coupled Model | 11 |
| 3.4 | DEVS Formalism | 12 |
| 3.4.1 | Specification Semantics for an Atomic DEVS Model | 13 |
| 3.4.2 | Specification Semantics for a Coupled DEVS Model | 14 |
| 3.5 | Abstract Simulators for DEVS Models | 15 |
| 3.5.1 | The DEVS simulator | 17 |
| 3.5.2 | The DEVS coordinator | 18 |
| 4. | MatlabDEVS - MATLAB(r) Based Simulation Runtime System | 21 |
| 4.1 | MATLAB(r)'s Features for Object-orientated Programming | 21 |
| 4.2 | Class Hierarchy of MatlabDEVS | 24 |
| 4.3 | File Structure | 26 |
| 4.4 | The Simulation Engine | 28 |
| 4.5 | User Interface for Modeling and Simulation | 30 |
| 4.5.1 | Development of Atomic Devs Models | 32 |
| 4.5.2 | Development of Coupled Devs Models | 34 |
| 4.5.3 | Simulation | 36 |
| 4.6 | Evaluation of the System | 38 |
| 5. | MatlabDEVS2 | 42 |
| 5.1 | System Requirements | 44 |
| 5.2 | Installation | 45 |
| 5.3 | Directory Structure | 46 |
| 5.4 | DEVSModeler | 48 |
| 5.4.1 | Development of Atomic DEVS Models | 50 |
| 5.4.2 | Development of Coupled DEVS Models | 53 |
| 5.5 | DEVSSimulator | 56 |
| 6. | Bank Simulation Example | 60 |
| 6.1 | System Decomposition | 61 |
| 6.2 | Model Building | 63 |
| 6.3 | Execution of the Example | 65 |
| 7. | Conclusions and Open Problems | 66 |
| A. | References | 69 |
| B. | Figure Index | 70 |
| C. | Appendix | 71 |
| D. | Abbreviations | 96 |
In den Warenkorb
74,00 €
Link zur Arbeit:
http://www.diplom.de/ean/9783832486884
Arbeit zitieren:
Deatcu, Christina Januar 2003: Development of an Object-Orientated DEVS-Simulator with MATLAB®, Hamburg: Diplomica Verlag
Schlagworte:
Simulation, Programmierung, Softwareentwicklung, Modellbildung, Oberfläche



