25.07.2014 Views

VDM-10 Language Manual

VDM-10 Language Manual

VDM-10 Language Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 14<br />

Top-level Specification (<strong>VDM</strong>++ and<br />

<strong>VDM</strong>-RT)<br />

In the previous sections <strong>VDM</strong> constructs such as types, expressions, statements, functions and<br />

operations have been described. A number of these constructs can constitute the definitions inside<br />

a class definition. A top-level specification, or document, is composed by one or more class<br />

definitions. Note that only in <strong>VDM</strong>-RT it is possible to have a system class.<br />

Syntax: document = class | system ,{ class | system } ;<br />

14.1 System (<strong>VDM</strong>-RT)<br />

In order to be able to describe distributed systems in <strong>VDM</strong>-RT includes a notion of a system that<br />

describes how different parts of the system modelled are deployed to different Core Processing<br />

Units (CPUs) and communication busses connecting the CPUs together. Syntactically the system<br />

is described exactly like ordinary classes described below in Section 14.2, except that the keyword<br />

“system” instead of the keyword “class”.<br />

Syntax:<br />

system = ‘system’, identifier,<br />

[ class body ],<br />

‘end’, identifier ;<br />

class body = definition block, { definition block } ;<br />

definition block = type definitions<br />

| value definitions<br />

| function definitions<br />

| operation definitions<br />

| instance variable definitions<br />

| synchronization definitions<br />

| thread definitions ;<br />

125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!