{"title":"An Automatic Approach to Generating State Diagram from Contract-Based Class","authors":"J. Bae, H. Chae","doi":"10.1109/ECBS.2009.36","DOIUrl":null,"url":null,"abstract":"State diagrams are commonly used to describe thedynamic behavior of an individual object. In otherwords, state diagrams can represent sequences ofoperations in classes. In addition, state diagrams arecommonly used for various purposes: test casegeneration, formal verification and code generation.Because state diagrams describe all the possibledynamic behaviors of an object, it is very difficult todraw and understand them. This paper presents anautomated approach to the generation of a statediagram from a contract-based class. That is, a statediagrams are automatically generated by analyzingpre/post conditions of each operation. We alsodeveloped a tool for supporting our approach andapplied the tool to two case studies, MicrowaveOvenand BlankReader. We have found that the proposedtechnique and tool can be useful for constructing statediagrams from contract-based classes.","PeriodicalId":263562,"journal":{"name":"2009 16th Annual IEEE International Conference and Workshop on the Engineering of Computer Based Systems","volume":"23 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2009-04-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2009 16th Annual IEEE International Conference and Workshop on the Engineering of Computer Based Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ECBS.2009.36","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5
Abstract
State diagrams are commonly used to describe thedynamic behavior of an individual object. In otherwords, state diagrams can represent sequences ofoperations in classes. In addition, state diagrams arecommonly used for various purposes: test casegeneration, formal verification and code generation.Because state diagrams describe all the possibledynamic behaviors of an object, it is very difficult todraw and understand them. This paper presents anautomated approach to the generation of a statediagram from a contract-based class. That is, a statediagrams are automatically generated by analyzingpre/post conditions of each operation. We alsodeveloped a tool for supporting our approach andapplied the tool to two case studies, MicrowaveOvenand BlankReader. We have found that the proposedtechnique and tool can be useful for constructing statediagrams from contract-based classes.