• DocumentCode
    328102
  • Title

    Contract-oriented specifications

  • Author

    Mitchell, Richard ; Howse, John ; Hamie, Ali

  • Author_Institution
    Brighton Univ., UK
  • fYear
    1997
  • fDate
    35674
  • Firstpage
    131
  • Lastpage
    140
  • Abstract
    In object classes developed using design-by-contract, contracts contain assertions that formalise pre-conditions, post-conditions and invariants. To be sure that contracts are complete, they can be derived from specifications. For classes in a data structure library, equational specifications are appropriate. However, a conventional equational specification cannot usually be mapped directly to contracts. Instead, a second, contract-oriented, equational specification can be devised, with two key properties: it can be proved that the contract-oriented specification implies the original specification; and the contract-oriented specification can be mapped systematically to contracts. These two properties combine to increase the confidence that the contracts capture the same abstraction as the equational specification
  • Keywords
    abstract data types; algebraic specification; contracts; object-oriented methods; assertions; contract-oriented specification; data structure library; design-by-contract; equational specification; invariants; object classes; post-conditions; pre-conditions; specification-contract mapping; Automatic programming; Contracts; Data structures; Equations; Formal specifications; Jacobian matrices; Libraries; Programming profession; Unified modeling language; Writing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Technology of Object-Oriented Languages, 1997. TOOLS 24. Proceedings
  • Conference_Location
    Beijing
  • Print_ISBN
    0-8186-8551-4
  • Type

    conf

  • DOI
    10.1109/TOOLS.1997.713536
  • Filename
    713536