13.07.2015 Views

Modeling Software Architectures in the Unified Modeling Language

Modeling Software Architectures in the Unified Modeling Language

Modeling Software Architectures in the Unified Modeling Language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Model<strong>in</strong>g</strong> <strong>Software</strong> <strong>Architectures</strong> <strong>in</strong> UML • 17received messages PrefSet may generate RemoveExclSet xorRequestWithdrawal xor MarkMtg;received messages ExclSet may generate AddPrefDatesxor RemoveExclSet xor RequestWithdrawal xor MarkMtg;received messages EquipReqts may generate AddPrefDates xorRemoveExclSet xor RequestWithdrawal xor MarkMtg;received messages LocPref always generate null;end Meet<strong>in</strong>gInitiator;The Attendee and ImportantAttendee components receive meet<strong>in</strong>g schedul<strong>in</strong>grequests from <strong>the</strong> Initiator and notify it of <strong>the</strong> appropriate <strong>in</strong>formation. Thetwo types of components only communicate with o<strong>the</strong>r parts of <strong>the</strong> architecturethrough <strong>the</strong>ir bottom ports.component Attendee is<strong>in</strong>terfacebottom doma<strong>in</strong> isoutPrefSet (p : date rng);ExclSet (e : date rng);EquipReqts (eq : equip type);<strong>in</strong>GetPrefSet ();GetExclSet ();GetEquipReqts ();RemoveExclSet ();RequestWithdrawal ();AddPrefDates ();MarkMtg (d : date; l:loctype);behaviorreceived messages GetPrefSet always generate PrefSet;received messages AddPrefDates always generate PrefSet;received messages GetExclSet always generate ExclSet;received messages GetEquipReqts always generate EquipReqts;received messages RemoveExclSet always generate ExclSet;received messages RequestWithdrawal always generate null;received messages MarkMtg always generate null;end Attendee;ImportantAttendee is a specialization of <strong>the</strong> Attendee component: It duplicatesall of Attendee’s functionality and adds specification of meet<strong>in</strong>g locationpreferences. ImportantAttendee is thus specified as a subtype of Attendee thatpreserves its <strong>in</strong>terface and behavior (though it can implement that behavior <strong>in</strong>a new manner).component ImportantAttendee is subtype Attendee (<strong>in</strong>t and beh)<strong>in</strong>terfacebottom doma<strong>in</strong> isoutLocPrefs (l : loc type);<strong>in</strong>GetLocPrefs ();behaviorreceived messages GetLocPrefs always generate LocPrefs;end ImportantAttendee;ACM Transactions on <strong>Software</strong> Eng<strong>in</strong>eer<strong>in</strong>g and Methodology, Vol. 11, No. 1, January 2002.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!