SlideShare a Scribd company logo
1 of 2
Assignment 1: Preparing Zed-Specification Document
Brief:
You will take your project concept a step further by developing its zed specification.
It is crucial to realise that in a Z specification, the mathematics is subsidiary to the
natural language. A piece of mathematics makes no sense unless we know the in-
tended meaning of each construct. We therefore enforce a rule that an "English de-
scription must precede the corresponding Z" (by Anthony Hall). The English and the
Z are complementa-ry: the English describes the relevant real-world concept and
explains the meaning of every term in the maths; the maths makes precise the
relationships between the terms defined in the English.
A Z Tool for Specification:
Industry uses Microsoft Word for writing specifications so the prescribed tool for
writing Zed specification in word is "Z Word Tool" developed by Anthony Hall,
and his colleagues.
The tool includes:
1.Styles for laying out schemas and other Z paragraphs.
2.A Unicode font that includes all the Z symbols and is visually compatible with
Times New Roman.
3.Automatic layout of Z paragraphs.
Pattern for the Document:
Every schema that defines part of the system state is preceded by an explanation of
what properties of the real world are being described. Here is a small example:
Attribute Name Description
Known Known is the set of names.
Birthday Birthday is a function when applied to certain names gives the
birthdays associated to them.
Invariant Set known is same as the domain of the function birthday
BirthdayBook
Known: ℙ Name
Birthday: Name ⇸ Date
Known = dom birthay
So,
1. Create hierarchy of your selected project. Identify any of the three modules for
formal specification document.
2. Create State Schema of your selected project and write down English
description of real world properties.
3. Also give initSchema for state schema.
1
4. Now apply operations on state schema and state them as operation schema.
2

More Related Content

Similar to Assignment 1

PROGRAMMING LANGUAGES
PROGRAMMING LANGUAGESPROGRAMMING LANGUAGES
PROGRAMMING LANGUAGESABHINAV SINGH
 
Sofwear deasign and need of design pattern
Sofwear deasign and need of design patternSofwear deasign and need of design pattern
Sofwear deasign and need of design patternchetankane
 
Chapter 1- Introduction.ppt
Chapter 1- Introduction.pptChapter 1- Introduction.ppt
Chapter 1- Introduction.pptTigistTilahun1
 
Bt0082 visual basic
Bt0082   visual basicBt0082   visual basic
Bt0082 visual basicsmumbahelp
 
Case Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docxCase Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docxtroutmanboris
 
GENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONS
GENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONSGENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONS
GENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONSijseajournal
 
Declaration programming 2017
Declaration programming 2017Declaration programming 2017
Declaration programming 2017Marke Greene
 
Tools for the Toolmakers
Tools for the ToolmakersTools for the Toolmakers
Tools for the ToolmakersCaleb Callaway
 
Programing paradigm & implementation
Programing paradigm & implementationPrograming paradigm & implementation
Programing paradigm & implementationBilal Maqbool ツ
 
MACHINE-DRIVEN TEXT ANALYSIS
MACHINE-DRIVEN TEXT ANALYSISMACHINE-DRIVEN TEXT ANALYSIS
MACHINE-DRIVEN TEXT ANALYSISMassimo Schenone
 
This project is the first projects you will be working on this quart.pdf
This project is the first projects you will be working on this quart.pdfThis project is the first projects you will be working on this quart.pdf
This project is the first projects you will be working on this quart.pdfeyewaregallery
 
C# classes
C#   classesC#   classes
C# classesTiago
 

Similar to Assignment 1 (20)

Ad507
Ad507Ad507
Ad507
 
PROGRAMMING LANGUAGES
PROGRAMMING LANGUAGESPROGRAMMING LANGUAGES
PROGRAMMING LANGUAGES
 
Sofwear deasign and need of design pattern
Sofwear deasign and need of design patternSofwear deasign and need of design pattern
Sofwear deasign and need of design pattern
 
Chapter 1- Introduction.ppt
Chapter 1- Introduction.pptChapter 1- Introduction.ppt
Chapter 1- Introduction.ppt
 
Class 4
Class 4Class 4
Class 4
 
Bt0082 visual basic
Bt0082   visual basicBt0082   visual basic
Bt0082 visual basic
 
Case Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docxCase Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docx
 
GENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONS
GENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONSGENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONS
GENERATING PYTHON CODE FROM OBJECT-Z SPECIFICATIONS
 
Declaration programming 2017
Declaration programming 2017Declaration programming 2017
Declaration programming 2017
 
ppt
pptppt
ppt
 
ppt
pptppt
ppt
 
F# Tutorial @ QCon
F# Tutorial @ QConF# Tutorial @ QCon
F# Tutorial @ QCon
 
Tools for the Toolmakers
Tools for the ToolmakersTools for the Toolmakers
Tools for the Toolmakers
 
Ooad unit 1
Ooad unit 1Ooad unit 1
Ooad unit 1
 
Programing paradigm & implementation
Programing paradigm & implementationPrograming paradigm & implementation
Programing paradigm & implementation
 
Oo ps exam answer2
Oo ps exam answer2Oo ps exam answer2
Oo ps exam answer2
 
MACHINE-DRIVEN TEXT ANALYSIS
MACHINE-DRIVEN TEXT ANALYSISMACHINE-DRIVEN TEXT ANALYSIS
MACHINE-DRIVEN TEXT ANALYSIS
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
This project is the first projects you will be working on this quart.pdf
This project is the first projects you will be working on this quart.pdfThis project is the first projects you will be working on this quart.pdf
This project is the first projects you will be working on this quart.pdf
 
C# classes
C#   classesC#   classes
C# classes
 

More from Mubashar Mehmood

More from Mubashar Mehmood (6)

Z specifaction
Z specifaction Z specifaction
Z specifaction
 
LCD
LCDLCD
LCD
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
Implementation of trees
Implementation of trees Implementation of trees
Implementation of trees
 
Stakeholders
StakeholdersStakeholders
Stakeholders
 
Requirement Management
Requirement Management Requirement Management
Requirement Management
 

Assignment 1

  • 1. Assignment 1: Preparing Zed-Specification Document Brief: You will take your project concept a step further by developing its zed specification. It is crucial to realise that in a Z specification, the mathematics is subsidiary to the natural language. A piece of mathematics makes no sense unless we know the in- tended meaning of each construct. We therefore enforce a rule that an "English de- scription must precede the corresponding Z" (by Anthony Hall). The English and the Z are complementa-ry: the English describes the relevant real-world concept and explains the meaning of every term in the maths; the maths makes precise the relationships between the terms defined in the English. A Z Tool for Specification: Industry uses Microsoft Word for writing specifications so the prescribed tool for writing Zed specification in word is "Z Word Tool" developed by Anthony Hall, and his colleagues. The tool includes: 1.Styles for laying out schemas and other Z paragraphs. 2.A Unicode font that includes all the Z symbols and is visually compatible with Times New Roman. 3.Automatic layout of Z paragraphs. Pattern for the Document: Every schema that defines part of the system state is preceded by an explanation of what properties of the real world are being described. Here is a small example: Attribute Name Description Known Known is the set of names. Birthday Birthday is a function when applied to certain names gives the birthdays associated to them. Invariant Set known is same as the domain of the function birthday BirthdayBook Known: ℙ Name Birthday: Name ⇸ Date Known = dom birthay So, 1. Create hierarchy of your selected project. Identify any of the three modules for formal specification document. 2. Create State Schema of your selected project and write down English description of real world properties. 3. Also give initSchema for state schema. 1
  • 2. 4. Now apply operations on state schema and state them as operation schema. 2