Error Detection
暂无分享,去创建一个
Imagine a simple library system. An abstract specification for this system may introduce datatypes User, Book and Library. A function LendBook specifies the user transaction of borrowing a book from the library. The number of books which can be borrowed by a single user is restricted to a certain limit modeled by a constant BorrowingLimit. A predicate Authorized characterizes whether a user is allowed to borrow a book or not (e.g. the system distinguish between different user classes).
[1] 簡聰富,et al. 物件導向軟體之架構(Object-Oriented Software Construction)探討 , 1989 .
[2] Herbert Klaeren,et al. Executable Assertions and Separate Compilation , 1997, JMLC.
[3] V. Stavridou,et al. Abstraction and specification in program development , 1988 .