An Object Oriented Approach to Generate Executable Code from the OMT-based Dynamic Model

نویسندگان

  • Jauhar Ali
  • Jiro Tanaka
چکیده

The Dynamic model, which is the most important model after the object model in Object Modeling Technique (OMT), represents the dynamic behavior of a system. This paper describes a new method to convert the dynamic model, represented as a state diagram, into e cient and compact executable code. In our approach, each operational state of a multi-state class is given the status of an object, which encapsulates all the transitions and actions of the state. The events that have transitions from the state become methods in the class for that state. States and transitions are thus made explicit without using any if or case statement, which leads to a compact and easy to understand implementation code. State hierarchy is implemented by inheritance and concurrent states are implemented by using the concept of object composition. The method has been successfully implemented in our automatic code generating system, O-Code, which generates executable Java code after reading the speci cations of the dynamic model. First the system transforms the state diagram representing the dynamic model into a table and then it generates actual code from the table. After comparing with Rhapsody, we have found that the code generated by O-Code is approximately 30% more e cient and ve times more compact than that of Rhapsody. keywords: code generation, object-oriented analysis/design, CASE tools, state transition diagrams.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Automatic Code Generation from the OMT-based Dynamic Model

The OMT object-oriented software development methodology suggests creating three models of the system, i.e., object model, dynamic model and functional model. We have developed a system that automatically generates implementation code from the dynamic model. The system first represents the dynamic model as a table and then generates executable Java language code from it. We used inheritance for...

متن کامل

Generating Executable Code from the Dynamic Model of Omt with Concurrency

Dynamic model is one of the three basic models of Object Modeling Technique (OMT). It is represented by a set of state transition diagrams showing the behavior of a system. This paper introduces a new method to implement a state diagram in an object oriented language. In our approach, states are represented as classes and transitions as their operations. Inheritance is used to implement common ...

متن کامل

Modelsaz: An Object-Oriented Computer-Aided Modeling Environment

Modeling and simulation of processing plants are widely used in industry. Construction of a mathematical model for a plant is a time-consuming and error-prone task. In light of extensive advancements in computer science (both hardware and software), computers are becoming a necessary instrument in industrial activities. Many software tools for modeling, simulation and optimization of proces...

متن کامل

An Approach for Aspect-oriented Skeleton Code Generation from Reusable Aspect Models

Model-driven code generation has been a topic of interest for researchers owing to its several benefits including the anticipated reduction in development effort and delivery time. It has taken a good deal of time to produce techniques that generate executable code in object-oriented programming languages. Aspectoriented software development techniques, though expected to enhance software devel...

متن کامل

Availability evaluation of Software architecture of object oriented Style using coloured Petri nets

Software architecture is one of the most fundamental products in the process of software development in the areas of behavioral or non- behavioral features like availability or transformability change. There are different ways to evaluate software architecture one of which is the creation of application model. An executable model of software architecture is an official description of architectu...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998