DocumentCode :
2029653
Title :
Executable visual contracts
Author :
Lohmann, Marc ; Sauer, Stefan ; Engels, Gregor
Author_Institution :
Dept. of Comput. Sci., Paderborn Univ., Germany
fYear :
2005
fDate :
20-24 Sept. 2005
Firstpage :
63
Lastpage :
70
Abstract :
Design by contract (DbC) is widely acknowledged to be a powerful technique for creating reliable software. DbC allows developers to specify the behavior of an operation precisely by pre- and post-conditions. Existing DbC approaches predominantly use textual representations of contracts to annotate the actual program code with assertions. In the unified modeling language (UML), the textual object constraint language (OCL) supports the specification of preand post-conditions by constraining the model elements that occur in UML diagrams. However, textual specifications in OCL can become complex and cumbersome, especially for software developers who are typically not used to OCL. In this paper, we propose to specify the pre-and post-conditions of an operation visually by a pair of UML object diagrams (visual contract). We define a mapping of visual contracts into Java classes that are annotated with behavioral interface specifications in the Java modeling language (JML). The mapping supports testing the correctness of the implementation against the specification using JML tools, which include a runtime assertion checker. Thus we make the visual contracts executable.
Keywords :
Java; Unified Modeling Language; formal specification; formal verification; object-oriented programming; software reliability; visual programming; Java classes; Java modeling language; UML object diagrams; behavior specification; behavioral interface specification; contract textual representation; design by contract; executable visual contracts; program code; runtime assertion checker; software creation; textual object constraint language; textual specification; unified modeling language; visual specification; Computer languages; Computer science; Contracts; Java; Programming; Robustness; Runtime; Software systems; Testing; Unified modeling language;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Visual Languages and Human-Centric Computing, 2005 IEEE Symposium on
Print_ISBN :
0-7695-2443-5
Type :
conf
DOI :
10.1109/VLHCC.2005.35
Filename :
1509489
Link To Document :
بازگشت