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 Engineering
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
Get step-by-step solutions from verified subject matter experts
