...
首页> 外文期刊>Software and systems modeling >Systematic approach for constructing an understandable state machine from a contract-based specification: controlled experiments
【24h】

Systematic approach for constructing an understandable state machine from a contract-based specification: controlled experiments

机译:从基于合同的规范构建可理解的状态机的系统方法:受控实验

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Contract-based specifications using OCL or JML are employed widely to describe the behaviors of systems. However, complex behaviors might not be understood using these specifications because they focus on each individual method instead of the relationships between them. State machines (SMs) can be used to model the dynamic behavior including acceptable event sequences. However, the manual construction of SMs is a time-consuming and error-prone task. Many studies have aimed to construct SMs from contract-based specifications. However, existing SM construction approaches are not concerned with certain qualities of the SMs, such as understandability. In this study, we aimed to develop a combined atomic condition-based approach for constructing highly understandable SMs from formal specifications. We conducted two controlled experiments to evaluate the understandability of the SMs constructed: technology-oriented and human-oriented evaluations. Two existing SM construction approaches, i.e., condition-partitioning-based approach and experience-based approach, were used as the controls in the two experiments, for comparison with the proposed approach. In the technology-oriented experiment, 36 SMs were constructed from 12 specifications using the three approaches. A paired-samples Wilcoxon's signed-rank test was used to test the differences in the values of a SM understandability metric based on cohesion and coupling metrics. In the human-oriented experiment, we used 15 of the 36 SMs and the differences between the understandability correctness (the number of correct answers/the number of answered questions) measured by 23 participants were tested using an independent t test. The results of the two experiments showed that the understandability of SMs constructed using the proposed approach was significantly better than that of SMs constructed using the two control approaches (). The proposed approach does not support advanced features such as the containers of contract-based specifications and the hierarchy/concurrency of SMs.
机译:使用OCL或JML的基于合同的规范被广泛用于描述系统的行为。但是,使用这些规范可能无法理解复杂的行为,因为它们专注于每个单独的方法,而不是它们之间的关系。状态机(SM)可用于对动态行为进行建模,包括可接受的事件序列。但是,手动构造SM是一项耗时且容易出错的任务。许多研究旨在从基于合同的规范构建SM。但是,现有的SM构造方法并不关心SM的某些质量,例如可理解性。在这项研究中,我们旨在开发一种基于原子条件的组合方法,用于从正式规范中构建易于理解的SM。我们进行了两个受控实验来评估所构建的SM的可理解性:以技术为导向和以人为本。在这两个实验中,使用了两种现有的SM构造方法,即基于条件划分的方法和基于经验的方法作为控件,与提出的方法进行了比较。在面向技术的实验中,使用三种方法从12种规格中构建了36种SM。配对样本Wilcoxon的符号秩检验用于基于内聚和耦合度量来测试SM易懂性度量值的差异。在以人为本的实验中,我们使用了36个SM中的15个,并且使用独立的t检验测试了23名参与者测得的可理解性正确性(正确答案的数量/已回答问题的数量)之间的差异。这两个实验的结果表明,使用建议的方法构造的SM的可理解性明显优于使用两种控制方法构造的SM的()。提议的方法不支持高级功能,例如基于合同的规范的容器以及SM的层次结构/并发性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号