Docsity

Cse vii object oriented modeling and design [10cs71] notes, Study notes of Object Oriented Analysis and Design

Toggle sidebar
bg1
ngiseD dna gniledoM detneirO tcejbO 17SC01
TIBJS ,ESC fo .tpeD egaP 1
GNISED DNA GNILEDOM DETNEIRO TCEJBO
:edoC tcejbuS 1 17SC0 52 : skraM .A.I
40 : keeW/sruoH 30 :sruoH maxE
25 : sruoH latoT maxE 001 :skraM
TRAP- A
TINU - 1 sruoH 7
:GNILEDOM SSALC ,STPECNOC GNILEDOM ,NOITCUDORTNI si tahW
ssenlufesu rof ecnedivE ;semeht OO ?tnempoleved OO si tahW ?noitatneirO tcejbO
.yrotsih gniledom OO ;tnempoleved OO fo :euqinhceT ngiseD sa gniledoM
.sledom eerht ehT ;noitcartsba ;gniledoM ssalc dna tcejbO :gniledoM ssalC
elpmas A ;ecnatirehni dna noitazilareneG ;stpecnoc snoitaicossa dna kniL ;stpecnoc
.spit lacitcarP ;sledom ssalc fo noitagivaN ;ledom ssalc
TINU - 2 sruoH 6
C DECNAVDA :GNILEDOM ETATS ,GNILEDOM SSAL dna tcejbo decnavdA
N ;sdne noitaicossA ;stpecnoc ssalc - ;sessalc tcartsbA ;noitagerggA ;snoitaicossa yra
;segakcaP ;atad devireD ;stniartsnoC ;noitacifieR ;atadateM ;ecnatirehni elpitluM
.spit lacitcarP stnevE :gniledoM etatS etatS ;snoitidnoC dna snoitisnarT ,setatS ,
.spit lacitcarP ;roivaheb margaid etatS ;smargaid
TINU - 3 sruoH 6
:GNILEDOM NOITCARETNI ,GNILEDOM ETATS DECNAVDA decnavdA
;noitazilareneg langiS ;setats detseN ;smargaid etats detseN :gniledoM etatS
lacitcarP ;sledom etats dna ssalc fo noitaleR ;ledom etats elpmas A ;ycnerrucnoC
esU .sledom ytivitcA ;sledom ecneuqeS ;sledom esac esU :gniledoM noitcaretnI .spit
ytivitca rof stcurtsnoc laicepS ;sledom ecneuqes larudecorP ;spihsnoitaler esac
.sledom
U TIN - 4 sruoH 7
:SISYLANA NIAMOD ,NOITPECNOC METSYS ,WEIVREVO SSECORP
metsyS .elcyc efil tnempoleveD ;segats tnempoleveD :weivrevO ssecorP
melborp a gniraperP ;tpecnoc a gnitarobalE ;tpecnoc metsys a gnisiveD :noitpecnoC
ylanA niamoD .tnemetats niamoD ;ledom ssalc niamoD ;sisylana fo weivrevO :sis
.sisylana eht gnitaretI ;ledom noitcaretni niamoD ;ledom etats
TRAP- B
TINU - 5 sruoH 7
:NGISED METSYS ,SISYLANA NOITACILPPA :sisylanA noitacilppA
ledom noitcaretni noitacilppA ;ledom etats noitacilppA ;ledom ssalc noitacilppA ;
a gnikaM ;ecnamrofrep gnitamitsE ;ngised metsys fo weivrevO .snoitarepo gniddA
bus ot ni metsys a gnikaerB ;nalp esuer - noitacollA ;ycnerrucnoc gniyfitnedI ;smetsys
bus fo - arots atad fo tnemeganaM ;smetsys a gnisoohC ;secruoser labolg gnildnaH ;eg
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Cse vii object oriented modeling and design [10cs71] notes and more Study notes Object Oriented Analysis and Design in PDF only on Docsity!

OBJECTORIENTEDMODELINGANDDESIN G

SHu (^) o bujresc/tWCeoekde :: 10 04 C S (^71) EI.xAa.mMaHrkosurs:: 0235

PA R T- A To^ tal Hours :^52 Ex^ am Marks:^100 UN I T- 1 7 Hours I O N (^) b T je R ct O O D r U ie C nt T at I i O on N? , W M h O at D is EL O I O N d G ev C el O op N m C e E n P t? T O S O ,C th L e A m S e S s; M Ev O id D en E c L e I f N or G u : sWefuhlantesis s oMf (^) o dOeOlingd;evaeblostprmacetniotn;;OTOhemtohdreeelingmohdiesltso .ryC .laMssodMeliondgeliansg:DOesbijgenctTaencdhnicqluases: ccolanscsemptos;deLli;nNkaavnigdaatisosnocoifatciloanssscmoondceelpst;sP;rGacentiecraalltiizpast .ionandinheritance;Asampl e UN I T- 2 6 Hours A cl D (^) as V s A co N n C ce E p D ts; C A L s A (^) so S c S ia M tio O n D en E d L s; IN N G - a , ry ST as A so T c E ia M tio O ns D ; E A L g I g N re G ga : tiAodnv;aAnbcsetdraocbtjcelcatsasensd; MPr uaclttiipclaelitniphse .ritSat nactee;MMoedtealdinatga:;ERveeifnitcsa,tiSotna;teCs,onTsrtaranisnittiso;nDsearinvdedCodnatdai;tioPnasc;kaSgteatse ; diagrams;Statediagrambehavior;Practicaltips. UN I T- 3 6 Hours A St D (^) at V e A M NC od E e D lin S g: TA N T e E ste M d O st D at E e LI d N ia G gr , a I m N s T ; E N R e A st C ed TI s O ta N tes M ; O S D ig E na L l IN g G en : eAradlivzaanticoend ; Ctiposn.cIunrtreernaccyti;onAMsaomdeplliengs:taUtesemcoasdeelm;oRdeellast;ioSneqoufenclcaessmaonddelss;taAtectmivoitdyemls;odPerlasc.tUicsa e l cmaosedelrse .lationships; Procedural sequence models; Special constructs for activit y U NI T- 4 7 Hours P P R ro O ce C ss ES O S v O er V vi E ew R : VIE D W ev , elo S p Y m S e T n E t M sta C g O es N ; CE D P ev T e I l O op N m , en D t OM lif A e IN cy A cl N e. AL S Y ys S t I e S m : Cst oatnecmepetniot.nD:DomevaiisninAgnaals yyssitse:mOcvoenrvceiepwt;Eolfaabnoaralytisnigs;aDcoomncaeinpt;clParsespamriondgela;pDroobmlea min statemodel;Domaininteractionmodel;Iteratingtheanalysis. PA R T- B UN I T- 5 7 Hours A A P (^) p p P l L ic I a C ti A on TI in O t N erac A ti N on AL m Y o S d I e S l; , A S p Y p S l T ic E at M ion D c E la S ss IG m N o : del; ApAplpicpaltiicoantiosntatAenmaloydsiesl:; Are dudseinpglaonp;eBrarteioaknisn.gOavseyrvstieemwionftsoyssute bm- sydsetseimgns;;IEdsetnimtifaytiinnggcpoenrfcourrmreannccye;;AMllaokciantgion a of su b- sy stems;Managementofdatastorage;Handlingglobalresources;Choosinga

spo (^) rifotwriatirees;cConotmromlosntraatrecghyit;ecHtuarnadllisntgylebs;ouAnrdcahriytecctounreditoiofntsh;eSAetTtiMngsythsetemtraads e-t ohf ef example. UN I T- 6 7 Hours C Cl L (^) a A ss SS De D si E g S n: IG O N ve , r I v M iew P L o E f M c E la N ss T d A e T si I g O n N ; B M rid O g D in E g L t I h N e G g , a L p; E R G e A al C iz Y ing SY u S se TE ca M se S s : ; DRe eisfiigcnaitniognaolfgboerihthamvios;r;RAedcjuursstimngentdoowfinnwhearridtas,ncRe;efOacrgtoarniinzgin; gDaecsilgasnsdoepstiimgni;zaAtiToMn ; ecx (^) l aasmsepsl;e.FIimn ep-l teumnienngtatigoennerMaloizdaetliionngs:; ORveearlviizeiwngoafssiomcpialetimonesn;tatTioens;tinFgi.n e-L tuegnaincgy Smy o sdteeml;sB:uRiledvinegrsetheensgtainteeemriondge;l;BRueilvdeirnsgetehnegicnleaesrsinmgotdipesl;s;WBruaiplpdiinngg;tMheaiinntteenraanctcieo. n UN I T- 7 6 Hours D ca E (^) te S g I o G ri N es; P R A e T la T ti E on R s N hi S ps – b (^) e (^1) t : (^) wWeehnaptaitstearnps;atPteartnterannddewschraipttimona .kesapattern?Pattern CSuo (^) bmsmcruibneir c .at ionPatterns:Forwarder- Re ceiver;Client-D i spatcher- Se rver;Publisher- UN I T- 8 6 Hours D V E (^) i e S w IG h N and P l A er T. T Id E io R m N s S :I – n (^) t (^2) r , (^) o I d D uc I t O io M n; S W : MhaatnacgaenmideniotmPsattperronvsi:dCe?omIdmioamndsparnodce sstsyoler;; Wheretofindidioms;CountedPointerexample. TEXTBOOKS : T 1. ex M t i B c o h o ae k l s : Blaha,JamesRumbaugh:Objec t- Or iented ModelingandDesignwith U 2. M (^) FLra,n (^2) knd^ BEud (^) sicthiomna,nPne,arRsoengiEneduMcaetuionnie, r (^2) , 0 H (^05) a.n(sCRhaophtneersrt (^1) ,Ptoet (^1) e (^7) r,S (^2) o (^3) m)merlad,Michael SWt ai lle:yPaatntedrS no- Onsr i,e 2 n 0 te 0 d 7 .S(oCfhtwapatreersA 1 r,ch 3 i.t 5 e,c 3 tu. 6 r,e, 4 A) SystemofPatterns,Volume 1 ,John

R 1. ef G e r r a e d n y ce B B o o o o ch ks e : tal:Objec t- Or ientedAnalysisandDesignwithA pp lications, 3 rd E 2. ditBiornah,mPeaarsDoanthEadnu,caStaiornn,at (^2) h (^00) R 7 .amnath: Objec t- Oriented Analysis, Design, and I 3 m. pHlaenm se- EntraiktioEnr,ikUsnsoivne,rsMitaiegsnPusrePsse,n (^2) k (^0) e (^0) r, (^9) B .rianLyons,DavidFado:UML 2 Toolkit, W 4. i lSei ym- Donr eaBmetnencehttI,ndSitae,v (^2) e (^00) M 4 .cRobb and Ray Farmer: Objec t- Oriented Systems An alysisandDesignUsingUML, 2 nd^ Ed ition,TataMc Graw- Hill, 2002.

Un it 1 : INTRODUCTION, MODELING CONCEPTS, CLASS

MODELING :

Sy llabu s -- - 7 hr

  • • WWhh aattiissoobo jedcetvoerlioepnmtaetinotn??
  • • OEv o (^) idtheenmceesforusefulnessofoo development
  • • OMo (^) odmeolidneglinghistory
  • • ATbhsetrtraecetiomnodels
  • • OLibnjkecatnsdaansdscolcaisastiocnonccoenpctespts
  • • GAesnaemraplliezactliaosnsamndodinehleritance
  • • NParavcigtiacatiolntiposfclassmodels

INN (^) oTteR 1 O :D UCTION Ianp tpelnytioonbjeocf tth- oisriesnutbejdeccto(nocbejpetcsttooriaenlltetdhemsotadgeelisngofatnhdedseosfitgwna)reisdteoveleloaprnmehnotwlitf oe c N y o c t l e e. 2 : O m b (^) o d je e c l s t- o o r (^) r i g e a n n t i e z d ed m a o r d o e u l n in d g re a a n l d w d o e r s l i d gn cois (^) ncaepwtsa.yTohfethfiunnkdinagmeanbtoaultcpornosbtlreumctsiussitnhge o W bj H ec A t, T w I h S ic O h B co J m EC bi T ne O s R bo I t E h N d T at A a T st I r O uc N tu? reandbehavior. �(t h  D a e (^) t f i i n n c i o ti r o p n o : raOteObmotehadnasttahsattruwcetuorregaanndizbeeshoafvtwioarr)e. asacollectionofdiscreteobjects �IdT (^) enhteirtey .arefou r as pects(characteristics) requiredbyanOOapproacho x x CInlhaessriiftaicnacteio.n.

�  Ide^ x n^ t P it o^ y l : ymorphism. calle^ xd^ o I b d^ j e ec n t t s i. ty meansthatdataisquantizedintodiscrete,distinguishableentities x E. g.forobjects: personalcomputer,bicycle,queeninchessetc.

as s^ xc^ heOdubljienc gtspcoalnicbyeincoancmreutelti(psruocchesassinagfiOleSi)n. aEafcilheosybsjetecmt)haosrcitosnocewpntuianlh(esruecnht id en xti tyI.n(ip.erotwgroamobmjeinctgslaarn egduiasgtiensc,taenvoenbjiefcatlilstrheefierraetntrciebdutbeyvaaluuneisquareehiadnednlteic.al). � x  Cl (^) Casl assifsiicfaictaiotino:n meansthatobjectswiththesamedatastructure(attribute)and be ha xv ioE r.(go.ppeararatigornasp)ha,rmeognroituopr,ecdhienstsopaiecclaes.s. x x EFai gchbeolbojwecsthisowsasidobtojebcetsaannidnsctlaanscseeso:fEitaschclacslass.sdescribesapossiblyinfinite setofindividualobjects.

Inhe x r ita It n i c s e : thesharingofattributesandoperations(features)amongclassesbased ore n (^) fia nehiaenrdareclhaibcoar larteel.ationship.Asuperclasshasgeneralinformationthatsubclasses x� (^)  Po E l. y g m .S o c r r p o h ll i i s n m g : windowandfixedwindowaresubclassesofwindow.

diffe^ xr^ en P t o^ c l l y as m se o s r. phism meansthatthesame operationmaybehavedifferentlyfor ach^ xe^ ssFgo^ armEe. .g.moveoperationbehavesdifferentlyforapawnthanforthequeenin

syst^ xe^ m .�^ Do^ mainModel -^ a^ descriptionofrealworldobjectsreflectedwithinthe th at^ xa^ r e�v^ is A ib p^ l p e li to ca t t h i e on us M er o. del -^ adescriptionofpartsoftheapplicationsystemitself x x ED. (^) o gm.Ianincaosbejeocftsstmocakybirnockluedrea-p sptloiccakt,iobno-nd,trade&commission.

resu^ xlt^ s .Applicationobjects might controltheexecution oftradesand present the Sy st^ xe^ m S A y^ s r t c e h m ite D ct e u s r i e g - n : fo Trh^ seoldveivneglotphmeeanptptleicaamtisondepvrisoeblaemh.igTh-h^ lee^ vseylsstetrmatedgeys-i^ gTnheer sah (^) t toauclkdindgetchiedeprwobhlae tmp,earnfdormmaakn ecetencthaatrivaectreersisotuicrcsetaolloocpatitmioinzse.,chose a strategy of

ac co^ xr^ da C nc l^ a e ss wi D th es t i h g e n: sy Tshteemcldaesssigdnessitgranteergya.ddHsisdfeotaciulssitsotthheedaantaalysstriuscmtuoredselanind al go xr ith I m m s p n l e e e m d e e n d t t a o ti i o m n p : lemImepnl teemaechntcelrasss.translate the classes and relationships dhe (^) a vrdewloapreed.d Duruir ni gngclaismspdleemsigenntaintitoona, piatrtiicsuliamrpporortgarnatmmtoingfollalonwguaggoe,oddatasobfatsweaorer e T n h g r i e n e ee m ri o n d g e p l s ractice. �W 1 e. us C e l t a h s r s e M ek o in d d e s l— of fomrothdeelosbtojecdtesscinritbheeassyystsetemm&frtohmeirdirfeflearteionntsvhiiepws.points.

relaItitondsehsicprsi .bes the static structure of the objects in the system and thei^ r ar eCrel^ laastsiomnsohdipeslcamonotanignsthce^ lacs^ lassdseiasg.rams-^ agraphwhosenodesareclassesandarcs (^2) It. (^) d S es t a cr t i e b m es od th e e l— as foprecthtseloiffeahnisotobrjyecotfothbajteccths.ange over time. It specifiesan d iam (^) r cpsleamreetnratsnsciotinotnrob lewtwi tehe nstsattaetedsiacgaruasmeds-bay gervaepnhtsw.hosenodesarestatesandwhose (^3) It. (^) de I s n (^) c t r e i r b a e c s ti h o o n w M th o e de o l b—je fcotsrtihnethinetesryasctteimonca om- oopnegraotbejetoctas.chievebroaderresults. Tdih (^) aigsrmamosd .e lst artswithusecasesthatarethenelaboratedwithsequenceandactivity

user U s. s^ ecas^ e –^ fo^ cusesonfunctionalityofasystem–^ i.e what asystemdoesfor S in e (^) t q er u a e c n ti c o e ns d. iagram s – sh owstheobjectthatinteractandthetimesequenceoftheir Ac tivity dia grams – elaboratesimportantprocessingsteps. OOTHEME S

S 1. e v A e b ra st l r t a h c e t m io e n spervadeOOtechnology.Fewar e–

ig no^ ri^ ngAbdsettraaicl stioi. nefloectsusyinoguofnocwuhsatoanneosbsjeencttiaislaansdpedcotseso,fbeafnoreapdpelcicidaitniognhowwhitloe imp lem Ietn’stitth .emostimportantskillrequiredforOOdevelopment. (^2) . E I n t c s a e p p s a u r l a a te ti s on th ( e in e f x o t r e m rn a a t l io a n sp h e i c d t i s ng o ) f anobject (thatareaccessibletoother ob je ct s )Efnr ocmapsthuelaitniotenrnaplriemvepnletsmenptoarttiioonnsdetoaifls(athaptraorgerhaimddefnrofrmomboethceormoibnjgectss)o in ter 3 d. e C pe o n m d b e i n n t i t n h g a t d a at s a m a a n ll d ch b a e n h g a e vi h o a r smassiverippleeffects.   CIna lOleOrosfysatnemoptehreatdioantansetreudcntuortechoinesriadrecrhyhomwatmchaensytihmepolpemeraetnitoantioinnhseerxitiasnt.ce  hierarchy(fig).

4 .S x h ar O in O g techniquesprovidesharingatdifferentlevels.

com^ xm^ oInnchoedrieta .nce of both data structure and behavior lets sub classes share bu t^ xa^ ls oOoOffedresvtehleopprmoesnptecntootforneluysilnegtsdyeosiugnsshaarnedicnofodremoantifountuwreitphrionjeacntsa.pplication, (^5) x. E O m O ph d a e s v is el o o n pm th e e nt es p se la n c c e e s o a fa g n re o at b e j r ec e t mphasisondatastructureandalesser em p 6 h. a S si y s n o e n (^) rg p y rocedurestructurethanfunctional- decompositionmethodologies.

lang^ xu^ agIedse .ntity, classification, polymorphism and inheritance characterize OO

cl as^ xs^ mAocdtieol .nsRaenfdereevnecnestsibnetawseteantesdtiaatgeradmiabgeracmomseboepceormateioninsteornacotbiojencstsiinntthhee inter 3 a. c I ti n o t n er m a o ct d i e o l n. model – representsthe collaborationofindividual objects,the “i nte xr acItn iotenr ”acatsipoenctmsoofdealsdyestsecmri.besinteractionsbetweenobjects– howindividual ob je xc t sTco (^) hlelasbtoarteateantdoainchteireavcetitohnembeohdaevlisordeosfctrhibeesydsitfefemreanstaawspheocltes.ofbehavior,and yo u xn eeUdsbeoct hasteosd,esescqruiebnecbeedhiaavgiroarmfuslalyn.dactivitydiagramsdocumenttheinteraction m C o L d A e S l. SMODELLIN G N ob o (^) j t e e c : tsAi (^) ncltahs essmyostdeeml,cathpeturreelsattihoensshtaiptiscbsetrtuwcetuenrethoefaobsjyescttesm,abnydcthhearaatcttreirbiuztiensgatnhde o O p (^) B er J a E ti C on T s A fo N r D ea C ch L c A la S s S so C f O ob N j C ec E ts P. T O � b P j u e r c p t o s seofclassmodelingist odescribeobjects. �apA (^) pl nic o a b (^) ti j o e n c. t isaconcept,abstractionorthingwithidentitythathasmeaningforan E C x la : s J s o e e s Smith,InfosysCompany,processnumber 7648 andtopwindowareobjects. ��A (^) A n c o l a b s j s ecdteisscarinbeinssatagnrcoeuoproofcocbujrercentscewoitfhathcelassa s.meproperties(attributes),behavior (Eo (^) xp:ePraetrisoonns,) ,ckoimndpsanoyf,rperloatcieosnsshainpdswaninddsoewmaanreticclsa.sses. N sh o (^) a t p e e : Aanl (^) dlotebxjetuctrsehaarevestiidllenintidtiyviadnudalaraepdpilestsi:nagupiesrhsaobnlec.aTnweoataopnpeleasnwditthhesnamtheecoothloerr,. Tan h (^) denteortmbyiddeenstcitryipmtiveeanp srothpaetrttiheesothbaje tcthtseyarmeadyisthianvgeu.ishedbytheirinherentexistence

CLASSMODELLIN G

  • • O A B n JECTANDCLASSCONCEPT bbe^ e hhooaabb^ vvjjeeiiooccr rtt ahn^ ads a t a h r uu e nn e ii c qq h uu a ee ra ii c dd te ee r nn is tt t ii ic ffii s cc : aassttt^ t^ iiaaoottnnee .,or
  • Awn (^) ithob (^) idjeecnttiit syathcaotnhcaespmt,eabansitnragcftoiornaonrthing
  • a N p^ o p te li : c T a h t e io te n r. m Eg^ : itd (^) heantttihtyemobejaencstsare dinishteinregnutisehxeisdtebnycteheainrd nporotpbeyrtdieesscthriapttivtheey mayhave. C � l (^)  Casl assdsiadgiraagmrasms provide a graphic notation for modeling classes and their r N e l o a t t e i : onAsnhiopbs,jetchtedreiabg yrdamescsrhiobwinsgipnodsivsiibdlueaolbojbejcetcst.sandtheirrelationships. U�s (^) Celfauslsfodriadgorcaummsenatriengusteesftuclabsoesthanfdordiasbcsutsrsaicntgmexoadmelpin legs.andfor designingactua l p N r o o t g e r : amAsc .lassdiagramcorrespondstoinfinitesetofobjectdiagrams. �F igurebelowshowsaclass(left)andinstances(right)describedbyit.

�  Co (^) x n v U en M tio L n s s ym us b e o d l ( f U or M b L ot ) h : classesandobjectsisbox.

by c^ xl^ as sOnbajmecet.saremodeledusingboxwithobjectnamefollowedbycolonfollowed fi rst^ xl^ ettUers .eUbs oeldsfiancgeultaorlnisotucnlsasfsornnaamme,esceonftcelratshseesn.ameintheboxandcapitalizethe wit h^ x^ To runtogether multiwordnames(suchasJoeSmith),separatethewords Val^ x u^ es i a n n te d rv A en tt i r n i g bu ca te p s i : talletter. �  Va lue isapieceofdata.

�  UM (^) x L L c i o st nv o e p n er t a io ti n o s ns us in ed 3 r – dcompartmentofclassbox.

lette^ xr^. Listoperationnameinregularface,leftalignanduselowercaseforfirst nam^ xe^. Op^ tionaldetailslikeargumentlistandreturntypemayfolloweachoperation co lo^ xn^ pPreacreednethsetshi esreensuclltotsyepea.n argument list, commasseparate the arguments. A �ob  N je o (^) c t t e s : oWfseamd eocnlaosts.list operations forobjects, because theydo not varyamong SummaryofNotationforclasse s

F i g:Summaryofmodelingnotationforclasses

Fig:Notationforanargumentofanoperatio n

Cl as sD igarms:Relationships

  • Cdilfafesrseenstcrealnatrieolnastehdiptso:eachotherthrough
    • Dependency
    • Association(delegation)
    • Generalization(inheritance)
    • Realization(interfaces)

Class 1 Class 2 Class 1 Class 2 Ba s e sub Ba s e sub

1 )Dependency:AUsesRelationshi p

  • Dependencies
    • occurswhenoneobjectdependsonanother
    • infeeyodutocchhaannggeetohneedeopbejnedcet'sntionbtejercfatce, you
    • aorbrjoewctspoints from dependent to needed Ju kebo x CCaDrCdRolelaedcetiro n SongSelecto r

wh e^ xn^ aAmsosdoecliahtaio snmnualmtipeleisaosspoticoinatailo,nifstahmeomngodsealmiseucnlaasmsebsi.guous.Ambiguityarises re fe^ x re^ n cDeesvferloompeorsneooftbejnectimtoplaenmotehnetr.aAssorecfieartieonncseiisnanpraotgtrriabmutmeiinngonlaenogubajegcetsthaast referstoanotherobject.

M �  Multu ilptlipicliitc yity specifiesthenumberofinstancesofoneclassthatmayrelatetoa soi (^) bnjgelcetsi .nstanceo fan associatedclass.Multiplicityconstrainsthenumberofrelated �  UM x L U c M on L ve d n ia ti g o r n a s m : sexplicitlylistsmultiplicityattheendsofassociationlines. x“ 1 ”U(eMxaLctslpyeocnifei)e .smultiplicitywithaninterval,suchas “ 1 ..”(on“e 3 o..r 5 ”m(othrree)e .to five,inclusive). “*”(many,i.ezeroormore).

  • notations Clas s Clas s Clas s Clas s

1 0 ..* 0 .. 1 m..n

exactlyone (zeromoarnmyore) (zeorpotioornoanle) nSupmeecriifcieadlly (m ton,in clucive) Co urs e 1 0 ..CourseOffering*

Example :

• Ma nMy- out -lt oipnelicity ofAssociation^ s

  • BankhasmanyATMs,ATMknowsonly 1 bank

• On e- ot - many

  • Inventoryhasmanyitems,itemsknow 1 inventory

As sociatio n- Multiplicity

  • • AEatechacchoeurrtseeaicshteasug (^1) httob (^3) ycoonulyrsoense(steuabcjehcetrs.)
  • • AAsctouudresnetccaannhtaakveeb 1 e 0 twtoe 3 e 0 n 01 sttoud (^5) ecnotsu.rses.

As sociatio n – Multiplicity

Te ache r^1 Te^ ache^ s^1 ..^3 Course

Student s Take^ s

1 .. 5 10 .. 300