Using Patterns to Map OCL Constraints to JML Specifications

被引:2
|
作者
Hamie, Ali [1 ]
机构
[1] Univ Brighton, Sch Comp Engn & Math, Brighton, E Sussex, England
关键词
Constraints; Patterns; OCL; JML; DESIGN;
D O I
10.1007/978-3-319-25156-1_3
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
OCL is a formal notation to specify constraints on UML models that cannot otherwise be expressed using diagrammatic notations such as class diagrams. The type of constraints that can be expressed using OCL include class invariants and operation preconditions and post-conditions. Constraint patterns can be used to simplify the development of consistent constraints for UML/OCL models. This paper investigates an approach based on constraint patterns to developing JML specifications for Java implementations from OCL constraints. This would enable the checking of OCL constraints at runtime since they can be translated to JML executable assertions. The approach involves mapping each OCL constraint pattern to a corresponding JML pattern. This results in a library of JML constraint patterns that provides a seamless transition from UML/OCL designs to Java implementations.
引用
收藏
页码:35 / 48
页数:14
相关论文
共 50 条
  • [1] CONSTRAINT SPECIFICATIONS USING PATTERNS IN OCL
    Hamie, Ali
    [J]. IADIS-INTERNATIONAL JOURNAL ON COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2013, 8 (01): : 1 - 13
  • [2] Pattern-based Mapping of OCL Specifications to JML Contracts
    Hamie, Ali
    [J]. PROCEEDINGS OF THE 2014 2ND INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT (MODELSWARD 2014), 2014, : 193 - 200
  • [3] JML-Testing-Tools: A symbolic animator for JML specifications using CLP
    Bouquet, F
    Dadeau, F
    Legeard, B
    Utting, M
    [J]. TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, PROCEEDINGS, 2005, 3440 : 551 - 556
  • [4] Understanding B specifications with UML class diagram and OCL constraints
    Tatibouet, B.
    Jacques, I.
    [J]. ICEIS 2006: PROCEEDINGS OF THE EIGHTH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS: INFORMATION SYSTEMS ANALYSIS AND SPECIFICATION, 2006, : 475 - +
  • [5] Symbolic animation of JML specifications
    Bouquet, F
    Dadeau, R
    Legeard, B
    Utting, M
    [J]. FM 2005: FORMAL METHODS, PROCEEDINGS, 2005, 3582 : 75 - 90
  • [6] JML2B: Checking JML specifications with B machines
    Bouquet, Fabrice
    Dadeau, Frederic
    Groslambert, Julien
    [J]. B 2007: FORMAL SPECIFICATION AND DEVELOPMENT IN B, PROCEEDINGS, 2007, 4355 : 285 - +
  • [7] Checking JML specifications with B machines
    Bouquet, F
    Dadeau, F
    Groslambert, J
    [J]. ZB 2005: FORMAL SPECIFICATION AND DEVELOPMENT IN Z AND B, PROCEEDINGS, 2005, 3455 : 434 - 453
  • [8] Measuring a Java']Java Test Suite Coverage Using JML Specifications
    Dadeau, F.
    Ledru, Y.
    du Bousqueta, L.
    [J]. ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2007, 190 (02) : 21 - 32
  • [9] Checking JML specifications using an extensible software model checking framework
    Edwin Robby
    Matthew B. Rodríguez
    John Dwyer
    [J]. International Journal on Software Tools for Technology Transfer, 2006, 8 (3) : 280 - 299
  • [10] Generating JML specifications from Alloy expressions
    [J]. 1600, Springer Verlag (8855):