Question: Subject :Formal Methods, Formal Methods in Software Engineering Question 05: [Marks: 10) Formally specify the system in VDM-SL. Consider a system that records the current

Subject :Formal Methods, Formal Methods in Software EngineeringSubject :Formal Methods, Formal Methods in Software Engineering Question 05: [Marks: 10)

Question 05: [Marks: 10) Formally specify the system in VDM-SL. Consider a system that records the current mode of an industrial robot, which can either be working, idle or broken. Page 2 of 3 (a) Declare a type, Mode, for use in the specification. (b) Write the specification of the state of the system, including an initialization function that ensures that the robot is set to idle when the system first comes into existence. (c) Write specifications for the following operations: i. An operation called setMode that accepts and records a value for the mode of the robot. ii. An operation called getMode that outputs the current mode of the robot. iii. An operation called isldle that checks whether or not the robot is idle. iv. Modify the setMode operation so that the mode of a robot cannot be changed directly from broken toivate working. Go to Sett

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!