期刊文献+

契约式设计中异常处理机制研究

Research on Exception Handling Mechanism in Design by Contract
下载PDF
导出
摘要 客户-供方契约规定了软件系统每一步操作的责任和义务。契约式设计中引入异常处理机制以应对发生在运行环境下的契约违背。该种异常处理机制协助契约式设计规范以开发正确与健壮的软件。契约式异常处理并不构成客户-供方契约的一部分,但是作为一个契约组件必须按契约编写。总结契约式设计中异常的分类和转移原则、界限原则、应急原则、恢复原则等异常处理原则,列举在Eiffel、JML等框架下异常处理的应用。 Client-supplier contract specifies responsibilities and obligations of every operation in a software system. Exception handling mechanism is introduced to deal with contract violations in an operational setting, which assists the specification of design by contract for developing correct and robust software. The exception handling is not part of the client-sup- plier contract, but as a contract component, it must be written according to contract. Sum- marizes exception classification and exception handling principle such as transfer principle, boundary principle, panic principle and resumption principle, illustrates exception handling applications under frameworks like Eiffel and JML.
作者 戎戟
出处 《现代计算机》 2009年第10期41-44,共4页 Modern Computer
关键词 契约式设计 异常处理机制 客户-供方契约 Design by Contract Exception Handling Mechanism Client-Supplier Contract
  • 相关文献

参考文献10

  • 1Meyer Bertrand. Object-Oriented Software Construction[M]. Prentice Hall, 1988.
  • 2Meyer Bertrand. Object-Oriented Software Construction[M]. 2nd Ed. Prentice Hall, 1997.
  • 3JoynerIan.对象揭秘:Java、Eiffel和C++[M].鲍志云译.北京:人民邮电出版社,2003.
  • 4Mitchell R,Mckim J.Designby Contract原则与实践[M].孟岩译.北京:人民邮电出版社.2003.
  • 5Kiniry J. Exceptions in Java and Eiffel: Two Extremes in Exception Design and Application[C].//Dony C, Knudsen J. L, Romanovsky A, Tripathi A. Advanced Topics in Exception Handling Techniques. Lecture Notes in Computer Science. 4119. Berlin Heidelberg: Springer-Verlag,2006: 288-300.
  • 6ECMA. Standard ECMA-367 Eiffel: Analysis, Design and Programming Language[S]. 2nd Ed. Geneva: ECMA, 2006.
  • 7Burdy L, Cheon Y, Cok D, et al. An Overview of JML Tools and Applications[J]. International Journal on Software Tools for Technology Transfer, 2005, 7(3):212-232.
  • 8Cabral Bruno, Marques Paulo. Exception Handling: A Field Study in Java and .NET[C].//ERNST Erik. ECOOP 2007- Object-Oriented Programming. Lecture Notes in Computer Science. 4609. Berlin Heidelberg: Springer-Verlag,2007: 151-175.
  • 9Meyer Bertrand. Eiffel: The Language[M]. 3rd Ed. Prentice Hall, 2002.
  • 10Garcia A, Rubira C, Romanovsky A, et al. A Comparative Study of Exception Handling Mechanism for Building Dependable Object-Oriented Software[J]. The Journal of Systems and Software, 2001, 59(2):197-222.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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