F a c u

advertisement
Philadelphia University
Faculty of Information Technology
Lecturer
: Dr. M. Maouche
Coordinator
: Dr M. Maouche
Internal Examiner : Dr. A. Moayad
Marking Schema
Department of Software Engineering
Question1: (8 marks)
1. ‘Aggregation’: weak relationship between a whole class and its part classes. (1)
‘Composition’: strong relationship between a whole class and its part classes. (1)
2. Association; Composition; Aggregation; Inheritance (0.5 x4)
3. Actions cannot be interrupted while Activities can be interrupted. (2 x 1)
4.
Call
( 0.5 x4)
event;
Time
event;
Change
event;;
Signal
Question2: (1.5 x 2)
Question3 (9 marks):
1.
Coin event: call event and external (1)
Pass event: call event and external (1)
2.
A. pass/Alarm
- an attempt to pass through the turnstile without paying is a violation thus
it generates an Alarm and the turnstile still remains in the locked state.(2)
event
B. coin/Thank You
- an attempt to insert a coin while the turnstile is in the unlocked state
leads to the display of the message ‘Thank you - you already paid’ and the
turnstile still remains in the unlocked state. (2)
3.
A. (2 x 1)
gatestatus: GSTATUS;
GSTATUS == Locked | Unlocked
alarmstatus: ASTATUS;
ASTATUS == On | Off
B.
+ void Coin();
(0.5)
+ void Pass ();
(0.5)
- void Lock ();
(0.25)
- void Unlock ();
(0.25)
- void Set alarm (a: ASTATUS);
(0.25)
- void ThanYou ()
(0.25)
Question4: (4 marks)
Download