Font Size: a A A

State Diagram To C + + Mapping Study

Posted on:2010-10-01Degree:MasterType:Thesis
Country:ChinaCandidate:J Y HuangFull Text:PDF
GTID:2208330332977650Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the increasingly widespread use of UML, an increasing number of programmers and systems designers to exchange through the UML. State diagram is a UML dynamic modeling is an important view, it is an entity described in the response based on the dynamic behavior of the incident shows how the entities in which the light of the current state of the different response to the incident. Based on the importance of state diagram, converting state diagram from the code for the relevant research has been put on the agenda. Many people have made in this regard the idea of their own, such as Metz, Brien, Douglass, Yacoub et al. In these scenarios, UML, one of the founders Martin proposed three scenarios:nested switch state model and state table; Guidelines for generating the right direction. This article is focused on the state table based on the idea to the idea by the state to the C++ code of the mapping method.In this paper, the use of Rational Rose as a modeling tool to study the different states map to the C++ code generation method of the law, as well as generated. Aim is to continue to experiment, to find a more effective conversion methods and rules, state diagrams can be mapped to C++ code. My method is conversion through stratified to achieve a state diagram of the environment to generate a corresponding category, the state map are generated for each state of a class, status and behavior of all the conversion mapping method for the state. In the study, at the same time taking into account the sequential substates and concurrent substates,conversion of sub-state through the state of the complex as a small class diagram using the same conversion method can be realized. Formed in the conversion code, it is not complicated if or case statement, resulting in a very simple code. Hope that the pace of software development has played a catalytic role effectively.The researchers limited the research in this paper is only a state diagram to C++code mapping approach, has not developed to achieve the appropriate tools.
Keywords/Search Tags:UML, state diagrams, C + +, mapping method, software engineering, object-oriented
PDF Full Text Request
Related items