Time-based constraints in the object constraint language OCL

被引:0
|
作者
Hamie, A [1 ]
Howse, J [1 ]
Mitchell, R [1 ]
机构
[1] Univ Brighton, Sch Comp Math & Informat Sci, Brighton, E Sussex, England
关键词
OCL; UML; invariants; time-based constraints;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The Object Constraint Language OCL is a textual specification language that supplements UML class diagrams for describing and expressing various constraints that can not be modelled by the diagrams. These constraints include invariants on classes and object types, preconditions and postconditions of operations. This paper describes an approach for extending OCL with time-based constraints in such a way so as not to compromise its simplicity. A time-based constraint describes how values can change between earlier and later states. The approach is essentially based on using @pre and ocllsNew in invariants as well as in postconditions of operations. In order to distinguish between invariants and time-based constraints we introduce the stereotype << temporal constraint >>. We also introduce an operator eventually for expressing liveness constraints on attributes. We illustrate the approach by describing constraints such as constant attributes of an object, constant associations, and values increasing or decreasing over time.
引用
收藏
页码:375 / 379
页数:5
相关论文
共 50 条
  • [1] An introduction to the Object Constraint Language (OCL)
    Kleppe, A
    Warmer, J
    TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES - TOOLS 33, PROCEEDINGS, 2000, : 456 - 456
  • [2] Object modeling with the OCL - The rationale behind the object constraint language - Introduction
    Selic, B
    OBJECT MODELING WITH THE OCL: THE RATIONALE BEHIND THE OBJECT CONSTRAINT LANGUAGE, 2002, 2263 : 1 - 3
  • [3] Some shortcomings of OCL, the Object Constraint-Language of UML
    Vaziri, M
    Jackson, D
    TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS - TOOLS 34, PROCEEDINGS, 2000, : 555 - 560
  • [4] Analysis by contract: An introduction to UML's object constraint language (OCL)
    Mitchell, R
    TOOLS 26 - TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES - PROCEEDINGS, 1998, : 448 - 460
  • [5] On the relationship between the Object Constraint Language (OCL) and the Java']Java Modeling Language (JML)
    Hamie, Ali
    SEVENTH INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED COMPUTING, APPLICATIONS AND TECHNOLOGIES, PROCEEDINGS, 2006, : 411 - 414
  • [6] OCL: The constraint language of the UML
    Warmer, J
    Kleppe, A
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1999, 12 (02): : 10 - +
  • [7] Specifying role-based access constraints with object constraint language
    Wang, H
    Zhang, YC
    Cao, JL
    Yang, J
    ADVANCED WEB TECHNOLOGIES AND APPLICATIONS, 2004, 3007 : 687 - 696
  • [8] Role-based authorization constraints specification using object constraint language
    Ahn, GJ
    Shin, ME
    PROCEEDINGS OF THE TENTH IEEE INTERNATIONAL WORKSHOPS ON ENABLING TECHNOLOGIES: INFRASTRUCTURE FOR COLLABORATIVE ENTERPRISES, 2001, : 157 - 162
  • [9] Translating natural language constraints to OCL
    Bajwa, Imran Sarwar
    Lee, Mark
    Bordbar, Behzad
    JOURNAL OF KING SAUD UNIVERSITY-COMPUTER AND INFORMATION SCIENCES, 2012, 24 (02) : 117 - 128
  • [10] Cranes control with time-based and position constraints
    Barbarisi, Osvaldo
    Del Vecchio, Carmen
    Parisio, Alessandra
    PROCEEDINGS OF THE 46TH IEEE CONFERENCE ON DECISION AND CONTROL, VOLS 1-14, 2007, : 2956 - 2961