arrow
返回

Developing and debugging algebraic specifications for Java classes

delete2008-06-27
delete7
PRE
AI
J
Johannes Henkel *
C
Christoph Reichenbach
A
Amer Diwan
DOI:10.1145/1363102.1363105delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Modern programs make extensive use of reusable software libraries. For example, a study of a number of large Java applications shows that between 17% and 30% of the classes in those applications use container classes defined in the java. util package. Given this extensive code reuse in Java programs, it is important for the interfaces of reusable classes to be well documented. An interface is well documented if it satisfies the following requirements: ( 1) the documentation completely describes how to use the interface; ( 2) the documentation is clear; ( 3) the documentation is unambiguous; and ( 4) any deviation between the documentation and the code is machine detectable. Unfortunately, documentation in natural language, which is the norm, does not satisfy the above requirements. Formal specifications can satisfy them but they are difficult to develop, requiring significant effort on the part of programmers. To address the practical difficulties with formal specifications, we describe and evaluate a tool to help programmers write and debug algebraic specifications. Given an algebraic specification of a class, our interpreter generates a prototype that can be used within an application like a regular Java class. When running an application that uses the prototype, the interpreter prints error messages that tell the developer in which way the specification is incomplete or inconsistent with a hand-coded implementation of the class. We use case studies to demonstrate the usefulness of our system.
Keyword:
documentation
algebraic interpretation
algebraic specifications
specification discovery
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.2K
被引数:
3.4K

机构

University of Colorado System 封面图
University of Colorado System
学者数:
6.3W
论文数: 5.5W
被引数: 1.8K
引用论文

引用论文

Memristive switching: physical mechanisms and applications
err2014-05-08
err0
PREAI
errPatrick R. Mickel; Andrew J. Lohn; Matthew J. Marinella
err分享
err收藏
Exomic and transcriptomic alterations of hereditary gingival fibromatosis
err2019-04-15
err0
PREAI
errSeong Kyu Han; Jungho Kong; Sanguk Kim; Jae‐Hoon Lee; Dong‐Hoo Han
err分享
err收藏
The role of vision in tuning anticipatory motor responses of the limbs
err1993-11-18
err0
PREAI
errFrancesco Lacquaniti; Mauro Carrozzo; Nunzio Borghese
err分享
err收藏
Biological Behaviour and DNA Cytophotometry of Urothelial Bladder Carcinoma
err2008-11-21
err0
PREAI
errF. Hofstaedter; G. Jakse; B. Lederer; G. Mikuz; R. Delgado
err分享
err收藏
err分享
err收藏
The Current Status of Drug Discovery for the Oxytocin Receptor
err2021-09-23
err0
PREAI
errPhilippe E. Nashar; Aidan A. Whitfield; Jiri Mikusek; Tristan A. Reekie
err分享
err收藏
学者 查看更多内容