【24h】

Verifying Java Object Invariants At Runtime

机译:在运行时验证Java对象不变式

获取原文
获取原文并翻译 | 示例
           

摘要

An object invariant consisting of a set of properties that must hold for all instances of a class at any time is usually used in object-oriented design. However, verifying object invariants at runtime is always a challenging task in software verification. This paper proposes a method for verifying invariants of Java objects at runtime using AOP. Suppose that a software application is designed using UML models and its constraints are specified in OCL expressions, the software is then implemented, by default, using the UML design. They propose to construct verifiable aspects which are automatically generated from OCL constraints. These aspects can be woven into Java code to check whether object invariants are violated at runtime. Benefiting from AOP in separation of crosscut-ting concerns and weaving mechanisms, generated aspects can do the verification task whenever values of objects' attributes are changed. A Verification Aspect Generator (VAG) tool has been developed allowing the automatic generation of verifying aspects from the UML/OCL constraints.
机译:面向对象的设计通常使用由一组属性组成的对象不变式,这些属性必须在任何时候都对一个类的所有实例都适用。但是,在运行时验证对象不变性始终是软件验证中的一项艰巨任务。本文提出了一种使用AOP在运行时验证Java对象不变性的方法。假设使用UML模型设计了一个软件应用程序,并且在OCL表达式中指定了它的约束,则默认情况下使用UML设计来实现该软件。他们建议构造可验证的方面,这些方面是根据OCL约束条件自动生成的。这些方面可以编入Java代码中,以检查在运行时是否违反了对象不变式。得益于AOP的横切关注点和编织机制的分离,只要更改对象属性的值,生成的方面就可以执行验证任务。已经开发了验证方面生成器(VAG)工具,可以根据UML / OCL约束条件自动生成验证方面。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号