


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 the ece 575 course focusing on c++, standard template library (stl), and discrete event system specification (devs) modeling. The examination covers topics such as class instantiation, virtual functions, destructors, stl iterators, and representing edge sets. It also includes questions on devs modeling, atomic devs 7-tuple, and drawing state transition diagrams.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Monday, October 16, 2006 Name: Answers
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) X={?r1:0, ?r1:1, ?r2:0, ?r2:1} Y={!s1, !s2} S={toM1, M1, toM2, M2} ta(toM1)=2; ta(M1)=; ta(toM2)=2; ta(M2)= ; ext(M2, te, ?r2:1)=toM1; ext(M1, te, ?r1:1)=toM2 where 0 ≤te≤; ext(toM1)=M1; ext(toM2)= M2; (toM1)=!s1; (toM1)=!s2; X, Y, S: 4 pts Four characteristic functions: 4 * 4 pts= 16 pts.
te (elapsed time)
ts=ta(s) (scheduled time span) inf 1.0 inf tL (last updating schedule time)
tN (next schedule time) inf 2.4 inf tr (remaining time to schedule time) inf 0.4 inf (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,2.2,inf),(Table:Pong,1.0,1.0),(B:wait,1.0,inf) --({!Table.opA, ?A.receive},2.4)--> (A:send,0.0,0.2),(Table:Idle,0.0,inf),(B:wait,1.0,inf)
!send ?receive
!send ?receive
!send ?receive
?receive !send
Ping, 1. Pong, 1. ?ipA !opB !opA ?ipB ?ipA ?ipB !opB !opA