Docsity

ECE 575 Exam 1: Relations, DEVS Models, and Distributed Simulations, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 575 Exam 1
Monday, October 13, 2003
Due: Monday, 5PM, October 20, 2003
Do all questions. Open book. Use this electronic file to provide you answers. Email the result to
work to [email protected]. Work is expected to be your own, and nothing but your own.
Name _____________________________
Problems 1,2 and 3 are each worth 20. Problem 4 is worth 40.
1 . The relation,” is represented by”, between an object set {a,b,c} and a track set {T1,T2,T3} is depicted
by a table such as
object track
a T1
c T3
which means a is represented by T1, and c is represented by T3. In the following, the relation changes
dynamically as objects appear/disappear in the scene and tracks are created or dropped for representing
them.
In the following sequence, mark an x to the right of every property that applies to the relation above it.
object track
a
c T3
fully defined___ single-valued___ one-one___ onto __
object track
a T1
c T3
fully defined___ single-valued___ one-one___ onto __
object track
a T1
b T2
c T3
fully defined___ single-valued___ one-one___ onto __
object track
a
b T2
c T3
fully defined___ single-valued___ one-one___ onto __
pf3
pf4

Partial preview of the text

Download ECE 575 Exam 1: Relations, DEVS Models, and Distributed Simulations and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

ECE 575 Exam 1 Monday, October 13, 2003 Due: Monday, 5PM, October 20, 2003 Do all questions. Open book. Use this electronic file to provide you answers. Email the result to work to [email protected]. Work is expected to be your own, and nothing but your own.

Name _____________________________ Problems 1,2 and 3 are each worth 20. Problem 4 is worth 40.

  1. The relation,” by a table such as is represented by” , between an object set {a,b,c} and a track set {T1,T2,T3} is depicted

object track a T c T which means a is represented by T1, and c is represented by T3. In the following, the relation changes dynamically as objects appear/disappear in the scene and tracks are created or dropped for representing them. In the following sequence, mark an x to the right of every property that applies to the relation above it. object track a c T fully defined___ single-valued___ one-one___ onto __

object track a T c T fully defined___ single-valued___ one-one___ onto __ object track a T b T c T fully defined___ single-valued___ one-one___ onto __ object track a b T c T fully defined___ single-valued___ one-one___ onto __

object track a T b T c T fully defined___ single-valued___ one-one___ onto __

  1. A particular input free DEVS is defined by: M   X , S , Y , int , ext , con ,, taX = {} S Y (^) = {0.,1}= {a.,b}   int : SS is given by  int :(a) = b,  int :(b) = a  ext :^ Q^ ^ Xb^ ^ S^ not needed since X is empty : conS :^ Q Y^  b^^ is given by Xb^ ^ S^ not needed since X is empty (a) = 0, (b) = 1 ta : SR +0,

The first column of the following table gives different choices for requested output value, if it can be uniquely determined; otherwise leave it blank. Fill in the last column ta. Fill in the middle column with the with an explanation of your answer in the second column.

Definition of ta : Starting in state a, the output produced just before the transition at t = 2, is:

Explanation

ta (a) = 1 ta (a) = 1, ta (b) = 1 ta (a) = 0, ta (b) = 0 ta (a) = 0, ta (b) = 1 ta (a) = ∞, ta (b) = 1 ta (a) = 2, ta (b) = ∞ In the following, fill in the right hand column with true or false. Definition of ta : The pair (b,.5) is in the total state set Q ta (a) = 1 ta (a) = 1, ta (b) = 1 ta (a) = 0, ta (b) = 0 ta (a) = 0, ta (b) = 1 ta (a) = ∞, ta (b) = 1 ta (a) = 2, ta (b) = ∞

  1. By hitting the delete key, the user intends to delete the highlighted file in a folder. Hitting the delete key is an external event for a DEVS model. The first time this event occurs, the computer issues a warning.

c) It ignores subsequent inputs unless and until it encounters one whose absolute difference from the stored A quantizer has the following behavior: it stores and immediately outputs the first input that it receives. value exceeds a positive value, called the quantum. When this happens, the new input replaces the old stored value and is output with a zero delay.

    1. Formalize the quantizer as basic DEVS model.Implement the formal model in DEVSJAVA – include test inputs to verify the implementation..

e) Extend your DEVSJAVA coupled model in b), so that the output of the generator is fed to the quantizer with quantum = 0.1 whose output feeds the display processor. Also couple the quantizer’s output to the transducer’s input. f) With w = 1, run your coupled model long enough so that the transducer gives a good estimate for the bandwidth consumed by sending the quantized output across the network to the processor. Repeat with w = .1, .01, and .001 to obtain a table which for each value w gives the bandwidth consumed. Discuss any trend you see in the table. g) What effect does placing the quantizer in between the generator and processor have on the display? Suggest a way that this problem can be ameliorated.

**Extra credit: implement your proposed solution in DEVSJAVA and verify that it solves the problem.