Purpose: practice describing a reactive system using higher order statecharts
Keep track of how much time you spend on this assignment. You will submit your answers as a pdf file at the end of the homework.
NO LATE DAYS ALLOWED ON THIS ASSIGNMENT.
Consider the following intersection (and the figure below):
Write a statechart specification of the traffic light and the crossing gates. Be sure to include those cases where the crossing gate may be moving. For full credit you must use the higher-order features of statecharts such as orthogonal substates and depth.
You may draw your statechart neatly by hand and scan it, or use a drawing programming such as Visio or OmniGraffle to create the diagram.