Академический Документы
Профессиональный Документы
Культура Документы
Design Patterns Lab Lab Manual [Subject Code] I M Tech II Semester [Branch: IT]
+ + + + + +
D, LA(
0ead IT
)nhancement if any+
*omment%+
INDEX
'1 #o 1 2 3
*ontent% Lab Objective Introduction About Lab Guidelines to Students List of Lab Exercises 4.1 Syllabus ro!ra"s #$%&'( 4.2 Additional and Advanced ro!ra"s 1.*escri+tion about ',L
) . /
2. *escri+tion about * Solutions for ro!ra"s Solutions for Additional ro!ra"s 0eferences
LAB OBJECTIVE
Overview Object ModelUML Basic Model Advanced Models Class & Object Collaboration Sequence Use Cases Advanced Modeling Component Diagram Deplo ment Diagrams
This is 9ery "se "l beca"se st"dents can sa9e their #or0 ( scenarios;4 pl<sql pro!rams4 data related pro=ects 4etc) in their o#n acco"nts. :ach st"dent #or0 is sa e and sec"re rom other st"dents. Latest Technolo!ies li0e D-T #)T and "2)) are installed in some systems. /e ore s"bmittin! their inal pro=ect4 they can start doin! mini pro=ect rom 2nd year on#ards. MA'M Macro A%%embler & is installed in all the systems 5t"dents can e8ec"te their assembly lan!"a!e pro!rams "sin! &%5&. &%5& is 9ery "se "l st"dents beca"se #hen they e8ec"te their pro!rams they can see contents o Processor .egi%ter% and ho# each in%truction is bein! e8ec"ted in the *,$. -ational -ose 5o t#are is installed in some systems >sin! this so t#are4 st"dents can depict >&L dia!rams o their pro=ects. 5o t#ares installed$ C4 C??4 @'A1..4 &%5&4 2BBIC:C7P4 @2:: and '2T 3:T4 -ational -ose. 'y%tem% are pro2ided for %tudent% in the 3+3 ratio1 'y%tem% are a%%igned number% and %ame %y%tem i% allotted for %tudent% !hen they do the lab1
*escri+tion about *
:ach pattern describes a problem #hich occ"rs o9er and o9er a!ain in o"r en9ironment4 and then describes the core o the sol"tion to that problem4 in s"ch a #ay that yo" can "se this sol"tion a million times o9er4 #itho"t e9er doin! it the same #ay t#iceD E A design pattern F Is a common sol"tion to a rec"rrin! problem in desi!n F F %bstracts a rec"rrin! desi!n str"ct"re Comprises class and<or ob=ect E 'ependencies
E E E F E
A design pattern has 4 basic parts: F F F F 1. 3ame 2. Problem 3. 5ol"tion 4. Conseq"ences and tradeCo s o application
E E E E
Lan!"a!eC and implementationCindependent % DmicroCarchitect"reH %d="nct to e8istin! methodolo!ies (>ni ied4 2&T4 etc.) 3o mechanical application F !a"s The sol"tion needs to be translated into concrete terms in the application conte8t by the de9eloper
Codi y !ood desi!n F 'istil and disseminate e8perience F F %id to no9ices and e8perts ali0e %bstract ho# to thin0 abo"t desi!n
*i9e desi!n str"ct"res e8plicit names F F F Common 9ocab"lary -ed"ced comple8ity *reater e8pressi9eness
F F E
The >ni ied &odelin! Lan!"a!e (>&L) is a !raphical lan!"a!e or 9is"ali,in!4 speci! ing" constructing" and documenting t#e arti!acts o! a so!tware$intensive s stem% The >&L o ers a standard #ay to #rite a systemIs bl"eprints4 incl"din! concept"al t#ings suc# as business processes and s stem !unctions as well as concrete t#ings suc# as programming language statements" database sc#emas" and reusable so!tware components%& The important point to note here is that >&L is a Ilan!"a!eI or speci yin! and not a method or proced"re. The >&L is "sed to de ine a so t#are systemJ to detail the arti acts in the system4 to doc"ment and constr"ct C it is the lan!"a!e that the bl"eprint is #ritten in. The >&L may be "sed in a 9ariety o #ays to s"pport a so t#are de9elopment methodolo!y. % modelin! lan!"a!e or speci yin!4 9is"ali,in!4 constr"ctin!4 and doc"mentin! >sed to deri9e or e9ol9e a system &eans to capt"re and comm"nicate a 0no#led!e abo"t a system Boc"ses on "nderstandin! a s"b=ect 9ia creatin! a model It "ni ies the lan!"a!e o comm"nication abo"t a system >ses 9is"ali,ation Can be "sed as a Ibl"eprintI o a system Can be "sed thro"!h o"t the li ecycle o the system $ML i% NOT
% 9is"al pro!rammin! lan!"a!e4 b"t a 9is"al modelin! lan!"a!e % tool or repository speci ication4 b"t a modelin! lan!"a!e speci ication % process4 b"t enables processes >&L is a !eneral p"rpose4 broadly applicable4 toolCs"pported4 (ind"stry standardi,ed) modelin! lan!"a!e
$here does #ML fit%
>&L at its #idest ormali,es the notion o concepts and de ines a lan!"a!e o speci yin! modes
>&L ormali,es "ses the abo9e le9el to ormali,e the paradi!m concepts (22) >&L ormali,es the modelin! o classes or types >&L ormali,es the modelin! o ob=ects or instances
*ers%ectives de ine a %articular %oint o view Dichotomies de ine how something can #e viewed rom di erent %ers%ectives and discover inconsistencies within models +a!ers o a#straction de ine a %articular level o a#straction and esta#lish the level o detail, ena#les ocused communication, used or organi'ation o models )-tension mechanisms de ine the means o customi'ing and e-tending the UM+
11
(nne-ure - .
Inde) Page
S* o* Date Program + ,)periment Page o* Sign + !emar-s
11
Inde) Page
S* o* Date Program + ,)periment Page o* Sign + !emar-s
(nne-ure - .
12
13
'1 #o
1. 2. 3. 4. .. 6. ). K. L. 11. 11. 12. 13. 14. 1.. 16. 1). 1K. 1L. 21. 21. 22. 23. 24. 2.. 26. 2). 2K. 2L. 31. 31. 33. 34. 3.. 36. 3). 3K.
,rogram%
>se case 'ia!ram or Librarian 5cenario >sin! >&L desi!n %bstract actory desi!n pattern >sin! >&L desi!n %dapterCclass 'esi!n pattern >sin! >&L desi!n %dapterCob=ect 'esi!n pattern >sin! >&L desi!n 5trate!y 'esi!n pattern >sin! >&L desi!n /"ilder 'esi!n pattern >sin! >&L desi!n /rid!e 'esi!n pattern >sin! >&L desi!n 'ecorator 'esi!n pattern >ser !i9es a print command rom a #ord doc"ment. 'esi!n to represent this chain o responsibility 'esi!n pattern 'esi!n a Bly#ei!ht 'esi!n pattern >sin! >&L desi!n Bacade 'esi!n pattern >sin! >&L desi!n Iterator 'esi!n pattern >sin! >&L desi!n &ediator 'esi!n pattern >sin! >&L desi!n Pro8y 'esi!n pattern >sin! >&L desi!n Misitor 'esi!n pattern
14
1.
16
1)
1K
1L
21
21
22
23
24
2.
26
2)
2K
2L