


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The fall 2006 midterm examination for ece 575, covering topics in c++, standard template library (stl), and devs modeling. The examination includes multiple-choice questions and problems related to class instantiation, virtual functions, destructors, stl iterators, and devs modeling of a traffic light system.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Monday, October 16, 2006 Name: _______________________________
Figure 1. A Graph
?r !s ?r !s MC
!g1 !a1 !r !g (^) !a !r ?s ?s M !r2 !a2 !g !r !a !g (b) (c) (a) !s !s !s !s ?r1: ?r2:
toM1: M1:inf toM2: M2:inf ?r:{0,1} ?r:{0,1} Figure 2. Intersection Traffic Lights (a) MC is a controller to circulate activation between two modules: M1 and M2. The state transition of MC is shown in Figure 2(c) in which inf means . Write atomic DEVS 7-tuple of Figure 2(c) as MC=< X, Y, S, ta, ext, ,int, > (20 pts)
te (elapsed time)
ts=ta(s) (scheduled time span) inf 1.0 inf tL (last updating schedule time) tN (next schedule time) tr (remaining time to schedule time) (b) Fill out all the blanks of the transition at time = 2.4 , which is printed out by ODEVS. (28 pts = 14 * 2pt) (A:wait,______,inf),(Table:Pong,______,1.0),(B:wait,______,inf) --({______________,______________},2.4)--> (A:_______,______,______),(Table:_______,______,______),(B:_______,______,______)
!send ?receive
!send ?receive
!send ?receive
?receive !send
Ping, 1. Pong, 1. ?ipA !opB !opA ?ipB ?ipA ?ipB !opB !opA