期刊文献+

面向对象的契约式程序设计 被引量:3

Object-oriented programming by contract
下载PDF
导出
摘要 运用行为子类型及扩充行为子类型的概念,通过对一个Java实例地剖析,讨论了在面向 对象的契约式程序设计中如何撰写契约,以保持面向对象的单个继承和多重继承的特性问题,并证明 了这一方法的有效性。最后探讨了动态环境下违反契约时的责任归咎,展望了契约思想在软件开发 中的运用前景。 A notion of behavior subtyping and its extension was introduced.By analysing an example of Java,how to design in object-oriented programming by contract was discussed in order to keep the features of single and multiple inheritance.The effectivity of the method was demonstrated.Finally,how to assign blame when contracts were violated in dynamic enviroment was discussed. The perspective of contract used in software development was outlooked.
出处 《计算机应用》 CSCD 北大核心 2005年第4期796-798,共3页 journal of Computer Applications
基金 国家自然科学基金资助项目(60373086)
关键词 行为子类型 契约 前置条件 后置条件 不变式 behavior subtyping contract precondition postcondition invariant
  • 相关文献

参考文献4

  • 1LISKOV BH,WING JM.A behavioral notion of subtyping[J].ACM Transactions on Programming Languages and Systems(TOPLAS),1994,16(6):1811-1841.
  • 2MEYER B.Object-oriented Software Construction[M].Prentice Hall,1988.
  • 3FINDLER RB,LATENDRESS M,FELLEISEN M.Behavioral contracts and behavioral subtyping[A].Proceedings of the 8th European software engineering conference[C].2001.
  • 4孟岩.DesignbyComtract原则与实践[M].北京:人民邮电出版社,2003..

同被引文献24

  • 1孙巨.在Java中使用契约式设计[J].计算机应用与软件,2006,23(11):67-69. 被引量:2
  • 2张嘉铭,张思博,赵建军.基于契约式设计的Java编译器实现[J].微型电脑应用,2007,23(3):14-16. 被引量:2
  • 3Richard Mitchell,Jim Mckim.Designby Contract原则与实践[M].北京:人民邮电出版社,2003.23-28.
  • 4Tessier F, Badri M, Badri L. A model-based detection of conflicts between crosscutting concerns; Towards a formal approach[C]. International Workshop on Aspect-Oriented Software Development. China: Beijing University, 2004.
  • 5Durr P, Bergmans L, Aksit M. Reasoning about semantic conflicts between aspects[C]. Brussels, Belgium: European Interactive Workshop on Aspects in Software, 2005.
  • 6Mussbacher G, Whittle J, Amyot D. Modeling and detecting semantic-based interactions in aspect-oriented scenarios [J]. Requirements Engineering, 2010, 15 (2): 197-214.
  • 7Chen X, Ye N, Ding W. A formal approach to analyzing interference problems in aspect oriented designs [C]. Shanghai, China:Third International Symposium, UTP, 2010.
  • 8LEGEARD B, PEUREUX F, UTTING M. Automated Boundary Testing from Z and B [C] //Proc. Conf. on Formal Methods Europe. London: Springer Verlag, 2002: 21-40.
  • 9GARGANTINI A, HERTMEYER C. Using Model Checking to Generate Tests from Requirements Specifications [C]. Toulouse: 7th European Software Engineering Conference Held Jointly with the 7th ACM SIGSOFT Symposium on the Foundations of Software Engineering, 1999 : 146- 162.
  • 10BALCI O. Principles and Techniques of Simulation Validation, Verification, and Testing [C]. Arlington: Simulation Conference Proceedings, 1995 : 147- 154.

引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部