Algorithm Research of Generating Statechart Based on Scenarios and Building Implied Scenarios from Synthesized Statechart

Author
ZhangKe
Advisor
JinChunZhao
School
Jilin University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2005
Downloads
50
Citations
1

Request the full text

Abstract

Software modeling is an important part of software engineering. It builds views and models of the system in diverse viewpoints or abstract facets. These models support the whole development from requirement acquiring to coding. Realizing the transition between these models helps retain the consistency of different models during the process of development and helps generate system prototype rapidly. In his paper, we study an approach to transforming the scenario models to statechart automatically, and study the method of getting new scenarios from the statechart generated. That is, this paper presents a method to generating the statechart of an object in Object-Oriented development process. Developers can get the behavior models of objects based on the requirement description. Scenarios describe the communication among objects which is organized to accomplish a function of the system. Statecharts explain the state transformation of an object in its lifecycle. It is lack of semantic information in the scenario models that we first extent the concepts of “state variable”and “state vector”. State variables include not only the object’s attribute variables which describe the state of object modeled, but also other object’s attribute variables which denote the system’s circumstance. We call the former “object state variables”and the vector formed by them is “object state vector”. The latter is called “system state variables”, which form “system state vector”. We use Object state vector to describe the object’s state, and use system state vector to constrain the generation of reasonable state transition path. Because there is no enough information about object states in scenarios, this paper presents a series of rules to analyze the use cases. There is precondition, postcondition, base flow and alternative flows in use case description. According the description, we can get the conditions under which messages happened. Attribute variables in these conditions are the basis of state vector, and we can supplement or abridge the state variables in state vector. The integrality of the state vector depends on the use case description. Using the object state vector, the semantic information of object state is added to the scenario models. After that, we give a statechart generation algorithm, which is convenient for extending the new scenarios based on the statechart existed. This algorithm falls into two phases. The first is the generation of “object scenarios statechart”. In this phase, we play emphasis on the combination of the same state node in the statechart, it is the basal statechart which helps to extend. The second phase is to reduce the “object scenarios statechart”to “object statechart”, that is resolving the problem of combining the adjoining nodes which have the same state. Object statechart is the final result of the method. According this method, we append an object a state vector to every state node in the statechart. In the statechart generated, there perhaps exists some unexpected state transition paths which are not described by the scenarios existed. The rationality of these paths determines the rationality of the statechart, so we design an algorithm to differentiate these paths and judge the validity of the paths. Based on the unexpected paths, this paper presents an approach to generating implied scenarios. Implied scenario is an instance of an use case, which is recognized during the process of statechart generating and not described in the scenarios models existed. This approach introduces the concept of “object scenario message snip”. Using the unexpected state transition paths in the object statechart, we adjoin the every object scenario message snip of every transition to get the implied scenario. Implied scenarios are important to elaborate the use case description and generate the test cases. This paper provides a serial of algorithms to insure the validity of statechart and implied scenarios generated. These algorithms are: generating object scenario statechart; combining the adjoining nodes which have the same state; confirming the correct unexpected state transition paths; building object scenario message snips; and building implied scenarios. In the paper, we designed a example of elevator system. Using this example, we show how to get object state variables from use case description, how to generate object statechart through scenarios, and how to gain the implied scenarios. Finally, we realized a small system to validate this method. Compare with Whittle’s and T. Syst?’s approaches, this approach has advantages as follows: using use case description to get the most semantic information of object states, and insure the reliability of statechart; based on the statechart generated, developers can supplement the new scenario conveniently; discussing the overgeneralized problem about state transition path, and give the method to identify the reasonable unexpected transition

Table of contents

Chapter Introduction 7-11 1.1 Background 7-10 1.1.1 UML dynamic model and the relationship between software process 7-9 <br / > 1.1.2 UML model transformation and its meaning 9-10 1.2 the main work and organizational 10-11 Chapter research 11 - 18 2.1 research 11-15 2.1.1 derivation method using the syntax object state diagram 11-13 2.1.2 object state diagram obtained using the OCL 13-14 2.1.3 collaboration diagrams obtained using the object state diagram 14-15 2.2 deficiencies of existing methods 15-17 2.2 .1 object status reflects the rationality 15-16 2.2.2 state transition path for validity 16-17 2.2.3 algorithm flexibility 17 2.3 Conclusion 17-18 chapter describe the object's status and access 18-32 3.1 object state expression 18 - 21 3.1.1 describe the object's status means 18-19 3.1.2 source object's status and access opportunities 19-20 3.1.3 status Variables and the state vector 20-21 3.2 of the state vector to obtain 21-31 3.2.1 Scenario creation 21 3.2.2 object Status environment variables and state variables to determine 21-25 3.2.3 state vector assignment 25 3.2.4 in order to avoid the object state expansion measures taken 25 -26 3.2.5 example 26-31 3.3 Conclusion 31-32 Chapter IV state graph generation algorithm described 32-39 < br /> 4.1 related concepts 32 4.2 input and Output 32-34 4.3 algorithm described 34-37 4.4 algorithm Features 37-39 4.3.1 flexibility 38 4.3.2 introduces scenario information 38-39 CHAPTER state diagram of an unexpected path 39-49 5.1 unexpected state transition path for validity 39-40 5.2 extraction unexpected state transition path 40-42 5.2.1 The relevant preparatory work 40 5.2.2 algorithm Description 40-42 5.3 implied scenario 42-48 5.3.1 message object scenario trajectory piece 42-46 5.3.2 construct implicit scenario 46-48 5.4 Conclusion 48-49 first chapters Conclusion 49-51 References 51-54 Summary 54-56 Abstract 56-61

Related dissertations

  1. Risk Management Research of Credit Student Loans for Original Area Students
    LiuLei ·Shandong University ·2013 ·Master's thesis
  2. Current situation and Countermeasures on the citizens tax compliance based on investigation and analysis of H City
    HeLiuBin ·Central South University ·2011 ·Master's thesis
  3. The Research on Zhuzhou City Domestic Service Industry Development of Present Situation and Corresponding Measure
    TanYongQin ·Hunan University of Technology ·2013 ·Master's thesis
  4. The Research of Bank Loans Risk in the Mode of Supply Chain Finance
  5. Study on Private Enterprises’ Financial Management Status
    LiShiZun ·Jilin University ·2013 ·Master's thesis
  6. Lotus Seeds Industry Status and Development Countermeasuresn Qianjiang
  7. Vegetables Industry Status and Development Countermeasures in Yantai
    HuangDaiFeng ·Shandong Agricultural University ·2012 ·Master's thesis
  8. On the Development of Non-public Economy in China
    ZhaoJinPeng ·University of Jinan ·2013 ·Master's thesis
  9. A Study on Development Strategy on Agricultural Products Logistics Park of Changsha
  10. Study on the Development of Archives Publicity Work
    LiYuZuo ·Suzhou University ·2013 ·Master's thesis
  11. Publishing Research of Female Inspirational Books
  12. Present Situation of China’s TV Legal News
    HuoFuHong ·Bohai University ·2014 ·Master's thesis
  13. Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
  14. The Research and Design of Game Platform Based on Scenario Experience
    HuWeiWei ·Hunan University ·2013 ·Master's thesis
  15. The Method and Implementation of Array Calibration on Circular Antenna Array
  16. Research on present situation and Countermeasures of Chinese wrestling in sports colleges in China
  17. The Chengdu Hoya Swim Training Club Situational and Developmental Strategy Research
  18. The Study on Actuality and Countermeasure of Traditional a Martial Art Schools in Beijing Province
  19. SWOT analysis and Countermeasures of Dalian City Golf Club status quo.
    HeQiang ·Liaoning Normal University ·2013 ·Master's thesis
  20. Research on Women’s Hockey Reserved Talents Cultivation System in China
    WangNing ·Northeast Normal University ·2013 ·Doctoral dissertation