Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 05: Marks: 101 Formally specify the system in VDM-SL. Consider a system that records the current mode of an industrial robot, which can either
Question 05: Marks: 101 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. An operation called gerMode that outputs the current mode of the robot. An operation called isidle that checks whether or not the robot is idle. iv. Modify the set Mode operation so that the mode of a robot cannot be changed directly from broken to working
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started