首页    期刊浏览 2025年02月18日 星期二
登录注册

文章基本信息

  • 标题:Extending OCL Operation Contracts with Objective Functions
  • 本地全文:下载
  • 作者:Matthias P. Krieger ; Achim D. Brucker
  • 期刊名称:Electronic Communications of the EASST
  • 电子版ISSN:1863-2122
  • 出版年度:2011
  • 卷号:44
  • 语种:English
  • 出版社:European Association of Software Science and Technology (EASST)
  • 摘要:We explore the potential of adding objective functions to OCL operation contracts. If an operation contract includes an objective function, the operation has the obligation to yield results that make the objective function assume an optimal value. Thus, an objective function expresses a preference among the possible operation results that conform to the postconditions of the operation contract and any class invariants. Objective functions strictly increase the expressiveness of OCL operation contracts. While objective functions arise naturally in application domains like operations research, we argue that objective functions are a useful general-purpose specification instrument and discuss several application examples. As tool support for operation contracts with objective functions, we present an animator for OCL operation contracts with optimization capabilities. We ensure tool interoperability by specifying objective functions in a UML profile.
国家哲学社会科学文献中心版权所有