Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave

The following course learning outcomes are assessed by completing this assessment:

Critically analyse and use complex decision making to research and determine the appropriate Software Engineering tools and methodologies to utilize in a given situation
Apply professional communication skills to support and manage the engineering of a large software system

Review, critically analyse and develop artefacts to define processes for quality assurance, risk management and communication in large software development projects.
Implement quality assurance activities in order to verify user requirements and validate design decisions
Analysis of a large system development problem to decide upon the best methodological approach
Development of appropriate artefacts to support and manage the software engineering process such as change control and configuration management.

The Z notation

Formal specifications are used to develop an abstract view of the system without going into the details of implementation (Partsch, 2012). This assists in developing a clear logic, in a precise manner, of how the system will operate. This is achieved through the employment of mathematical notations borrowed from formal logic and the set theory (Sommerville, 2013). Consequently, formal specifications reduce the development costs and ambiguity during system development (Sommerville et al., 2012).

The Z notation

The formal specification technique known as Z notation models the behavior of the proposed system. It does so by decomposing the system into small units which are known as schemas. Mathematical notations from the set theory and predicate logic are used to model the schemas (Klein, Sawicki, Roos-Frantz & Frantz, 2014). These schemas represent static and dynamic aspects of the proposed system. Static aspects are the possible states the system may be in at any given time (state space) and relationships between those states.

A typical schema consists of a title, declaration part, where variables are declared, and a predicate part. The predicate section defines conditions which must be met during operation and the relationship between variables and functions. The figure below illustrates:

The Z notations used for the library system schema include:-

? - Declares a variable x to be a subset of Y. Its syntax is x: ?Y

? - Indicates partial dependence of a variable y on a variable x. The syntax is of the form x?y

Δ – It is known as a delta and shows that the current function causes a change in system state, for example when a new item is added.

Ξ – It is known as Xi and indicates that the current function does not alter system state

∪- Indicates a union between set A and B. Technically, it represents an addition of an element to a set X in a schema

∈- Indicates that an element x is a member of a set Y. Its syntax is x∈Y

∉ - Indicates that an element x is not a member of a set Y. Its syntax is x∉ Y

? –Is used to indicate input variable x. The syntax is of the form x?:TYPE

! – Is used to indicate output variable x. The syntax is of the form x!:TYPE

The schema below depicts the initial state of the container control system whereby no data has been captured yet. In other words, the system is devoid of any data.

Container_Terminal state space

Container_Terminal

known:?NAME

container_capacity:NUMBER

tonnage_capacity:WEIGHT

capacity:container_capacity?tonnage_capacity

known=dom NAME

The schema above depicts the domain (key identifier), which is ‘NAME’ and ranges, which are the variables associated with an instance.

Enter_new_container_terminal

Enter_new_container_terminal

Δ Container_control_system

name? : NAME

container_capacity?:NUMBER

tonnage_capacity?:WEIGHT

name? ∉ NAME

NAME′ = NAME∪ {name??(container_capacity?,tonnage_capacity?}

The above schema shows that when a new container is added to a terminal the name should not already exist in the terminal relations set. Only then can the system accept the new instance and associated tuple. 

Delivery state space

delivery

known:?GLOBAL_NO

terminal : NAME

freight_company?SOURCE

quantity:NUMBER

The container control system schemas

tonnes:WEIGHT

count:INTEGER

vehicle_identifier:IDENTIFICATION

current_deliveries:INTEGER

known= dom GLOBAL_NO

The above schema depicts the deliveries domain and associated ranges. These are the key identifier (GLOBAL_NO) and the variables associated with an instance. 

Accept_delivery schema

Accept_delivery

ΔContainer_control_system

id?:GLOBAL_NO

terminal? : NAME

freight_company?: SOURCE

quantity?:NUMBER

tonnes?:WEIGHT

count?:INTEGER

truck_registration?:REGISTRATION

current_deliveries?:INTEGER

current_quantity:NUMBER

current_tonnage:WEIGHT

message!:REPORT

id? ∉ known

if current_quantity==container_capacity∨ current_tonnage==tonnage_capacity then

message= capacity_full

if( (quantity+current_quantity)>container_capacity)∨((tonnes+current_tonnage)>tonnage_capacity)

 then

message= capacity_exceeded

if current_deliveries ==5 then

message=queue_delivery

else

known′ = known ∪ { id? ? terminal??freight_company??quantity??tonnes?count

?vehicle_identifier}

Message=success

In the above schema, the delivery instance should not already exist in the system. The system first checks if the terminal’s capacity is full, in terms of either quantity or tonnage and displays an error message if the condition is met. It then checks if the terminal’s capacity will be exceeded, also in terms of either quantity or tonnage when the new delivery is added and displays an error message if the condition is met. Finally, the system checks if the delivery trucks currently being processed are five in number and queues the incoming delivery if the condition is met.

Pickup state space

pickup

known:?GLOBAL_NO

terminal: NAME

truck_registration:REGISTRATION

freight_company?DESTINATION

quantity: NUMBER

tonnes: WEIGHT

count: INTEGER

current_pickups: INTEGER

known=dom GLOBAL_NO

The schema above the domain and ranges of the pickup state space, that is, the key identifier (GLOBAL_NO) and associated variables respectively. 

Accept pickup schema

Accept_pickup

ΔContainer_control_system

id?:GLOBAL_NO

terminal? : NAME

truck_registration?:REGISTRATION

freight_company?: SOURCE

quantity?:NUMBER

tonnes?:WEIGHT

count?:INTEGER

current_pickups?:INTEGER

message!:REPORT

id∉known

if current_pickups ==5 then

message=queue_pickup

else

known′=known∪{ id??( terminal?, truck_registration?,freight_company?,quantity?, tonnes?,count?)}

Message=success

The above schema shows that when pickups currently ongoing involves five trucks, then the pending pickup is queued by the system. Otherwise, the new pick up is captured and stored and a success message displayed.

Ships state space

ships

known:?NAME

nationality: SOURCE

containers: INTEGER

tonnage: WEIGHT

known=dom NAME

The above schema depicts the ships state space with its domain (key identifier) and ranges (variables).

Unload_ship schema

Unload-ship

ΔContainer_control_system

name:NAME

terminal:NAME

quantity:INTEGER

tonnage:WEIGHT

container_capacity:INTEGER

tonnage_capacity:WEIGHT

message!:REPORT

if deliveries_ not_ finished ∧ pickups _not_ finished then

message=deliveries_and_pick_ups_not_finished

if (quantity>container_capacity) ∨ (tonnage>tonnage_capacity) then

message= capacity_exceeded 

The above schema shows that when all deliveries and pickups are not finished, no unloading should take place. Furthermore, if the containers’ quantity or tonnage exceeds the terminal's capacity the system displays an error message.

Container_terminal_account schema

Container_terminal_account

ΞContainer_control_system

total_quantity:INTEGER

total_tonnage:WEIGHT

count!:INTEGER

report!: total_quantity? total_tonnage

count! (i…n): CONTAINER|report! 

Ships-total-account

ΞContainer_control_system

total_quantity:INTEGER

total_tonnage:WEIGHT

count!:INTEGER

report!: total_quantity? total_tonnage

count! (i…n): CONTAINER|report! 

Freight-company-account

ΞContainer_control_system

total_quantity:INTEGER

total_tonnage:WEIGHT

count!:INTEGER

report!: total_quantity? total_tonnage

count! (i…n): CONTAINER|report!

Error handling schemas

REPORT ::=capacity_full|capacity_exceeded|queue_delivery|success|queue_pickup|deliveries_and_pick_ups_not_finished|incorrect_registration

capacity_full

result!:REPORT

result!=capacity_full

capacity_exceeded

result!:REPORT

result!= capacity_exceeded

queue_delivery

result!:REPORT

result!:queue_delivery

success

result!:REPORT

result!:success

queue_pickup

result!:REPORT

result!:queue_pickup

deliverie_pickups_not_finished

result!:REPORT

result!: deliverie_pickups_not_finished

incorrect_registration

result!:REPORT

result!:incorrect_registration 

Conclusion

From research findings formal specification techniques are extremely useful when it comes to engineering of large, complex systems. They are extremely useful tools in the software and industrial engineering disciplines. Research and improvements are ongoing as they continue to be more defined and developed. 

References

Klein, M. J., Sawicki, S., Roos-Frantz, F., & Frantz, R. Z. (2014, April). On the Formalisation of an Application Integration Language Using Z Notation. In ICEIS (1) (pp. 314-319).

Partsch, H. A. (2012). Specification and transformation of programs: a formal approach to software development. Springer Science & Business Media.

Sannella, D., & Tarlecki, A. (2012). Foundations of algebraic specification and formal software development. Springer Science & Business Media.

Singh, M., Sharma, A. K., & Saxena, R. (2016). Formal Transformation of UML Diagram: Use Case, Class, Sequence Diagram with Z Notation for Representing the Static and Dynamic Perspectives of System. In Proceedings of International Conference on ICT for Sustainable Development(pp. 25-38). Springer, Singapore.

Smith, G. (2012). The Object-Z specification language (Vol. 1). Springer Science & Business Media.

Smith, G. (2012). The Object-Z specification language (Vol. 1). Springer Science & Business Media.

Sommerville, I. (2013). Software Engineering: Pearson New International Edition. Pearson Education Limited.

Sommerville, I., Cliff, D., Calinescu, R., Keen, J., Kelly, T., Kwiatkowska, M., ... & Paige, R. (2012). Large-scale complex IT systems. Communications of the ACM, 55(7), 71-77.

Woodcock, J. (2014). Software engineering mathematics. CRC Press.

Cite This Work

To export a reference to this article please select a referencing stye below:

My Assignment Help. (2020). Formal Specifications Using Z Notation For System Development Essay.. Retrieved from https://myassignmenthelp.com/free-samples/itech7410-software-engineering-methodologies/formal-system-specification.html.

"Formal Specifications Using Z Notation For System Development Essay.." My Assignment Help, 2020, https://myassignmenthelp.com/free-samples/itech7410-software-engineering-methodologies/formal-system-specification.html.

My Assignment Help (2020) Formal Specifications Using Z Notation For System Development Essay. [Online]. Available from: https://myassignmenthelp.com/free-samples/itech7410-software-engineering-methodologies/formal-system-specification.html
[Accessed 04 December 2024].

My Assignment Help. 'Formal Specifications Using Z Notation For System Development Essay.' (My Assignment Help, 2020) <https://myassignmenthelp.com/free-samples/itech7410-software-engineering-methodologies/formal-system-specification.html> accessed 04 December 2024.

My Assignment Help. Formal Specifications Using Z Notation For System Development Essay. [Internet]. My Assignment Help. 2020 [cited 04 December 2024]. Available from: https://myassignmenthelp.com/free-samples/itech7410-software-engineering-methodologies/formal-system-specification.html.

Get instant help from 5000+ experts for
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing: Proofread your work by experts and improve grade at Lowest cost

loader
250 words
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Plagiarism checker
Verify originality of an essay
essay
Generate unique essays in a jiffy
Plagiarism checker
Cite sources with ease
support
close