Question:
Describe about the topic “Z-Schema on Wheat Truck Control System”.
This is also known as formal specification language based on Z-notation after Zermelo–Fraenkel set theory , used for describing and modelling the computing based systems. This theory was proposed by Jean-Raymond Abrial with the help of Steve Schuman and Bertrand Meyer. It utilises the standard Mathematical notations used in First Order Predicated Logic, Lambda Calculus and Axiomatic Set Theory. Not only it uses the notation of above given mathematical theories it also combines there rules and assumptions too for describing the computing system.
This language describes the Software as a Mathematical Function. It defines a software with using functions and the relation in between. This formal language stresses that the-
The concept it uses for Specification & Reasoning-
Logic: Propositional Language, Predicated Language
Data: Sets, Relations and Functions, sequences, bags etc
The Z-schema also defines the structure of the system, it is a 2-Dimensional graphical notation for describing –
Z-Schema Conventions:
Scenario given in the assignment:
Software Methodologies
Wheat Truck Control System (WTC)
As a Software Engineering consultant, your task is to develop a formal specification in Z for the following proposed system:
Wheat Truck Control System (WTC)
A new computerized system is to be developed for the storage and handling of accounts for wheat farmers and truck deliveries to Mahsroh Wheat Board silos. Detailed below are the major objects to be considered in the system: silos, ships, trucks and farmers.
This system could be quite complicated. However, to simplify the system for this assignment we will be content to include the following in our proposed system:
The Board currently has ten (10) wheat silos around the country but the system must be written to seamlessly handle at least twice that number. Each silo has a unique name and storage capacity (in tonnes) that must be stored in the proposed system. In addition the system must maintain the current amount of wheat stored in the silo. Obviously when the silo is full no further deliveries of wheat can be made to that silo before some is off-loaded onto a ship for export overseas. Similarly a silo cannot off-load more wheat onto a ship than is currently stored. We will assume that when off -loading to a ship, no trucks can unload due to operational and safety considerations. Only one ship can be handled at a time at each silo.
We will assume that only one truck can unload into a particular silo at any one time. Therefore during busy times each silo also maintains a queue of trucks waiting to unload. Trucks should only be entered into the waiting queue when there is sufficient room for the wheat that the truck holds, i.e. you need to know that the current storage plus all the loads currently in the queue will not exceed the silos capacity.
The system will keep a record of all ships that have been registered to transport wheat overseas for the Wheat Board. The ships name, nationality and capacity (in tonnes) will be stored. The ship’s captain can specify the amount of wheat to be off-loaded into the ship as long as it is less than the ships capacity and also the silos current amount in storage. The system will keep a record of the amount of wheat off-loaded to the ship and adjust the current storage appropriately.
As each loaded truck arrives at the silo, it is weighed to ascertain the amount of wheat in the truck. The system maintains a list of registered trucks and their empty weight (in tonnes). Therefore, a single weighing is sufficient to determine the wheat load. If there is sufficient room in the silo then the wheat is off-loaded into the silo and a record is kept of the amount off-loaded against both the truck registration number and the farmer providing the wheat.
Normally we would maintain the date and time of each operation (truck delivery or ship off-loading) however to simplify this assignment we will ignore those aspects. Instead, we will keep a sequential count of each operation for each silo. Therefore, we will have a history of the order of truck unloading and ship off-loading operations that take place for each silo.
The system would be able to say for example, that silo HORSHAM_1, operation number 999 involved 25 tonne of wheat delivered by the truck registered TONKA owned by Jack Black from farmer Bob Smith. Then operation 1000 was an off-loading operation of 125,000 tonnes to the ship -Southern Aurora-.
There is also a need to keep track of the operation order between silos, therefore we will keep a global sequential count of the operations at silos as well. See the following table for an example:
Global No Silo Count Operation Vehicle Name Tonnes Farmer
12336 HORSHAM_1 999 Load TONKA 25 Smith, Bob
12337 MELBOURNE 555 Load DUPLO 20 Jones, Mark
12338 HORSHAM_1 1000 Off-Load Southern Aurora 125,000
12339 MELBOURNE 556 Load LEGGO 50 Simons, Jill
12340 HORSHAM_1 1001 Load TONKA 25 Jones, Mark
The system will maintain a record of each farmer supplying wheat to the silo. Details to be kept include the farmer’s name, address and phone number.
Z Schema Operations
You are to create a Z schema that adequately describes the WTC system. It should include at least one state space and the following operations:
You should provide robust versions of each operation that are capable of handling any possible error conditions. For example, if the ship or truck is not correctly registered in the system an appropriate error message must be given.
Pseudocode for each operation specified for Z-Schema-
Operation Init;
Start
End
Operation Enter_new_Silo;
Start
End
Operation Accept Delivery
Start
End
Operation Leave_Queue
Start
End
Start
End
Operation Ships_Total_ Account:
Start
End
Operation Farmer_Account
Start
End
Z-Schema for Wheat control Truck-
Wheat control truck System
Operation Init
Wheat Control Truck System
Name?: Init
Name ?:Select operation
Result! accept Result
Known’= known U {name ?}
{Operation Display→Not valid Operation}
Operation Enter_new_Silo
Wheat Control Truck System
Name ? : Enter_new_Silo
Outcome! New Silo Info
{ {Name of Silo : Name of Silo Name Of Silo List
Not valid Entry}
Display Status→ Silo Currently Empty
S:Silo detail Updated
Operation Accept Delivery
Wheat Control Truck System
Farmer→ Wheat Truck→ Silo
Name ? Accept Delivery
Operation Leave_Queue
Wheat Control Truck System
Wheat Truck→Queue→Silo
Name ? Leave_Queue
Outcome! Status of the Queue
References
Alexander. C, Chris F, Shalom. L, (2012), The Handbook of Computational Linguistics and Natural Language Processing, Wiley Publication
Ronald .V, (2014), Formal Language Theory: Perspectives and Open Problems, Academic Press
Shaoying. L, Zhenhua .D, (2016), Structured Object-Oriented Formal Language and Method, Springer Publication
Sommerville, (2011), Software Engineering, Pearson Publication
.Roger S. Pressman, Software Engineering-A Practitioner’s Approach, Mc Graw-Hill International Edition
David .G ,(2000), Software Engineering- Schaum’s Outlines, , Tata Mc Graw-Hill.
J.M Spivey, An Introduction to Z –Formal Language, From- www. people.csail.mit.edu (Accessed on 29 May 2016).
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Contact Essay is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download