Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-cnmwb Total loading time: 0 Render date: 2024-07-21T13:27:46.118Z Has data issue: false hasContentIssue false

6 - Setting up state-based specifications

Published online by Cambridge University Press:  02 November 2009

Get access

Summary

Kinds of axioms

In Chapter 2 a number of techniques for setting up algebraic specifications were given. Now we want to do the same for state-based specifications. Recall that a state-based specification serves to describe a system whose model is a ‘class’. A class is a kind of state-machine where each state has an algebra associated with it. Because each such algebra can be viewed as a static world model, classes with their state transitions can be viewed to model dynamic systems. Special language constructs to specify these systems were introduced, such as procedures and the operators of dynamic logic. It is typical for these language constructs that they leave the sort of states implicit.

Therefore the techniques of Chapter 2 are mostly useful for describing the static aspects of states, whereas we need complementary guidelines for dealing with the dynamic aspects of a system. This is the main topic of this chapter. Key notions are that of precondition, postcondition and invariant.

In practice it turns out that there are certain patterns that occur quite often in state-based specifications, providing methodological guidelines for systematically setting up state-based specifications. In this chapter we shall do this, focusing on the axioms, and we adopt a classification distinguishing four distinct roles an axiom can play. These roles correspond to typical syntactic patterns. We shall refer to these by saying that there are four kinds of axioms:

  1. properties of all states;

  2. invariance properties;

  3. properties of the initial state;

  4. properties of state transitions including pre- and postcondition axioms and termination axioms.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1992

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×