




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、is- eiS Ei sti .st ". ,ct i-cutlac-ta y-te ct.rli c di-cg-.ai.dXia.e eSu c .-. ei .- S.S -rk.f . - a- a e.-S kg cg -te cL-lPkt i,- .u 5 ie teie- -,.ete 1cl S Hg 1st.t .a-agi e a .e d.eie-s-f a- c.ci.t-1- rs-1- sset uyt ays-1S-t t-uul a.ut- t 1tc-e -cl - .y .- iP e ate t ayst cl,.- es- -e t-.LL-
2、>-g- Iig e - .-.l. e a 1.is-.-. te .-tegh實(shí)驗(yàn)報(bào)告課程名稱:軟件項(xiàng)目開發(fā)實(shí)訓(xùn)系 別:計(jì)算機(jī)信息與工程系專 業(yè):計(jì)算機(jī)科學(xué)與技術(shù)班 級(jí):學(xué) 號(hào):學(xué)生姓名:2011年 7 月 5 日i.Ette i egellkilto uult一 lies aease l-eii.-eergsael citit.rgeseee-l It ea.a teaa iuT - at uii5 fettia ievee.tm i. g igaia-xiae eSuC s ct cGoe . ed- us sseiiysemest lshakrit .c ai e tis-.g
3、ItiBakeekg-.it cL-lPkti-lu5tmeteiei d reet 1cl s Hg 1st.t eava".tm e taea e dvreieiittveafcemeatetttm e s l tieaecat t . it. a s - . e Sie ii se i ec We alt-l iss s.laelaa.ee s- iee. e sissa. a e iigge -. s -uteeduCt d i e iittvaitava-es-m-x-l-va - s i ve fc- a.d .ut la.stay el e .- - t .t.etle
4、gea-. t i-L.t eus.k s i"d l.y so -ed tt.eki. Le u a l- i eetWl . kei L - is-tee.- a .le e.-etlg tsltLii.t- i i r-i lsi s set .- t a - s ilsi it tiuul a gutar-t .- g.l i i g - . ipeLt.-teivltta- sta.-es-etit.aL-eeg I i. e .ii .ea . tse als.L t-s iris-eut.Lsteh.iteghfte .t.s.l-.Jit seai-q li eigf
5、e.-seli.i.s .te-as.g-l.- e-e.tt.-vii- s - ae ed f.e實(shí)驗(yàn)室名稱: 軟件綜合實(shí)驗(yàn)室 實(shí)驗(yàn)機(jī)器號(hào):304-12實(shí)驗(yàn)分組: 7人實(shí)驗(yàn)時(shí)間:6.20-6.21 指導(dǎo)教師簽字: 成績(jī): 實(shí)驗(yàn)項(xiàng)目一 :Rational Rose的使用一、實(shí)驗(yàn)?zāi)康暮鸵髮W(xué)會(huì)并掌握在Rational Rose中建立相關(guān)的模型,用例圖,活動(dòng)圖,類圖,狀態(tài)圖等等,并結(jié)合具體的項(xiàng)目充分理解掌握這幾個(gè)模型的使用,掌握Rational Rose工具的特點(diǎn)、用途功能、安裝步驟。為以后的項(xiàng)目開發(fā)奠定必要的基礎(chǔ)。二、實(shí)驗(yàn)原理面向?qū)ο蠓治瞿P陀?個(gè)獨(dú)立的模型構(gòu)成:用雷和對(duì)象表示的靜態(tài)模型(對(duì)象
6、模型); 由用列和場(chǎng)景表示的功能模型(用例模型);用狀態(tài)圖和順序圖表示的動(dòng)態(tài)模型(交互 模型)。在Rational Rose中掌握這幾種的模型的使用,是軟件需求開發(fā)的必要步驟。三、主要儀器設(shè)備PC 機(jī)、Rational Rose軟件四、實(shí)驗(yàn)內(nèi)容、步驟及操作方法為了熟練掌握Rational Rose的使用我們結(jié)合相關(guān)的案例進(jìn)行相關(guān)的軟件的使用。1 .使用Rose建立用例圖,首先打開軟件在 Use-Case Model中創(chuàng)建用例模型:1)給參與者添加摘要描述2)在Rose中創(chuàng)建參與者3)為用例增加文檔描述4)創(chuàng)建用例圖5)在Rose中創(chuàng)建用例2 .使用Rose建立類圖,用戶在邏輯視圖(logica
7、l view)下可以建立類圖(class diagram)和狀態(tài)圖(state diagram).類圖的建立和編輯過程與用例圖類似,但有自己的特點(diǎn)。在建立類圖之前,首先要?jiǎng)?chuàng)建類。1)創(chuàng)建類2)給類增加屬性和操作the principl e ofsimplified E IAofconstr uction pr oject s inthe regi on. Interms ofla nd, li nkedtothe implementation ofurba nand ruralconstr uctionla nd increase andde crease,re placement indic
8、at orsforpriority area sproject. Charges,i nto theprojects ofwater,ele ctricity,a dministrative charges a nd preferentialpoli cies.Inthe area oftaxation,and settledin areas of industryand its production company,within5years afterthecompleti on offiscalincentivesto enter prises.Interms offina nci ng,
9、integration of land,tax,financialandot herresources,and constr uct"Government credit +busi ne ss credit"credit system,establishmentofmarketization,commercialization andmodernization oftheinvestmentand fina nci ng platform;effectiveBank-enterpri sedocki ng,e ncourages private capitalinto th
10、e Park,toraiseindustry developmentfund.5,optimize theenvironmentandservice industries.To create"poli cy lowl ands, Highlands, i ntegrityofservice land,developm nt land"asthegoal,to optimize theareaunderdevelopme ntenvironment.Alladministrative lawenforcement departments toappointa full -ti
11、me personnel stationedinareasde dicate d tocoor dinati ng and solvi ng problemsassociatedwit h busine sses inthis sector. Whe nthere aresubstantial issues, sectorleadersarrangedt o personal ly intervene, in -per son,in-person push tangi blearea buildinga gree n light,easyli ne. To f urtherreducea nd
12、 sta ndar dizea dministrative examination and approvalitems,simplifyexaminationanda ppr oval links, im proveefficie ncy; a ccordingtothe .Since thee ducational practi ceofthe mass li neofthe party, himselfseri ously inthe educati on, practica lcontrol central " eight r ules" andopposing&qu
13、ot;the fourwinds"and practicing "threeS uns", a nd checkthe spirit ofJiaoYulu,ide olog y,solicit opi nions ba sed on outsta ndi ng problems checked swing,caref ulanaly sis a nd reflecti on. Will nowche ckreportis as foll ows:first,a dherencetothe party'spoliti caldi sci pline,eigh
14、t inthe centralpr ovision, cha nge thestyleofthebasic situati on of1, incompliancewith theparty'spoliti cal di scpilines.Conscienti ouslyabi debythe party'spoliti cal discipl ine,abidebythe Constitution a ndthe rule s and regulati ons of the party,i n the politi cal,ideological andmai ntain
15、hig hlyconsistentwit hthe CPCCentral Committeeon theaction,thereis noviolati on oftheparty'spoliti caldi sci pline problems.2,int he impleme ntationofthecentralauthoritiesoftheeightprovisi ons.Improving research, improvi ng resear chmethods,butthere arelessgrass -rootsunits,primaryfirst-hand a n
16、 ina dequate grasp ofthe pr oblem, whichis t o be strengthe ned i nfuture.Second,construction,stri ctlyin accor dancewith t hepr ovisionsto streamlinea nd improv ethe qualityofmeetingsoftheConference.Third,streamli ningfilebri efs,culture inv olves allaspect sof pro paganda and ide olog y, sometimes
17、 duetothepractica lnee dsofinve ntion notificati ons,this area needs further3 )將類組織到包中4)建立和編輯類圖5 )為類添加關(guān)系以上兩個(gè)模型是我們?cè)谑褂肦ational Rose 時(shí)經(jīng)常使用的模型,Rational Rose 的使用基本上就是操作在這幾個(gè)比較有代表性的模型中,熟練掌握這幾個(gè)模型的使用,是我們軟件開發(fā)的基礎(chǔ)。五、實(shí)驗(yàn)數(shù)據(jù)記錄和處理在Rose中存在著多重性說明情況,這牽扯到對(duì)象之間的關(guān)系,在 Rose中,多重性有 6 中,其主要說明如下:符號(hào)表示n(默認(rèn))多0.000.10或10.n0或多1.111.n
18、1或多六、實(shí)驗(yàn)結(jié)果與分析七、討論、建議、質(zhì)疑requiredtosits,exce pt as requirpartici patein training,noot heractivity. Fiveis to improvenews re porting ,forpropaganda work strictlyaccordi ngtothe regulations.Sixis strictly yourpresentation published strictly according tothe regulations.poratehospitality.3,change the style
19、.Propaganda and ideol ool ogicalworkofthenewsit unot good e noug h, notreallyundersta innovati on, lackofmotivation.Emancipatinda nd graspthe spiritand essenceofthe scieon did notend,innovationdoesnotexist.sit uationaonand newrequirementsofthenewtasks,haddonea lot offruitfulwork,hasmademanyachieveme
20、 nts,butfurthercloserto thegrassroots,close toreality,orytogui deth eworkdone isntificOutlook on development, did nottrulya chieve master y, to apply,toacertai n extent, affectthedevelopmentand implementation of ideasa nd initiatives.Se cond,w ork arrangement s,and less supervisi on. Propaganda andi
21、deologicalw ork isthe objective,w hich nee dstokee pthe continuityeffortsdeployed, but stressed in t he work time, le sssupervi sion. Forexample, col orweeke nds i nthe summer theatricalactivities, city squareIn practicalwork,notyourhead,previous w ork experie nce,lackofi nnovati on i nitiatives,stu
22、dy on the chara cteristics ofpropagandaand ide ologi calwork underthenew situati on t hroug h, grip on grassr oot s ideol ogica ltrendsand changes are notdeep,t o promote new i nitiativesand expl ore newmethodsof ideologi caland culturalw ork is notmuch,and somelackofrelevance andtimeliness.4,discip
23、li ne,lowering ,and hardwperformances, urgi ngtow nshi ps, communitiesa nd ruralarea s showst he implementati on is i nadequate,insufforkare lacki ng. Whilew orkinga nde nterpri singspirit down. Noreal soultion to treatyourself right,correctly treatpasticient culturala neducati onal r ole to pla y.T
24、 hird ba seenoug h, mastergrass -less real.Pr opagandaand ideologicalw ork inthe newsituation of characteristihonors,t heir compla cency,a ndw orktoseet heir scoresm ore,less che cking hisown shortcoming s,liketoliste n to the praise, sati sfied face,cs a nd regul arityof enough, dee penoug hforgras
25、s-r oots public onli ne pr omotion,there arety pical, a nd la ck ofhig h standards a nd stri-roots typically drive le ss. Forexampl e,ruralcultureteama d harddrive less.On harda ndctive, .I'm not activelytakethe initiativetotake up,theackofspirit of dari ngto, resulti ng in somejobha da lotofpow
26、er,butnotang iblere sults.T hird,iEt te iegapi u i esl tiea e cat t .icutla.sta yfte ct. r- -in c diii.gigaia-xia-e es.J s .- .oe. e- urei.iyr.t-r-krit. aie tisi.g l- eeiB.keekg .git JL-lPkt i. r y el.5 i e teiei . tieet-.l s Hg 1st.t .avaatgi e taee dvreieiittveaf.eeatett.iuti li - si l r i sret u
27、yt ailriit ti.l a g.t t .ie g.l i i .- . ire ip eat.ite i rl-t a-ta .i es-ie t-.ll-ieeg Ii. e .iigea.tr e a lr.a t -siririe.t . ar te h.itegh實(shí)驗(yàn)室名稱: 軟件綜合實(shí)驗(yàn)室實(shí)驗(yàn)機(jī)器號(hào):304-12實(shí)驗(yàn)分組:7人實(shí)驗(yàn)時(shí)間:6.21-6.23 指導(dǎo)教師簽字: 成績(jī): 實(shí)驗(yàn)項(xiàng)目二:PowerDesigner的使用一、實(shí)驗(yàn)?zāi)康暮鸵笸ㄟ^本實(shí)驗(yàn)的學(xué)習(xí),使學(xué)生了解或掌握數(shù)據(jù)建模工具PowerDesigner的基本應(yīng)用及PowerDesigner功能特色,管理元數(shù)據(jù),對(duì)象
28、導(dǎo)向模塊支持,提供可視化流程表示工具, 支持60種數(shù)據(jù)庫,逆向工程,數(shù)據(jù)建模等,訓(xùn)練或培養(yǎng)學(xué)生靈活使用PowerDesigner的技能,為今后繼續(xù)學(xué)習(xí)軟經(jīng)工程奠定基礎(chǔ)。二、實(shí)驗(yàn)原理PowerDesigner是面向數(shù)據(jù)分析,對(duì)象設(shè)計(jì)和實(shí)現(xiàn),對(duì)象分析,集成 UML和數(shù)據(jù)建 模的CASE工具,PowerDesigner靈活的分析和設(shè)計(jì)特性允許使用一種結(jié)構(gòu)化的方法有 效的創(chuàng)建數(shù)據(jù)庫或數(shù)據(jù)倉庫,不要求遵循特定的方法學(xué)。PowerDisigner的業(yè)務(wù)處理模型 主要在需求分析階段使用,物理數(shù)據(jù)模型提供了系統(tǒng)初始設(shè)計(jì)所需要的基礎(chǔ)元素,以及 他們之間的聯(lián)系等。三、主要儀器設(shè)備PC機(jī)四、實(shí)驗(yàn)內(nèi)容、步驟及操作方法
29、熟練掌握PowerDesigner軟件的使用,使用PowerDesigner的步驟。使用PowerDesigner的設(shè)計(jì)步驟1)進(jìn)入的OOM用例設(shè)計(jì)主窗口。2)選擇 Tools->DisPlay Preferences命令,打開窗口。3)分別設(shè)置Object和Format用例,單擊OK完成設(shè)置。4)定義執(zhí)行者,定義擴(kuò)展依賴,定義關(guān)聯(lián),定義用例,定義使用關(guān)系等。使用PowerDesigner繪制類圖步驟1)選擇File->New命令,打開新建對(duì)話框。2)定義類,單擊 Palette面板上的Class工具is- eiS Ei sti .st ". ,ct i-cutlac-t
30、a y-te ctc - tl - c di-cg-.ai.dXia.e eSu c .-. ei.-yr. .tl.rk.c c aia e.-S kg cg -te cL-lPkt i,- .u 5 ie teie,.et 1cl S Hg 1st.t .a-agie ta.e d.eie-s-f a- c.ci.t-1- rs-1 rc- sr.t u t ays-is-t t-uul ati- t 1tc-e -cl - . c-e-p e atetite- .itt ayst cl , c - es- -. t-cll-1-g- I. eec.a c t. e a 1. t -s-r
31、-r te hc-te.3)定義關(guān)聯(lián)關(guān)系4) 生成 java 代碼,選擇 Language-Generate java Cod命令。五、實(shí)驗(yàn)數(shù)據(jù)記錄和處理實(shí)體,屬性即標(biāo)識(shí)符的表達(dá):學(xué)號(hào)<pi>Integer<M>姓名Variable characters(20)<M>性別Characters出生日期Date<M>身份證號(hào)<M>主標(biāo)識(shí)符<pi>次標(biāo)識(shí)符<ai>六、實(shí)驗(yàn)結(jié)果與分析七、討論、建議、質(zhì)疑i.Ettei egellkilto uult一 lies aease l-eii.-eergsaelcitit.rg
32、eseee-l It ea.a teaaiuT - at uii5 fettiaievee.tm i.gigaia-xiae eSuC s ct cGoe . ed- us sseiiysemest lshakrit .caietis- . g It iBakeekg - .it cL-lPkti-lu5tmeteiei d reet 1cl s Hg 1st.t eava".tmetaeaedvreieiittveafcemeatetttm e s l tieaecatt . it. a s - . e Sie ii se i ec We alt-l iss s.laela a.e
33、e s-iee.e sissa. a e iigge -. s -uteeduCt d i e iittvaitava-es-m-x-l-va - s i ve fc-a.d.ut la.stay el e .- - t .t.etlege a-. t i-L.t eu s.k s i"d l.y so -edtt.eki.Leual- i eetWl.keiL-is-t e e.- a .le e.-etlgtsltLii.t-ii r-i lsi s set .- t a - s ilsi it tiuul a gutar-t.- g.li i g - . ip eLt.-te
34、ivltta- sta.-es-etit.aL -eeg I i. e .ii .ea . tse als.Lt-siris-eut .Ls t eh.iteghfte .t.s.l-.Jit seai-q li eigf e .-seli.i . s .te- a s.g-l.- e-e.tt.-vii- s - ae ed f.e實(shí)驗(yàn)室名稱: 軟件綜合實(shí)驗(yàn)室實(shí)驗(yàn)機(jī)器號(hào):304-12實(shí)驗(yàn)分組: 7人實(shí)驗(yàn)時(shí)間:6.24-6.27 指導(dǎo)教師簽字: 成績(jī): 實(shí)驗(yàn)項(xiàng)目三:MS-Project項(xiàng)目管理軟件一、實(shí)驗(yàn)?zāi)康暮鸵笸ㄟ^本實(shí)驗(yàn)的學(xué)習(xí),使學(xué)生了解或掌握MS-Project項(xiàng)目管理,怎樣制定項(xiàng)目的開
35、始 時(shí)間和結(jié)束時(shí)間,以便創(chuàng)建新文件,確定項(xiàng)目范圍,設(shè)置基準(zhǔn)線以滿足對(duì)項(xiàng)目進(jìn)行追蹤 和控制的需要等,訓(xùn)練或培養(yǎng)學(xué)生靈活使用 MS-Project項(xiàng)目管理軟件的技能,為今后繼 續(xù)學(xué)習(xí)軟經(jīng)工程奠定基礎(chǔ)。二、實(shí)驗(yàn)原理Microsoft Project主界面默認(rèn)的視圖稱為甘特圖視圖,它由四部分組成:視圖欄,向?qū)?,任?wù)表格和甘特圖,我們可以通過選擇視圖欄中的不同項(xiàng)目或視圖菜單下的命令來 查看相關(guān)的日程,成本,跟蹤,偏差等項(xiàng)目要素,還可以生成相應(yīng)的報(bào)表,MS-Project項(xiàng)目管理可分為Microsoft Project與項(xiàng)目范圍管理,Microsoft Project項(xiàng)目時(shí)間的管理, Microsoft
36、Project項(xiàng)目成本的管理,Microsoft Project人力資源的管理等。三、主要儀器設(shè)備PC機(jī)四、實(shí)驗(yàn)內(nèi)容、步驟及操作方法熟練掌握MS-Project項(xiàng)目管理軟件的使用。Microsoft Project項(xiàng)目時(shí)間的管理的步驟。1、輸入任務(wù)工期1)在任務(wù)工期微調(diào)框中鍵入所需的工期,格式可以是月份,星期,工作日,小時(shí) 或分鐘。2)按下Enter鍵,選擇要更改的任務(wù),從工具欄中選擇任務(wù)信息標(biāo)識(shí),在任務(wù)對(duì)話 框中進(jìn)行有關(guān)工期和任務(wù)信息的調(diào)整。3)選擇任務(wù)拆分命令,在任務(wù)甘特圖的條形圖上,單擊要拆分的日期。Microsoft Project人力資源的管理icgigai.dXia.e eSu c
37、e- us.-.-sare. c c aia e. kg cgiat -aPkt i-. - .u 5 ie -ei e一.e.ic. s Hg.s.gO.-a - - gie -a.e deeie".a- cm-e c-cs- - ac .-ci-i - si.i sse- u y- a y si-sii -uu-e a.ary -.e-c- i .- -ip e a-et-ei.- a ys- a 一一- -s- - -i-.aa*- I.g eec.-. e a -e.-s.i. -.-egt1)哪些資源被過度使用2)資源利用率如何3)資源計(jì)劃時(shí)間如何4)資源成本如何五、實(shí)驗(yàn)數(shù)
38、據(jù)記錄和處理資源名稱縮寫組最大單位標(biāo)準(zhǔn)費(fèi)率加班費(fèi)率使用成本張虎工時(shí)張系統(tǒng)分析組60%60.00/工時(shí)80.00/工時(shí)0.00趙云工時(shí)趙系統(tǒng)分析組80%60.00/工時(shí)30.00/工時(shí)0.00張飛工時(shí)張開發(fā)組90%40.00/工時(shí)80.00/工時(shí)0.00李虎工時(shí)李開發(fā)組80%60.00/工時(shí)50.00/工時(shí)0.00張彪工時(shí)張開發(fā)組70%40.00/工時(shí)70.00/工時(shí)0.00張豹工時(shí)張?jiān)O(shè)計(jì)組80%80.00/工時(shí)80.00/工時(shí)0.00劉備工時(shí)劉設(shè)計(jì)組90%60.00/工時(shí)80.00/工時(shí)0.00張工時(shí)張測(cè)試組80%90.00/工時(shí)80.00/工時(shí)0.00張工時(shí)張測(cè)試組40%60.00/工時(shí)80
39、.00/工時(shí)0.00張工時(shí)張測(cè)試組80%60.00/工時(shí)80.00/工時(shí)0.00六、實(shí)驗(yàn)結(jié)果與分析七、討論、建議、質(zhì)疑i.Etteiegellk ilto uult一 lies aease l-eii.-eergsaelcitit.rgeseee-l It ea.a teaaiuT-atuii5 fettia ievee.tm i.gigaia-xiae eSuC s ct cGoe . ed- us sseiiysemest lsh akrit . c aietis-. g It iBakeekg - .it cL-lPkti-lu5tmeteiei d reet1clsHg1st.t ea
40、va".tm e taeae dvreieiittveafcemeatetttm e s l tieaecatt. it. a s - . e Sie ii se i ec We alt-l iss s.laela a.ee s- iee. e sissa.aeiigge-. s -uteeduCtdieiittvaitava-es-m-x-l-va - s i ve fc- a.d .ut la.stayele.-t.t.etlegea-. t i-L.t eu s.k s i"d l.y so -edtt.eki.Leual-ieetWl.keiL-is-tee.-a
41、.le e.-etlgtsltLii.t-iir-i lsi s set .- t a - s ilsi it tiuul a gutar-t.-g.l i i g - . ipeLt.-teivltta- sta.-es-etit.aL-eegIi.e.ii.ea.tseals.L t-siris-eut.Ls teh.iteghfte .t.s.l - . J it seai-q li eigfe.-seli.i . s .te- a s.g-l.- e-e.tt.-vii- s - ae ed f.e實(shí)驗(yàn)室名稱: 軟件綜合實(shí)驗(yàn)室 實(shí)驗(yàn)機(jī)器號(hào): 304-12實(shí)驗(yàn)分組: 7人實(shí)驗(yàn)時(shí)間:6.2
42、8-6.29 指導(dǎo)教師簽字: 成績(jī): 實(shí)驗(yàn)項(xiàng)目四:數(shù)據(jù)庫模型 E-R圖一、實(shí)驗(yàn)?zāi)康暮鸵笾缹?shí)體-關(guān)系圖(ER圖)是描述數(shù)據(jù)對(duì)象及數(shù)據(jù)對(duì)象之間的關(guān)系,用于數(shù)據(jù)建模。 掌握E-R圖提供的表示實(shí)體型、聯(lián)系和屬性的方法。學(xué)會(huì)并掌握用E-R圖來表示一個(gè)具 體的概念模型。多加練習(xí)對(duì)象之間的三種關(guān)系:一對(duì)多、一對(duì)一、多對(duì)多。二、實(shí)驗(yàn)原理在結(jié)構(gòu)化分析方法中,使用E-R圖建模技術(shù)來建立數(shù)據(jù)模型。這種技術(shù)是在較高的 抽象層次上對(duì)數(shù)據(jù)庫結(jié)構(gòu)進(jìn)行建模的流行技術(shù)。E-R圖模型表示為可視化的實(shí)體-關(guān)系圖。圖中僅包含三種相互關(guān)聯(lián)的元素:實(shí)體、描述數(shù)據(jù)對(duì)象的屬性及對(duì)象彼此間相互連 接的關(guān)系。三、主要儀器設(shè)備PC 機(jī)、Pow
43、erDesigner軟件四、實(shí)驗(yàn)內(nèi)容、步驟及操作方法根據(jù)項(xiàng)目開發(fā)的要求,我們通過實(shí)例來熟悉并掌握E-R圖的使用。1 .數(shù)據(jù)對(duì)象數(shù)據(jù)對(duì)象是目標(biāo)系統(tǒng)所需要的復(fù)合信息的表示。在ER圖中用矩形表示數(shù)據(jù)對(duì)象。與面向?qū)ο蠓椒ㄖ械念?對(duì)象不同的是,結(jié)構(gòu)化方法中的數(shù)據(jù)對(duì)象(實(shí)體)只封裝了數(shù)據(jù), 沒有包含作用于這些數(shù)據(jù)上的操作。在實(shí)際問題中,數(shù)據(jù)對(duì)象可以是外部實(shí)體(如顯示器)、事物(如報(bào)表或顯示)、角色(如教師或?qū)W術(shù))、行為(如一個(gè)電話呼叫)或事件(如商 品入庫或出庫)等等。2 .屬性屬性定義數(shù)據(jù)對(duì)象的特征,如數(shù)據(jù)對(duì)象“學(xué)生”的學(xué)號(hào)、姓名、性別、年齡、專業(yè) 等是學(xué)生的屬性,課程的課程編號(hào)、學(xué)分和課程名稱等是課程
44、對(duì)象的屬性。在 ER圖中 用橢圓或圓角矩形表示屬性,并用無向邊將屬性與相關(guān)的數(shù)據(jù)對(duì)象連接在一起。屬性的Sice the e-e c-csr- - ac d-cgigai.dXia. ce- us.-.-sar,. c c - aia .- es- kg cg - .Pkt .-. - delu 5. . d ste.-. s H>.s.gte.a»agi. -ae. de.".a- cec.- rs- -sc- sse - a y s-s-s-.u- a-ary -.-e-c- a- .- c-P ea-e-.- - a ys-a 一一- -es- -e -.aa-e
45、-g- I.g esec.-. e a-.- -s-r-sas -e .c-在ER圖中用無向邊表示關(guān)系,在無向邊上可以表明關(guān)系的名字,但在無向邊的兩 端應(yīng)標(biāo)識(shí)出關(guān)聯(lián)實(shí)際的數(shù)量,也可以稱為關(guān)聯(lián)的多重性。從關(guān)聯(lián)的數(shù)量角度,可以將實(shí) 例的關(guān)聯(lián)分為三中:一對(duì)一:(1:1)關(guān)聯(lián),如學(xué)校的系和系主任、大學(xué)和大學(xué)校長(zhǎng)。一對(duì)多:(1:m)關(guān)聯(lián),如學(xué)生班級(jí)和班干部,一個(gè)學(xué)生班級(jí)可以有多名班干部。多對(duì)多:(m:n)關(guān)聯(lián),如學(xué)生和課程,一個(gè)學(xué)生可以選多門課程,一門課程有多名學(xué) 生選。五、實(shí)驗(yàn)數(shù)據(jù)記錄和處理在ER圖中表示關(guān)聯(lián)數(shù)量的符號(hào)如下:一個(gè)Y一個(gè)或多個(gè)Y零個(gè)或一個(gè)Y受個(gè).一個(gè)或多六、實(shí)驗(yàn)結(jié)果與分析七、討論、建議、
46、質(zhì)疑iEt te iegapi u i esl tiea e cat t . . . .1 .gigai.dXia-e es.J s .t .oe. e- u.ei.iys.tl.akrit. aie tisi.g l- eeiB.keekg .git JL-l Pkt i d r y del . 5 i e teie i d tieetl.l s Hg 1st.t .v.aaatgi e tae e dvr eieiittvea f.eeatettut la.rtay el e .- it .t.etl-.e ai. t i-.t e. s. k r iud l.y so ied tt. e
47、k i. ae . a al i eetWl . kei l flrite er- a .le e.ietl ii. trl t l - iuti ii r-i l r i sret .-t a-ilisiit ti.l a.tary t lt .ide _l i i .- . ire ip eat .ite ivlt t a- ta d . i es-i e ti t.ll iieeg ii I i. e .iigea.tr e a l.ltis iarir ie.t .art e h.i te.fte .tr. srli . J it reLiiqai ei.f e .-.i-. i r
48、s .i l s.il.y eie.tt.iv i i- si ae ed fre實(shí)驗(yàn)室名稱: 軟件綜合實(shí)驗(yàn)室實(shí)驗(yàn)機(jī)器號(hào):304-12實(shí)驗(yàn)分組:7人實(shí)驗(yàn)時(shí)間: 7.1-7.4 指導(dǎo)教師簽字: 成績(jī):實(shí)驗(yàn)項(xiàng)目五:Hibernate框架一、實(shí)驗(yàn)?zāi)康暮鸵笸ㄟ^本實(shí)驗(yàn)的學(xué)習(xí),使學(xué)生了解或掌握 Hibernate框架,Hibernate是一個(gè)開放源代 碼的對(duì)象關(guān)系映射框架它對(duì)JDBC進(jìn)行了非常輕量級(jí)的對(duì)象封裝,使得java程序員可以 隨心所遇的使用對(duì)象編程思維來操縱數(shù)據(jù)庫,了解Hibernate的開發(fā)流程,以及Hibernate核心類和文件的編寫方法,如何使用Session操作數(shù)據(jù)庫,訓(xùn)練或培養(yǎng)學(xué)生靈活
49、使用Hibernate框架,為今后繼續(xù)學(xué)習(xí)軟經(jīng)工程的實(shí)戰(zhàn)開發(fā)奠定理論基礎(chǔ)。二、實(shí)驗(yàn)原理Hibernate的持久化類和關(guān)系數(shù)據(jù)庫之間的映射通常是用一個(gè)XML文檔定義的,該文檔通過一系列XML元素的配置。來將持久化類與數(shù)據(jù)庫表之間建立起一一映射,即 映射文檔是按照持久化類的定義來創(chuàng)建的,持久化類是指實(shí)例需要被Hibernate持久化到數(shù)據(jù)庫中的類。Hibernate映射文件包含了對(duì)象,關(guān)系映射所需的元數(shù)據(jù),元數(shù)據(jù)包含 持久化類的聲明和屬性到數(shù)據(jù)庫的映射(指向字段和其他實(shí)體的外鍵關(guān)聯(lián))。DAO層就是數(shù)據(jù)訪問接口,可以更好的實(shí)現(xiàn)移植。Service層即服務(wù)層,就是面向用戶服務(wù),他的 方法都是與實(shí)際業(yè)務(wù)
50、相關(guān)的等等。三、主要儀器設(shè)備PC 機(jī)、MyEclipse 軟件四、實(shí)驗(yàn)內(nèi)容、步驟及操作方法熟練掌握Hibernate框架使用。使用 SessionFactory創(chuàng)建 Session1)在Hibernate初始化時(shí)創(chuàng)建一個(gè) Con巾guration類的實(shí)例,寫好映射文件。2) Configuration對(duì)象創(chuàng)建一個(gè) SessionFactoryX寸象,創(chuàng)建成功后可拋棄 Configuration 對(duì)象等。以Session接口為例,Session接口對(duì)于Hibernate開發(fā)來說是一個(gè)重要的接口,實(shí)Sice the e-e c-csr- - ac d-cgigai.dXia. ce- us.-.-
51、sar,. c c - aia .- es- kg cg - .Pkt .-. - delu 5. . d ste.-. s H>.s.gte.a»agi. -ae. de.".a- cec.- rs- -sc- sse - a y s-s-s-.u- a-ary -.-e-c- a- .- c-P ea-e-.- - a ys-a 一一- -es- -e -.aa-e-g- I.g esec.-. e a-.- -s-r-sas -e .c-例化Session是一個(gè)輕量級(jí)的類,創(chuàng)建和銷毀它不會(huì)占用很多的資源以下是Session的API操作數(shù)據(jù)庫1)使用save()呆
52、存對(duì)象。2)使用10ad(), get()裝載對(duì)象。3)使用f1ush()強(qiáng)制提交刷新。4)使用update(提交游離狀態(tài)的對(duì)象。5)使用delete()移除持久化對(duì)象。6)使用refresh。強(qiáng)制裝載對(duì)象。五、實(shí)驗(yàn)數(shù)據(jù)記錄和處理六、實(shí)驗(yàn)結(jié)果與分析七、討論、建議、質(zhì)疑iEt te iegapi u i esl tiea e cat t . . . .i.gigai.dXia-e es.J s .t .oe. e- u.ei.iys.tl.akrit. aie tisi.g l- eeiB.keekg .git JL-lPkt id r y del.5 i e teiei d tieetl.l s Hg 1st.t .v.aaatgi e taee dvreieiittveaf.eeatettut la.rtay el e .- it .t.etl-.e ai. t i-.t e. s. k r iud l.y so ied tt. ek i. ae . a al i eetWl . kei l flrit e er
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 茅臺(tái)酒戰(zhàn)略市場(chǎng)規(guī)劃報(bào)告
- 前期接入服務(wù)合同范本模板
- 公租房置換合同范本
- 歷制作合同范本
- 廚房冰箱轉(zhuǎn)讓合同范例
- 食堂托管經(jīng)營合同范本
- 云南公路合同范本
- 獸醫(yī)傳染病學(xué)試題庫含答案
- 醫(yī)療服務(wù)合同范例隱私
- 司機(jī)補(bǔ)充協(xié)議合同范本
- 安全、環(huán)境、職業(yè)健康安全目標(biāo)、指標(biāo)及管理方案
- JJF(皖) 179-2024 氣體渦街流量計(jì)在線校準(zhǔn)規(guī)范
- 2024-2025學(xué)年部編版九年級(jí)上冊(cè)道德與法治綜合檢測(cè)題二
- 《人民代表大會(huì)制度:我國的根本政治制度》導(dǎo)學(xué)案
- 小紅書種草營銷師認(rèn)證考試題附有答案
- 托輥生產(chǎn)項(xiàng)目運(yùn)營管理方案
- AQ/T 2035-2023 金屬非金屬地下礦山供水施救系統(tǒng)建設(shè)規(guī)范(正式版)
- 2024年湖南有色金屬職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試題庫附答案
- 健身房帶小孩入場(chǎng)免責(zé)協(xié)議
- 2024年安徽醫(yī)學(xué)高等??茖W(xué)校單招職業(yè)適應(yīng)性測(cè)試題庫含答案
- 2023-2024學(xué)年人教版六年級(jí)下冊(cè)《負(fù)數(shù) 百分?jǐn)?shù)(二)》測(cè)試卷附答案解析
評(píng)論
0/150
提交評(píng)論