Create a z schema that adequately describes the wtc system

Assignment Help Software Engineering
Reference no: EM13831343

Software Methodologies

Assignment 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:

Silos

The Board currently has ten 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 offloaded 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.

Ships

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.

Trucks

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.

Date and Time

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
...

Farmers

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:

• An initialization operation called Init.

• An operation Enter_new_silo that an operator uses to enter the details of a new silo into the system. Assume the new silo is currently empty.

• An operation Accept_delivery that an operator uses to signal the system to begin off-loading x tonne of wheat from a truck. Note that the system must do a check to see if that storage capacity is available in the silo, if not then an error message must be output and no truck unloading done. Additional information needed by this routine is the truck registration and the farmer's name. If successful this operation stores all necessary details into the system for that delivery. If a truck is already unloading then this new truck will be placed in a queue waiting for its turn to unload.

• An operation Leave_queue. This operation is run by the system operator each time there is a queue for a silo and the driver of a specified truck decides that the anticipated waiting time is too long and leaves the queue. The operation outputs to the operator the list of trucks in the queue after the specified truck is removed or if none in the queue a reasonable error message.

• An operation Silo_account that outputs the total amount of wheat in tonnes delivered to a particular silo by ALL farmers in a specified time period (note that means between two global operations numbers in our simplified system). In other words between global operations 10000 and 10500 for example.

• An operation Ships_total_account that outputs the total amount of wheat that a particular ship has taken from ALL silos in the total history of the system.

• An operation Farmers_account that outputs the total amount of wheat delivered to ALL silos in between two specified global operation numbers (e.g. 10000 and 10500).

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.

3. Criteria

The submissions will be considered for presentation, conciseness and correctness (both logically and notationally). Versions of the operations that are developed using the Z Schema Calculus will be more highly considered than monolithic versions that account for all conditions within a single schema. You should also add a narrative to explain any schemas or logic that you have used. Authorship should be made clear.
You might be asked to explain and answer questions about your work.

You are required to produce an abstract formal specification of the system.

4. Reading Materials

Up to Section 1.3 of Chapter 1 from https://www.rose-hulman.edu/class/cs/cs415/zrm.pdf Sections 21.5, 21.6 and 21.7 from Pressman 7th Ed.

Introduction to Z Notation - https://www.youtube.com/watch?v=qfEe9luJmVE

5. General Comments

The submission must be presented in a professional, clear and concise manner. If you need further system information please use your initiative and make reasonable and logical assumptions. Questions of a general nature (for example to clarify some part of the assignment requirements) can also be sent to the discussion forums, note these should not in any way give solutions or parts thereof. Similarly you are encouraged to ask questions about the Z specification language, it is not simple and no students will have encountered it before.

Reference no: EM13831343

Questions Cloud

Discussion of prothero and his vision of studying : Think back to our discussion of Prothero and his vision of studying religious traditions (multiple mountain metaphor). Tell me one way that Prothero and Portier are similar in how they seem to understand religions, and one way that they are differ..
The impact of chronic illness : Compile a report of your interview with the questions you created, the responses you received, your analysis, and your interpretation of how it will affect planning care for the group in a 4- to 5-page Microsoft Word document.
Problem regarding the cumpact convergence : Let (X, d) be a metric space. If A C X and c z 0, let U(A, E) be the E- neighborhood of A. Let 3t' be the collcction of all (nonempty) closed, bounded subsets of X. If A, B E X, define D(A, B) = inf(~ 1 A C U(B, E) and B C U(A, 6)).
Pricing strategy be to maximize profits : You are the manager of a hamburger joint with a marginal cost of $6.00 per hamburger. The hamburger joint is a local monopoly near campus. During the day, only students eat at the joint while in the evening only the faculty members eat there. If stud..
Create a z schema that adequately describes the wtc system : 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.
Aggregate supply right : Which of the following shifts the short-run, but not the long-run, aggregate supply right?
Problem regarding the dimension theorem : Let V and W be vector spaces and T: V --> W be linear. Suppose that T is one-to-one and that S is a subset of V. Prove that S is linearly independent if and only if T(S) is linearly independent.
Transition from a higher energy shell : An electron would not be able to transition from a higher energy shell to a lower energy shell when: A- the shape of the shell is non-spherical B- the atom is a heavy isotope C- the shell contains 2n2 electrons D- the shell has two sets of paired ele..
What are the effects of this decrease in wealth : Suppose a stock market crash makes people feel poorer. What are the effects of this decrease in wealth?

Reviews

Write a Review

 

Software Engineering Questions & Answers

  Comprise a discussion of the information-gathering methods

write a 1400- to 2100-word paper that analyzes a work-related project using systems analysis for a selected business

  The president of a company that manufactures car seats has

the president of a company that manufactures car seats has been concerned about the number and cost of machine

  Describe who the systems intended users

Describe who the system's intended users are and why they will use this software, i.e. indicate the stakeholders and their motives.

  Drawing diagram of payroll edi system

Draw diagram of the proposed payroll EDI and EFT system. It is suggested for students to utilize Microsoft Visio to draw the diagram.

  Write a computer program to simulate the traffic

Need to do the Requirements, Product specification, Software management plan and review minutes and time log for the project. I've attached the outline for all these phases.

  Design and development phases of software development

Discuss efforts that can be done at design and development phases of software development which pay dividends later in software maintenance, that is, improve the ability to maintain.

  Draw erd to show attributes of student

Draw and ERD for this situation. What attribute or attributes did you designate as the identifier for the STUDENT entity? Why?

  How artificial intelligence traits incorporated into system

Explain how an expert system is created from utilising the knowledge base and including AI traits.

  Use the blue button feature to export their phr

In this assignment, you will interact with My Healthe-Vet after setting up an account to illustrate functionality.

  Short notes on risk response, and recovery

A videogame development company recently hired you as an Information Security Engineer. After viewing a growing number of reports detailing malicious activity, the CIO requested that you draft a report in which you identify potential malicious att..

  Sketch flowchart to print average for student

Sketch a flowchart to print average for each student in class.Input. Input consists of student records each containing student's name(STUDENT-NAME), score for first test(TEST), score for second test(TEST2), and score for third test(TEST3).

  Study the following filenames which contain wildcards

Give three examples of filenames that would match each of the following wildcard patterns.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd