An Automatic Approach to Generating State Diagram from Contract-Based Class

J. Bae, H. Chae
{"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.
基于契约的类自动生成状态图的方法
状态图通常用于描述单个对象的动态行为。换句话说,状态图可以表示类中的操作序列。此外,状态图通常用于各种目的:测试用例生成、正式验证和代码生成。因为状态图描述了一个对象的所有可能的动态行为,所以绘制和理解它们是非常困难的。本文提出了一种从基于契约的类自动生成状态图的方法。也就是说,状态图是通过分析每个操作的前后条件自动生成的。我们还开发了一个工具来支持我们的方法,并将该工具应用于两个案例研究,微波炉和BlankReader。我们发现,所提出的技术和工具对于从基于契约的类构造状态图非常有用。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信