Computer Science ›› 2016, Vol. 43 ›› Issue (Z6): 457-460.doi: 10.11896/j.issn.1002-137X.2016.6A.108

Previous Articles     Next Articles

Behavior Specification Method of Class Based on Abstract State

WANG Wei, DING Eryu and LUO Bin   

  • Online:2018-11-14 Published:2018-11-14

Abstract: State WANG Wei DING Er-yu LUO Bin (Software Institute,Nanjing University,Nanjing 210093,China) (State Key Laboratory for Novel Software Technology,Nanjing 210093,China) Abstract Defining the specifications of the method can reduce the software error,and ensure the correctness of the program.But in object-oriented programs,methods influence each other,so better specifications methods are needed .The researchers try a variety of methods,such as abstract variable,state abstraction,heap, inspector methods and so on.In this paper,we gave a behavior specification method of class based on the abstract state.The method depends on abstract state to solute the shared dependency and influence between the class specification method,and realizes the independent description and validation runtime cohesion between specification and implementation.

Key words: Abstract state,Sharing dependency,Specification method

[1] Hoare C A R.An Axiomatic Basis for Computer Programming[J].Communications of the ACM,1959,2(10):576-580
[2] Guttag J V,Horowitz E,Musser D R.Abstract Data Types and Software Validation[J].Communication of the ACM,1978:21(1):1048-1064
[3] Goguen J A,Thatcher J W,Wagner E G,et al.Abstract data-types as initial algebras and correctness of data representations[C]∥Proc.Conf.on Comptr.Graphics,Pattern Recognition and Data Structure.1975
[4] Zilles S N.Abstract specifications for data types[R].IBM Res.Lab.,San Jose,Calif.,1975
[5] Meyer B.Applying “Design by Contract”[J].Computer,1992,5(10):40-51
[6] Findler R B,Felleisen M.Behavioral Interface Contracts for Java.http://www.researchtate.net/publication/2245179_Behavioral_Interface_Contracts_for_Java
[7] Findle R B,Felleisen M.Contracts for Higher-Order Functions[J].ACM Sigplan.Notices,2002,7(9):48-59
[8] Cheon Y,Leavens G T,Sitaraman M,et al.Model Variables:Cleanly Supporting Abstraction in Design By Contract[J].Software-practice &Experience,2003,5(6):583-599
[9] Hoffman D,Strooper P.State Abstraction and Modular Soft-ware Development[M]∥SIGSOFT 95.Washington,DC,USA,1995
[10] Hatcliff J,Leavens G T.Behavioral Interface Specification Language[J].ACM Computing Surverys,2012,4(3):1-58
[11] Jacobs B,Piessens F.Inspector Methods for State Abstraction:Soundness Proof[J].Journal of Object Technology,2007,6(5):55-75
[12] Dallmeier V,Wasylkowski A,Bettenburg N.Identifying Inspectors to Mine Models of Object Behavior[C]∥ICFEM.2004
[13] Jacobs B,Piessens F.Inspector Methods for State Abstraction:Soundness Proof[R].CW Reports,2007
[14] Grunwald D,Gladisch C.Generating JML Specifications from Alloy Expressions[M]∥Hardware and Software:Verification and Testing.2014
[15] Agostinho S,Moreira A.Contracts for Aspect-Oriented Design[C]∥SPLAT 2008.ACM,2008
[16] Kumar A,Bandyopadhyay.Modeling of State Transition Rules and its Application[J].ACM SIGSOFT Software Engineering Notes,2010,35(2):1-7
[17] Polikarpova N,Furia C A.What Good Are StrongSpecifications?[C]∥ICSE 2013.San Francisco,CA,USA,2013
[18] Polikarpova N,Furia C A,Meyer B.Specifying reusable components[C]∥VSTTE.LNCS,vol.6217,0:127-141
[19] Wei Y,Furia C A,Kazmi N,et al.Inferring better contracts[C]∥ICSE.2011:191-200
[20] Wei Y,Roth H,Furia C A,et al.Stateful testing:Finding more errors in codeand contracts[C]∥ASE.2011:440-443

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!