Tài liệu Luận văn Một số cải biên trên mô hình Dexter: TRUONG D,;J HQC T6NG HQP TP. HO CHi MINH
0Jro
NguOithvchi~nNguyen Hi$p Doan
Detili
Mat socaibientrenmahinhDexter.
ChuyenngilnhTin hoc.
LUAN VAN THAC si KHOA HOC. . .
Nglioi hlidngdan 1'sDong'ThiBichThuy
THANH PHO fiG ~H(,MINH - 1997
... ?
LO1 CAM TA.
'§>G~
Toi xinchanthanhearndnTiensi DangThj BichThuy,ngu'oid3:t~n
tinhhu'angclanvadQngvienWihoanthanhlu~nvan.
Xin goiWiearndndentatcacaeb~ndangnghi~pd3:giupdovadang
gapykiengiuptoihoanthanhdetainay.
Toi xinbayto longbietdndoivai charnt;,caeanhchiemvacaeb~n
thand3:khuyenkhichWitrongquatrinhth\fchi~ndetai.
TpHaChiMinh,ngay19/6/1997
NguyenHi~pDoan
MT)C LT)C
TOMTAT 3
CHUONG1: lit COSa DULIeU HYPERMEDIA 4
1-Md DAD """"""""""""" 5
Ll - Khaini~mva-cach~hypertext,hypennedia,multimedia 5
L2-Nhilnglingdpngcuah~thonghypennedia 5
11-$ THONGCSDL HYPERMEDIA 6
IL 1-Djnhnghla 6
IL2-D{ictrungcuam9th~llMDB ; 6
IL3- Cackhaini~mcdbantrongllMDB 7
IL4- Cacyeudiu dOlv(jim9tmohinhllMDB 7
111-WORLDWIDEWEB(WWW) 8
IlL 1-Ljch su WWW ...
65 trang |
Chia sẻ: hunglv | Lượt xem: 1666 | Lượt tải: 0
Bạn đang xem trước 20 trang mẫu tài liệu Luận văn Một số cải biên trên mô hình Dexter, để tải tài liệu gốc về máy bạn click vào nút DOWNLOAD ở trên
TRUONG D,;J HQC T6NG HQP TP. HO CHi MINH
0Jro
NguOithvchi~nNguyen Hi$p Doan
Detili
Mat socaibientrenmahinhDexter.
ChuyenngilnhTin hoc.
LUAN VAN THAC si KHOA HOC. . .
Nglioi hlidngdan 1'sDong'ThiBichThuy
THANH PHO fiG ~H(,MINH - 1997
... ?
LO1 CAM TA.
'§>G~
Toi xinchanthanhearndnTiensi DangThj BichThuy,ngu'oid3:t~n
tinhhu'angclanvadQngvienWihoanthanhlu~nvan.
Xin goiWiearndndentatcacaeb~ndangnghi~pd3:giupdovadang
gapykiengiuptoihoanthanhdetainay.
Toi xinbayto longbietdndoivai charnt;,caeanhchiemvacaeb~n
thand3:khuyenkhichWitrongquatrinhth\fchi~ndetai.
TpHaChiMinh,ngay19/6/1997
NguyenHi~pDoan
MT)C LT)C
TOMTAT 3
CHUONG1: lit COSa DULIeU HYPERMEDIA 4
1-Md DAD """"""""""""" 5
Ll - Khaini~mva-cach~hypertext,hypennedia,multimedia 5
L2-Nhilnglingdpngcuah~thonghypennedia 5
11-$ THONGCSDL HYPERMEDIA 6
IL 1-Djnhnghla 6
IL2-D{ictrungcuam9th~llMDB ; 6
IL3- Cackhaini~mcdbantrongllMDB 7
IL4- Cacyeudiu dOlv(jim9tmohinhllMDB 7
111-WORLDWIDEWEB(WWW) 8
IlL 1-Ljch su WWW 8
IIL2- Ngonngil'HTML 8
IIL3- WWW vah~CSDLhypennedia 9
N - MVc TIEDDETAl : 10
CHUONG2: M(n s6 MOHINHDULI:E;UHYPERMEDIA 11
1-MOHINHDEXTER 12
L1- Tilng1u'utril' 12
L2- Tilngbelltrong :..13
L3- Tilngthl/chi~n 14
L4-M{itphfincachgiil'atfi'ngbelltrongvatfi'ng1u'utril' 14
L5-M{itphfincachgiil'atfi'ng1u'utril'vatfi'ngthl/chi~n 14
L6-Link 15
L 7-Anchor 17
L8- Compositecomponent 17
II - Mo HINHAMSTERDAM 18
ILl- Gi(jithi~u 18
IL2- Kenhtr1nhdiln 18
IL3- CacmOllienh~thiligian 19
IL4- Sl/ tonghc;lpcaccompositecomponent 19
IL5-Ngil'canhcualink 20
III- Mo HINHVILAS-SATIDSINGKORAPOOM 23
IlL 1-CacdOltllc;lngcdban 24
IIL2- Dieukhiendongb9hoabrowse 26
TTTf A A' A , ~ A ,
CnuONG 3: MQT SON~N XET VE MO HINH HMDB 28
1-MC5DAD 29
II- ANCHOR : 29
IL 1-Djnhnghlaanchor 29
1
112-N(Hdunganchor 30
113-Thongtintrlnhdiln cilaanchor 3]
114-Anchor Gang1acomponent""""""""""""""""""""""""""""""""""""""""" 32
115-Anchorvagiaodi~nngu'aidung 33
111-COMPOSITECOMPONENT 33
IV -ANCHOR TRONG COMPOSITE COMPONENT 35
V- LINK 37
V.1-Link vaanchorkhongdanhdffu 37
v.2-cffutruccilalinkcomponent 37
V.3-Caclinkkhongchllt " 39
V.4-Link camngilcanh 40
v.5-Chieudaimedia 42
CmJONG 4-MO HINH DEXTER CAI TIEN 45
I- DANNHAP 45
II- BE XUATCACTHAY DOlTRONGMOHINHDEXTER 45
11]- Tinhmd cilah~thong." .."; 45
17.2Kh ? ~ b.A? di"" ' Jj'A 1,'""' dilli A ? A hi'-l..'t~ '"'" 45. - anang'leu enva enLl.et yUcuamo LllLuexuat."..................................
111-CACTHANHPHANCUAMOHINH 46
IV- Kientruch~thongCSDL hypermediatheomohinhcJi tien 49
CmJONG 5 : MOT s6 CAI D~T CHV YEU TRONG MO IDNH HMDB 50
I - CArDATTANGLVU..TRU 51
11-Bllt vandJ 51
12-Phantfch 51
II - CArDATVI~CTHVcHI~NMOTGIAOTAC " 56
111-Bllt vande: 56
112-Phan tfch 56
HlfONG PHA T TRn~N MO HINH CSDL HYPERMEDIA 60
'A ?
TAl LII::U THAM KHA 0 61
2
Chlidng1 : H~cdsddfi li~uhypermedia
Vi~cphcitri€n caephuongti~nnghenhlnva ky thui;tttruy€n thongdi'i
d~nd€n slfhlnhthanhWorldWideWeb.Tuyvi;ty,lingdlJ.ngchuy€u cua
Webchi la phanph6ithongtin.Vi~ct(;lOcaetdnhdi6nconkh6khanva
vi~clienk€t diI li~uchuamangtinhch~tchecao.
Ph~nnaytdnhbay mQtquandi€m v€ vi~cdinhnghIava mQtso'khai
ni~mcobantrongCSDLhypermedia.
4
? "
I-Mddfiu
1.1- Khai ni~mv~caeh~hypertext,hypermedia,multimedia
. Hypertextla mQtvanbanc6 th€ truyxua'tkhongtuye'ntinh.Van bandu'Qct6
chlicthanhcacchuderiengbil$t,vangu'oidungc6th€ d~dangchuy€ntuchude
naysangchudekhacmakhongdn phaidQctugnt1ftutrenxu6ngdu'ai.Cacht6
chlicnhu'V?yra'thichhQpchovil$ctruyxua'thongtintrenmaytinh.
. Multimediat?PtrungVaGnhungphu'angtil$ntruyenthongkhongchila vanban
maconla amthanh,phim,...Cacmediasedu'Qctrlnhdi~nrheamQthlit1ftu'ang
quailvainhautuyrheas~pxe'pcuangu'oibienso~n.
. Hypermediala hl$th6ngkhongnhungchophepdieuhu'angrheaca'utrucqua
su6tcactai lil$u,maconchophepnh6mnhieumedial~i,t~othanhmQttrlnh
di~n.
1.2-Nhungti'ngd\lngcuah~th6nghypermedia
1) Giuplamvil$client\lCrhealudngsuynghI.
Theocachso~nthaotruyenth6ng,tacgiaphaiphacthaocacnetchinhrdi mai
phartri€n chitie't.Khi congvil$cphartri€n, tacgiasekh6rhead6idgydu s1fphar
tri€n cacytu'dng,clingnhu's1flienhl$giuacacy tu'dngvainhau.
B~ngcongC\lhypermedia,tac6th€ phartri€n chi tie'tcacy tu'dngtru'acvad~t
trongcacchuderiengbil$t.Saild6lienke'tcacchudel~ivainhau.
2) HI$th6ngtrQgiup
Hypermediagiupngu'oidungtlmkie'mthongtinnhanhch6ngva tha'yngaycac
thongtin lienhl$dn thie'tkhac.Hannua,dohypermediac6th€ t6nghQpcaclo~i
thongtinkhacnhaunhu'amthanh,phim,...nenc6th€ dunglamcacchu'angtrlnhd~y
hQc,sachthamkhao,tudi€n, quangcaovabansanphilm...
3) Duytrls1flienWctrongcongvil$c
Hypermediala mQthl$th6ngmd,chophepngu'oidungrichhQpcacling d\lng
mai,cacd~ngthongtinmaiVaGhl$th6ngvalienke'tchungl~ivai nhau.Trongmoi
tru'onghypermedia,ngu'oidungc6th€ sad\lngnhieulingd\lngkhacnhauchocung
mQtcongvil$c.
4) T~oprototype
Hypermediadu'Qcdungd€ t~ocacprototypegiaodil$nmQtcachnhanhch6ng.
5
II - H~th6ngCSDL hypermedia
11.1-Dinh nghia
H~cosddli li~uhypermedia(HMDB)baog8mcacquatdnht~o,hill tm,truyxua't
vaxU'ly cacdli li~u(nhu'vanban,hlnhanh,bangbieu,band8, ...)d d~ngdi~ntU'.
Ngoaicacd~ngdli li~u"tInh"nhu'tn3n,h~th6ngclingh6 trQcac d~ngdli li~u
"dQng"(comangye'uto'thaigian)nhu'ho~thlnh,amthanh,phim,...
Tu'tu'dngchuye'ucuamQtHMDB la t6chU'cdli li~umQteachphituye'n.Tli mQtdli
li~u,ngu'aidungcothelc1ntheocaclinkdetruyxua'tcacdli li~ukhac.TrongHMDB,
mQtdli li~ucothelamQt~phQpcoca'utruccuacacdli li~ukhac.
Component2
Component1
moh 1-Minh ho~v~hypermedia
11.2-Dijc tru'ngciia m{)th~HMDB
. Thaychocacmfiutin (record)vacact~ptin(file),caccomponentvalinkla
nhlingca'utruccobancuah~th6ng. ..
. Thay VI du'Qcca'ut~otli cacthuQctinh,mQtcomponentdu'Qcxem nhu la mQtd6i
tuQngthuQcvaomQtlapnha'tdinhnaodo.
. Caccomponentdu'Qcke'tn6ivdinhaunhu'mQtm~ngkhongh~nche'.
. Vi~c xem nhanhla mQtyeti cc1ub~tbuQccua ht?th6ng.Nghla la ngu'aidungco
thedi chuyenqual~igiliacaccomponentthongquacaclink de duyt?toanbQht?
th6ng.
6
11.3-Caekbaini~mcdbantrongHMDB
Atomiccomponent:la mQtdu li~ud d<;mgmah~th6ngc6 th~bi~udi6nnomQt
cachdQcl?p.
Anchor: lamQtphc1ncuanQidungcomponent.
Link: la lienke'tdu'c;lct(;lOragiuacacanchor.MQtlinkgdmdanhsachcaccontrochi
de'ncacanchor.M6i controc6hu'angvanQidungriengcuan6.M6i componentco
mQtdanhsachcacanchoriengcuan6.M6i anchorc6mQtdanhdinhd~phanbi~t
vai cacanchorkhactrongclingcomponentvai n6.MQtlink thamchie'ude'nmQt
anchorthongquaC?p(componentidentifier,anchoridentifier).
Compositecomponent: la componentdu'c;lcxay dlfngtu cac componentkhac
(atomicho?ccomposite)vacaclink.H~th6ngd6ixii'vai caccompositecomponent
hoanloangi6ngnhu'cacatomiccomponent.Caccompositecomponentkhongdu'c;lc
chuachinhn6mQtcachtIVctie'pho?cgiantie'p.
11.4-CaeyelleftudolvoimQtmoblobHMDB
TheoVilasWuwongsevaSatidSingkorapoom[1],moh'inhHMDB phaithoacaeyell
cc1usail:
1. C6khanangtichhc;lpcacki~uduli~ukhacnhauvaoh~th6ng.
2. C6khanangmotacacthlfcth~c6ca'utruccao.
3. C6 slfphanbi~tgiuaca'utrucbell trongvaslfbi~uhi~nbell ngoaicuacacd6i
tu'c;lng.
4. Co coca'ut6nghc;lpthichdangvatinC?yd~nh6mcacd6itu'c;lngvaomQthlfcth~. / .A
0mucquaillllym.
5. Phaic6 nhungcachdi6ndichkhacnhaucuacacm6iquailh~giuanhungmiiu
thongtin.M6i quailh~phingucanh(trongd6cacd?ctinhcuad6itu'c;lngthamchie'u
dQcl?pvai d6itu'c;lngngudn),m6iquailh~camngucanh(trongd6cacd?ctinhcua
d6itu'c;lngthamchie'un~mtrongngucanhd6i tu'c;lngngudn)va m6iquailh~chua
dl;l'ng(chobie'tcacd6itu'c;lngca'uthanhd6itu'c;lng udn)
6. Phaic6coca'uh6trc;lchovi~cxemt6ngquatcosdduli~u.Ngu'oisii'dl,mgHMDB
dn cocacti~nichchophephQquetquamQtcosdduli~umQtcachhi~uquavatheo
nhieuphu'ongthuckhacnhau.
7. Co khanangt(;lOva dieukhi6ncacphienbancuacacmiiuthongtin.Cac d6i
tu'c;5ngduli~uthu'ongxuyenbi thayd6i.Vi the'vi~cquailly phienbanla cc1nthie't
trongvi~cphattri~nduli~u.
8. Mo hlnhphaih6trc;lchokhanangkhaitri~nvasii'ad6i.Cacquailni~mt6ngquat
cuamohlnhkhongbie'tde'nngunghlacuatungthlfcth~chuyenbi~t.Dod6ngu'oisii'
7
dvngsekhaitri€n mohlnhVOlcacchilcnangmOlhaysaad6icacchilcnangdangco
d€ thichhQphonVOlcacyetidu lingdvngcuahQ.
9. Khi t<;10mQtd6itu'Qngtunhungd6itu'Qngkhac,h~th6ngphaicomQtcoch€ bao
damchovi~cdlu thanhkhongbi I?pvang.
10.Cffncosvh6trQvekhoangnhlncosdduIi~u,chiclingdlp nhungphffnthongtin
vathaotacdud€ ngu'oisadvnghoanthanhcongvi~ccuahQ.
TheoHalasz[2],h~th6ngcanphaicha'pnhi;lncacd<;1ngduIi~usail:
. Computedcomponent:du li~uco nQidungIa k€t quacuamQttruyvffntren
HMDB. Khi do,nQidungduIi~uIamQti;lpcaccompositevalink.
. Virtualcomponent:du Ii~uchico nQidungvaohiethi hanh.NQidungduli~u
khongdu'QcIu'utru trongco sd du Ii~u.Nhu'ngn€u co mQtcomponentkhac(link
component)rovaocomponentIo<;1inay,thinophaidu'QcIu'utruthi;ltSvtrongcosd
duli~u.
Tachuytha'ycacnghiencUuveHMDBcocackhuynhu'angsail:
. Du'acacthongtintrinhdi~nvaomohlnh.
. Mo tathvcth€ d milcdQtrU'utu'Qngcaob~ngcaccocffut6nghQpvacacd<;1ngcffu
trucduli~uphilct<;1p.
. Mo tasvho<;1tdQngcuathvcth€ b~ngcachh6trQd<;1ngcomponentIa mQtchu'ong
trinh,query,....
III. World Wide Web(WW»J
111.1-Lfch sll'WWW
MQth~th6nghypermediadangdu'Qcsadvngph6bienhi~nnayIaWarldWideWeb,
doTimvaRobertCailliaudu'ara vaonam1990.H~th6ngWWW dvatrenytu'dng
hypertextdoTedNelsondu'aranam1965.
Co th€ coiWWW Ia mQtti;lpcacti~nichgiupngu'oisadvngt<;10racactrangduli~u
daphu'ongti~nvaphathanh!enInternet.-angdvngchinhcuaWEB Ia d€ phanph6i
thongtin.
111.2-Ngon figii'HTML
HTML (HypertextMarkupLanguage)Ia ngonngu so<;1nthaotrangdu li~utren
WWW.HTML Ia mQtngonngudjnhd<;1ng,haydanhda'u(mark-up).MQtti;lptinvan
bandu'Qcdanhdffub~ngcacthe(tag)HTML chophepngu'oitadQcdu'Qchungb~ng
ffiQtIo<;1iphffnmemgQiIabQduy~t(browser).TheIamQtdo<;1nmadu'Qcgiaih<;1nbdi
8
da'u''.
HTML khongmotatrangtai li~urheatungphc1ntii'nhuvi tri,kichco,matis~c,...
NguQcl<;1i,HTML chigallthechonQidungt~ptinvoi nhlingthuQctinhnaGdoma
saudochungduQcxacdinhbdichuangtrlnhduy~tdSxemt~ptin nay.HTML gall
the chokiSu chli, chenVaGvan bancact~ptin dd ho<;1,amthanh,video, 0.. va t<;10ra
cacm6ilienke'thlnhthlic.
Saunay,cacbQduy~tconchophepnhungcacngonngli l~ptrlnhJava scriptva
VisualBasicscriptVaGtrangHTML. Di€u naychophepnhlingnhaso<;1nthaotrang
WEB t<;10khanangWongtacvoinguoidungvake'thQpWEB voicosddli li~u.Thttc
te',m6itrangWEB cotuongtaclamQtchuangtrlnhcon.
BQduy~tWEB gii'iyetidu vanh~nl<;1idli li~udn thie't.Dli li~ubaagdmt~ptin
HTML vacact~ptinddho<;1,amthanh,videodu'QcgQide'ntrongt~ptinHTML. Khi
dli li~udu'Qcnh~n,bQduy~tdinhhlnhkiSut~ptinrheaquydinhcuacactheHTML
dachiravahiSnthitrangdli li~ucungvoicacthongtindaphu'ongti~ndi kern.Khi
mQtlienke'tdu'QchQn,mQtyetidu truyc~pde'nmQttrangWEB khacdu'Qcgii'ilen
Internet.
DocumentObject(DocObject)vaOLE la nhlingcongngh~chophepngu'oidungtruy
c~pvabienso<;1ntaili~ututrongbQduy~t.
111.3-WWW vah~CSDL hypermedia
Sosanhh~th6ngwww voicacyetidu d6ivoimQth~CSDLhypermedia(11.4),ta
cocacnh~nxetsau:
. Ungdvngchuye'ucuaWWW lahilltrU,lienke'tvaphanph6ithongtin.Trangdli
li~uWEB la'yn€n tangla mQtvanban,tudo chenthemcacmediakhacVaG.Cac
ngon ngli Java va Visual Basic du'QcnhungVaGHTML dS tang kha nangtrlnh
di~ncua trangdli li~u.Nhu'ngdi€u nay lam vi~cso<;1nthao trangWEB trd nen
phlict<;1Pd6i voi ngu'oiso<;1nthaoVI thongtin trlnhdi~n,phu'ongthlic trlnhdi~nva
nQidunghoa l~nVaGnhau.
. NgonnglicobantrongWEB laHTML. VI HTML la mQtngonnglidinhd<;1ng,do
dotrongWEB khongthSthttchi~nvi~cke'thual<;1icactrlnhdi~ndaco.
. Vi~cdu'athemcactinhnangmoiva cacd<;1ngmediakhacVaG,da lamcacbQ
duy~tlientvcphattriSn.Nhu'ngchinhdi€u naylamh<;1nche'khanangphattri€n
cuah~th6ng.BQduy~tkhongth€ lamQtlingdvngv<;1nnangdu'Qc.
. Caclienke'ttrenWEB la caclienke'tmQt-mQtva la caclienke'tthvdQng.Thttc
te',lienke'tcoth€ lanhi€u dc1uvala mQtcoche'tichcttctrongvi~cnh~nvaxii'ly
thongtin.
. WWW khongxacdinhkhoangnhlnd6i voi cactrangdli li~uhoi;1cacbQph~n
cuatrangdli li~u.
9
IV. Muc lieude'tAi:.
. v~mijtme')hinh
Lu?n vansekhaosatmQts6 mohinhCSDL hypermedia.Trencd sdphantichu'u
khuyetdi€m cacmohinhnay,lu~nvanse de xua'tmQts6 cai tieDtrenmo hinh
Dexter.
CaccaitieDchuyeula d€ t~okhaDangd€ bQduy~tcoth€ tichhQpcacthanhph§n
ngoaimakhongdn phaithayd6icactrlnhserverhaytrinhduy~t.Cacthanhph§n
ngoainaycochU'cDangtrinhdieDcacd~ngmediamaiduQcduavaoh~th6ng.
Ngoaira caccai tieDcongiilpchovi~ct6nghQpcaccomponentduQclinh dQng,
phongphilhdn.
. V~mij.tcaidij.t
Chudngtrinhcai d~tse dungcd che MDI cuaWindowsd€ mo phongca'uhinh
Client/Server.Dieu naysechophepsv chuy€nd6i de dangtrinhcai d~tsangcac
trinhServervaClientthvcsv.
Moi truongl~ptrinhla BorlandC 4.5.Trinhcai d~tduQCviet d d,~mghuangd6i
tuQng.Theomohinhde xua't,cacthanhph§nbi€u dieDcacd',lOgmediase la cac
thanhph§nbellngoaiduQctichhQpvaoh~th6ng.D€ thu~nti~nchovi~ct6nghQp
cacthanhph§nmaitITcaccacthanhph§ndaco,cacthanhph§ntichhQpdingduQc
caid~thanhcacd6ituQng.
ServerseduQccaid~tla ndilu'utruvaclingca'pcacd6i tuQngmedia,cacthongtin
rootad6ituQngmediavacacthongtinlienketcacd6ituQngdo.Clientla trinhv~n
d~ngcacthanhph§ntichhQpd€ trinhdieDcacd6ituQngduQcclingca'ptITserver.
10
Chddng3 : MQts6nh~nxetv@mohlnhHMD B
ThongtinhilltnrlIenmaytinhdmgngayeangphuet~p.Khongchilacae
d~ngmedia,taili~uhilltn1'concoth€ laband6,bangbi€u, ...Caelo~itai
li~unayl~iconhungquailh~phuet~pvoinhau.
Mo hlnhDexterdu"aramQtkie'ntruemd,ehopheptichhQpnhieuki€u du
li~ukhaenhau.Mo hlnhAmsterdamd~ttfQngHimvaovi~eke'thQpcae
du li~unguyenthuyd€ t~ora mQttrlnhdi€n phuet~p.Mo hlnhVilas-
Satiddu"ara khaini~mlink earnngueanhvaphanho~ehm~ngHMDB
thanhcaem~ngcon.
PhgnnayphantiehcaemohlnhHMDB trenvad\1atrencdsddod€ de
xua'tmQts6di tie'nlIenmohlnhDexter.
I- Mdday
Dexterla mQtmohlnhma,chopheptichh<;lpnhieuki€u componentvaoh~th6ng
HMDB. Trong mo hlnh nay,tgnghill trfi'dongvai tro chinhyeu : hill trfi'cac
componentva m6i lien h~giii'acacthanhphgnvdi nhaunhugiii'acomponentva
anchor,giii'aanchorvalink.Ca'utruc,cachthlictrlnhdi€n, vi~ctudnglac vdingu'ai
dung,...cuacomponentla nhii'ngthanhphgnngoaidu<;lctichh<;lpvaotgngbelltrong
cuah~th6ng.MQtlingd~ngHMDB dU<;lcxayd11ngtrennentfmgla tgnglu'utrfi'va
tgngbelltrong.
Tuy v~y,nhudatrlnhbaytrongchuang2.1,v~ncanmQtso'va'ndedn chuy trong
mohlnhDexternhu'linkcodc1yducacthanhphc1nhu'mQtcomponentkhong?Vi~c
truyenthongso'vanh~nketquaa caclinktinhloan?Vi~cdinhnghlacaccomposite
componentvacacanchortrongcompositecomponent?...
Mo hlnhAmsterdamneuva'ndevem6ilienh~thaigiangiii'acaccomponentvava'n
dengii'canhchoanchorvalink,nghlalakhidi theomQtlinkthltrlnhdi€n hi~nthai
codungl?i haykhong,cobienma'tkhonghaychithayd6imQtphc1n?
Mo hlnhVilas-SatidSingkorapoomduara khai ni~mlink earnngii'canhd€ dieu
khi€n s11dangbQgiii'acacthanhphc1ntrongmQtcompositecomponent.Tuy nhien
mohlnhnaykhongdec~pdenkhaini~manchor.
Mo hlnhAmsterdamva mohlnhVilas-SatidSingkorapoomduara mQtkhuonm~u
trongvi~cdangbQcactrlnhdi€n multimedia.Nhu'ngchinhvi~cdu'arakhuonm~u
nhuv~y,cacmohlnhnayda "clinghoa"vi~cph6ih<;lpcacmediad€ t?OnenmQt
trlnhdi€n.
Phc1nsailsexemxetl?i cackhaini~mcdbantrongmohlnhDexter.Tu dodu'flkhai
ni~mlinkearnngii'canhcungvdimQtso'eailienkhacd€ giaiquyetcacva'ndetrong
mohlnhDexter.
II- Anchor
11.1-Binh nghiaanchor
MQttrongnhii'ngdonggapchinhcuaDexterla vi~cxacdinhro cacanchor,lam
thanhmQtdu n6i tukientrucm?ngtdi cacnQidungcomponentc~th€. Khongco
anchor,caclinkchin6itdiloanbQcomponent.Tuyv~ymohlnhnayv~nchu'adu'ara
mQtdinhnghladc1yduvat6ngquatveanchor.Mo hlnhAmsterdamdatrlnhbaymQt
dinhnghlave anchorcuacompositecomponent,xemanchorcua mQtcomposite
componentla t~pcacanchorcuacac atomiccomponentn~mavi tri nut la trongcay
phanca'pcuacompositecomponentdo.(Chu'dng2.II.5-Ngii'eanhcualink).
29
Dinhnghlaanchorphaixua"tphMtITchinhbancha'tcuano : "anchorla mQtbQph?n
cuanQidungdii'li~ucomponentva co theduqcchQnbdi nguoidung".Composite
componentduqcca'uthanhtu caccomponentconchaucuano,nhuV?ycomposite
anchorsela t?PcacbQph?ncuacaccomponentconchaucuacompositecomponent
do.Ne'ugiathie'tlacacbQph?nnaydaduqcdinhnghlatrudc- nghlaladat6nt~icac
anchorbieudi~nchung,thl compositeanchorse chinhla t~pcacanchornay.Noi
cachkhac,compositeanchortrongtrUonghqpnaysela t?Pcacanchorconchau.Day
clingchinhladinhnghlavecompositeanchortrongmohlnhAmsterdam.
Lttuy la trongdinhnghlanay,cacanchorhoanloancothegiaonhauvadieunayla
phuhqptrongcaclingd~ngthvcte'.Vi d~trongmQtcomponentband6motaday
nui traidaiquamQtqu6cgia.R6 rang,anchorxacdinhdaynuise giaovdi anchor
xacdinhqu6cgia.Ho~ctrongmQtcomponenttextg6mnhieuchudngm~c,an~horla
mQtdo~nvansebi philbdianchorlachudngm~cchliado~nvando.
11.2-NQidunganchor
NQidunganchorla cacthongtindexacdinhmQtbQph?nnQidungcomponent.NQi
dunganchorcotheduqcxacdinhb~ngcachmotahaytinhloan(xem[2]).Tacothe
chiara2 lo~ianchor- dQcl?pvdikieucuacomponent:
. Anchordanhda'u: la mQtd6i tuqngduqcxacdinhtrVctie'ptutrongnQidung
component.Vi tri cualo~ianchornaytrongnQidungcomponentdaduqcxacdinh
ch~cch~n,khongph~thuQcvaolink truyxua"tde'nanchornayva clingkhongph~
thuQchQnIvacuanguoidung..
Vi d~: trongmQtbfllld6,anchorxacdinhbiengidimQtqu6cgiaduqcxacdinhr6
rangvac6dinh.Vi tricuaanchorkhongph~thuQcvaocaclinktroyxua'tde'nanchor
nayvaclingkhongph~thuQcvaongu'oidung.
Ho~cmQtvungvanbantrongdo~nvanduqcdanhda'uthamchie'u.Anchorxac
dinhvungvanbannaydu'qcxacdinhb~ngoffsettud§udo~nvande'nvungvanban
do.DaylamQts6du'qcxacdinhr6rangtuvi trivungvanbantrongdo~nvan.
. Anchor khongdanhda'u: la khi vi tri anchortrencomponentduqcxacdinh
thongquamQts6tinhloan.
Vi d~,vdi kieudii'li~ud~ngtext,keywordla mQtlo~ianchorkhongdanhda'u.
TrongWong hqpnay,anchorla mQtchu6iky tV.Vi~cl§n theolink de'nd§un6i
chinhla vi~ctlm cac xua"thi~ncua chu6ikeywordtrongvan ban dii' li~ucua
component.Ho~ctrenmQtbangtrongcdsddii'li~uquanh~,anchorcothedu'qcxac
dinhb~ngmQtpheploanchQn(selection).
Do vi tri anchorkhongdanhda'ukhongduqcxacdinhtrUdc,nennQidungcuano la
tr6ng.Vi tri anchorkhongdanhda'uph~thuQcvaosttchQnlttacuangu'oidungho~c
ph~thuQcvaoke'tquacualink tinhloankhi troyxua'tde'nanchornay.Ngu'oidung
30
xacdinhvi tri cuaanchorkhongdanhda'ub~ngcacphuongti~nnhumenu,button,
dialogbox...
11.3-Th6ng tin trmh di~ncua anchor
Componentdungcacthongtintrlnhdi€n cuanod€ xacdinhcachhi€n thicacanchor,
cachhi€n thicacanchorgiaonhau.Ngoaira,m6ianchorconco th€ cocacthongtin
trlnhdi€n rieng.Khi do,componentsedungcacthongtintrlnhdi€n riengcu.aanchor
thaythe'chothongtintrlnhdi€n anchorcuacomponent.
TheoDexter,d~un6icochuathongtintrlnhdi€n choanchortuongungvdid~un6i
do.DieunaykhonghQp19.Vi nhuv~ythl tronghic so~nthaolink,nguoidungse
phaiso~nthaocacacthongtintrlnhdi€n anchortrongcacd~un6ivadieunaylam
bQso~nthaolinkthemphuct~p.HonmIa,VIanchormotamQtbQph~ng~nlienvdi
component;nenthongtin trlnhdi€n anchornenduQcxacdinhtITchinhanchordo
ho~ctil'cacthongtintrlnhdi€n component.
Cacanchorclingco thongtinngii'nghlariengd€ guyracacthongtintrlnhdi€n m~c
dinhchochung.Vi~cchQnthongtintrlnhdi€n choanchorduQcxacdinhtheonguyen
t~ccacthongtin camngii'canhduQcuu tienhoncacthongtin trlnhdi€n phi ngii'
canh.Hlnhsauchotha'ycacthongtintrlnhdi€n anchorvathO'tt1chQnlt1achung.
CackhaibaocuamQtlopcomponent
SinhnghlacaclOpanchor
ThOngtintrinh
di~nm{tcdinh
cho component
ThOngtintrinhdi~n
m{tcdinhchotung
lOpanchor
3
Component Anchor 1
Cacthongtintrinh
di~nrH~ngcua
component 2
Cacthongtintrinh
di~nchoanchor
ThOngtintrinhdi~n
riengcuamQtanchor
Hinh 11-Thu tll u'uti~ncuacaeth6ngtin tr'lnhdi~n
Tranghlnhtren,thongtintrlnhdi€n cos6thU'tt1nhohancodQUuliencaohan.
TrangmQtanchor,nQidunglacacthongtind€ xacdinhmQtbQph~ncuacomponent;
conthongtintrlnhdi€n la thongtind€ componenttrlnhdi€n bQph~ndo.Neutrong
anchorkhongxacdinhthongtintrlnhdi€n, thlthongtintrlnhdi€n anchordu'Qcdinh
nghlatrangph~mvi componentsedu'QcsU'dvng.Neu trangcomponentkh6ngxac
dinhthongtin trlnhdi€n anchor,thl thongtin trlnhdi€n m?cdinhchoanchortrong
dinhnghlalopcomponentnaysedu'QcsU'dvng.
11.4-Anchor cling la component
Quaphantichdtren,tatha'ym6ilopcomponentd€u codinhnghlamQts6lopanchor
dungtrangph~mvi lOpcomponentdo.M6i anchorphilithuQcvaomQtlOpnaodova
cothongtinngfi'nghlarieng.AnchorclingconQidungdfi'li~uriengvathongtintrlnh
di€n rieng- dungd€ xacdinhvatrlnhdi€n mQtbQph~ncuacomponent.Themnfi'a,
trangcompositecomponent,anchordu'QcxacdinhtITcacanchortrongcacatomic
component.Nghlala tacoth€ apdvngkhaini~mcompositechoanchor,theonghla
la anchortrangcompositecomponentla t~phQpcaeanchortITcacatomic omponent
cuacompositecomponentdo.
32
Toml<;1ianchorcungla mQtcomponent,du'QcdinhnghiatumQtlop,cothStruyxua't
tucaccomponentkhac.DodoanchornencomQtid riengvaid nayla toancvctrong
h~th6ng.
BieunaykhacVOlDexter.Trongmoh'inhDexter,anchordu'Qcxacdinhb~ngC?p(id
component,id anchor)va id anchordu'Qcdinh nghiatu'ongd6i trongph<;1mvi
componentchliaanchordo.Bieu nayd~ndencacanchord nhfi'ngcomponentkhac
nhau,cothScocungid.
Voi cacanchorla toanbQcomponent,neuthongtin tr'inhdi~nho?cthongtin ngfi'
nghlacuachungkhacnhauth'ichungsedu'Qcxacdinhla caccomponentkhacnhau.
AnchorchidentoanbQcomponentco thSla anchordanhda'uho?cla anchorkhong
danhda'u.Neula anchordanhda'uchidentoanbQcomponent,h'ianchornayconQi
dungla tr6ng.Neula anchorkhongdanhda'u,th'inQidungcuaanchornaycochiden
toanbQcomponenthaykhong,la tuythuQcvaonQidungdu'Qcxacdinhbdi ngu'oi
dungho?cdolinktruyxua'tdenanchornay.
11.5-Anchor va giaodi~nngtiOidung
. VOlcacanchorngu6n(anchorcoit nha'tmQtlinkhu'ongrakhoicomponent): neu
la10<;1idanhda'uth'icacanchornayluondu'QchiSnthicungVOlcomponent;neula
10<;1ikhongdanhda'uth'ingu'oidungse chQncacanchor10<;1inaythongquacac
dialogbox,button,menu,...
. Voi cacanchordich(anchorchico caclink hu'ongvao): chidu'QchiSnthi neu
anchornayviladu'Qctruyxua'tden.Ngoaira,ngu'oidungcondu'Qclingca'ptuy
chQnhiSnthiho?ckhonghiSnthita'tcacacanchordich,caccomponenttruyxua't
denanchornay,...
Cacanchordichco thSla 10<;1ianchorkhongdanhda'u.Vi dVtrongmQtcdsddfi'li~u
quanh~,khi ngu'oidungsli'dvngpheptoanchQndSxacdinhmQtvungCIamQtt?P
cacdong)trongbangthlinha't.SaildotheomQtlinkla pheptoanketn6i (join)dSdi
chuySnsangbangthlibal.Ket quatinhtoancualinknayla caccQtdungtrongphep
chQn.Ket quanaydu'QchuySnchoanchordich.Vi~cxacdinhvi tri cuaanchornay
du'Qctienhanhb~ngcachdungpheptoanchieu.R6 rangtrongtru'onghQpanchor
dichla10<;1ikhongdanhda'u,vi tricuaanchorchidu'Qcxacdinhvaoluctruyxua'theo
link. ..
III. Compositecomponent
Mo hlnhAmsterdamthvccha'tlamohlnhDextercothemmQts6b6sungdvatren
cacyellc~ucuah~th6nghypermedial cachdinhthaigianchocaccomponentla
mediava m6i quanh~tr'inhdi~ngifi'acac componenttrongmQtcomposite
component.
..
33
Tuy v~y,va'nded~tra la li~ucacb6sungnaycobaaquatmQitrinhdi€n co th€ co
haykhong?Vi d\,l,trinhdi€n yell cguchi th11chi~nmQtphgncuamediava l~pl<;1i
lient\,lcchode'nkhicuQnquahe'tmQtcomponentvanbankhac.
TrongmohlnhAmsterdam,compositecomponentkhongchU'anQidungdfi'li~utrlnh
di~nmachihill trfi'cacm6ilienh~thaigiangifi'acaccomponentconvam6ilienh~
thaigiangiii'acomponentcha-componentcon.Nhu'ngnhu'v~y,mohlnhnaydiicU'ng
hoavi~ct<;10mQtrinhdi€n ti1'caccomponent.
Ti1'quandi€m h~th6ngmdtrongmohlnhDexter,ta se tachcd che't6nghQpcac
componentt<;10ratrinhdi~nthanhmQtlopdu'Qcd~td tftngbell trong.Tu'dngt\fnhu'
component,vi~cdinhnghlamQtlopcompositecomponentse donhii'ngngu'aiphat
tri€n richhQpvaoh~th6ng.
B~ngcachdu'acdche't6nghQpcaccomponentthanhtrinhdi~nvaolop dinhnghla
compositecomponent,vi~cdieu khi€n s11trinh di€n cac componentcon trong
compositetrdnendad<;1ng,linhho<;1thdn;khongchiconla mQt"mftu"duynha'tdo
h~th6ngapd~tnhu'trongmohlnhAmsterdam.Nhu'v~y,khikichho<;1tmQtlinktrong
compositecomponent,caccomponentconnaotie'pt\,lctrlnhdi~n,ngu'ngl<;1i,haybie'n
ma'tlados11dieukhi€n cuacompositecomponent.
Voi ca'utrucnay,compositecomponentsekhongcodii'li~u(trinhdi€n), machico
thongtin ngii'nghla,thongtin trinhdi€n (chocaccomponentcon),danhsachcac
componentthanhphgnvadanhsachcacanchor.Ti1'thongtinngfi'nghla,h~th6ngxac
dinhdu'Qclopdinhnghlacompositecomponentnayvasedungthongtin trinhdi€n
dinhnghlatrongcomposited€ th\fchi~nvi~ctrinhdi~ncaccomponentcon,trong
compositedo.Cacanchortrongcompositecomponentdu'Qcdinhnghlala t~panchor
ti1'cacatomic omponenttrongcompositecomponentdo.
Vi d\,lt<;1omQtcompositecomponentlamQtdanhsachcacth\fcv~ts6ngdu'Qctrongsa
m<;1c.Compositecomponentseg6mt~pcaccomponentth11Cv~ts6ngtrongsam<;1c.
Lopdinhnghlacompositesexacdinhvi~ctrinhdi€n cactenth11cv~thanhmQtdanh
sach,voicacthanhphgntrongdanhsachdu'Qcla'yti1'tencuacaccomponentcon.
Compositecomponentlu'ucacthongtintrlnhdi~nla mallchfi',mallnell,kichthu'oc
vavi tri cd'as6,ki€u vacochfi',...nhu'ngnQi dungcua compositela rang, nghlala
khonglu'utencuaba'tkycomponentconnaGtru'oc.
Khi du'Qcyell du trinhdi€n, compositecomponentse n<;1ptencuacaccomponent
thanhphgnvaocomponentlistbox.Vi~cbi€u di€n cacth\fCv~ts6ngtrongsam<;1cse
docomponentlistboxth\fchit$n.
34
Compositecomponent List box
Danhsachcac componentcon Tencomponent1
Tencomponent2
cKutruccomposite Trinh dieDcomposite
mnh 12-ctu trucvas1/.trlnhdi~ncompositecomponent
Vi~cdu'adinhnghIacompositecomponentvaothanhphgnbell trongdalamchoh~
thdngcokhanangchopheptichhQpmQitrlnhdi€n coth€ comakhonglamphuct?P
themmohlnh.Khi do,cachthuct6nghQpcactrlnhdi€n thanhmQtrlnhdi€n Ionhdn
trongmohinhAmsterdamsetrdthanhmQtlopdu'QcdinhnghIatungoaivadu'QCtich
h9Pvaotc1ngbelltrongcuamohinhmaio
Ngoaifa,khaini~mkenhtrlnhdi€n sekhongconcc1nthiel,VI :
. M6i component,k€ eacompositecomponent,delidu'QcdinhnghIathanhmQtlop.
Trong dinh nghIalop da xac dinh thongtin trinh di€n mi;lcdinh cho cac
component- la mQthinhthuckhaccuakhaini~mnhomcackenhtrlnhdi€n thanh
mQtlayoutnhu'trongmohinhAmsterdam.
. Vi~cki€m tra sv quatai tai nguyencling do lop dinh nghIacompositechili trach
nhi~m.M6i loptvxacdinhcc1nhii'nglo?icomponentconnaotrongtrlnhdi€n, tu
dococachki€m traquataitainguyenthichhQp.
IV- Anchor trongcompositecomponent
NeulopdinhnghIacompositecomponentkhongxacdinhro,thltrongtru'ongh9Pcac
anchortrongcompositecogiaokhacr6ngvoinhau,taxemxetcactru'ongh9Psail:
. Khi caccomponentcoquailh~t6 lien voi nhau,tatheonguyendc u'ulien cho
cacthongtinearnngii'eanhhdncacthongtinphingii'eanh.Tuy V?y,composite
componentv~ncoth€ di;ltl?i thutvu'uliennay.
Tronghinhsail,cacanchorcuacomponent3 vacomponent4 cophgngiaolacac
anchortrongcomponent5. Vi component4 va component5 dangdu'Qckich ho?t
trongph?mvi component3,nenngii'eanhtrongtru'onghQpnayla component3.Khi
ngu'oidungchQnvaophgngiaola mQtanchortrongcomponent5, thl anchorcua
component3du'Qcu'ulienhdn.
35
~.........
,i u uu
{-
/ 8
\
3]
. i,/! \
'l/ ~
sX/i
0 atomiccomponent-
8 compositecomponent
-----
Hinh 13-811giaonhaucuacacanchortrongnhungcomponent
coquailh~t6 tieDvOinhau
. Khi caccomponentkh6ngcoquanht%t6tienvdinhau,compositecomponentphih
xacdinhcacanchorcogiaovdivungdu'QchQnvahoingu'oidungchQnanchor
naotrangs6do.Tranghlnhsau,cacanchorcuacomponent2 vacomponent4 co
phcingiaola mQtanchortrongatomiccomponent5,Ngu'oidungphilixacdinhla
hQchQnanchorthuQcomponent2 haycomponent4.
'A-" -',,: :, 0, 0
\) : 83
/ :"-/--/\
0 " "'
/
4: 8
, " 0
~ ... :
:/ ", .:" ','
" "
:: 0: ,:
0 0 5 0,': .. ,,','
: ', ',-'
0--------
Hinh 14-811giaonhaucuacacanchortrongnhung
componentkh(')ngcoquailh~t6 tieDvOinhau
36
V-Link
V.I- Link vaanchorkh6ngdanhd«u
TheomohlnhDexter,linkbaog6mmQtdaycuahaihaynhi€u d§un6ivalinkduQc
kichho(;ltsethl;l'chit?nquatrlnhchQnra mQthoiflcnhi€u anchordichtucacd§un6i
TO cualinknay.
v.l.l- Ljnk tinhtoaDxaca/nhn(Jjdunganchoraich
Theosl;l'phanrichtrongchuang2.1.7-Anchor,vi tri anchorkhongdaubda'uchiduQc
xacdinhthongquamQts6tinhroan.VI V?y,khidi dQctheomQtlinkd€ troyxua'tde'n
cacanchorkhongdaubda'u,linknayphaixacdinhnQidungcuaanchordichtucac
thongso'cuaanchorngu6n.Dodolinkconla mQtie'ntrlnhxacdinhnQidunganchor
dich.
V.1.2-Ljnk tfnhtoaDxac a/nhjd cuaanchoraich
Khi Dextercha'pnh?nlinktinhroanvaanchorkhongdaubda'u,dad~nde'nht?quala
conhii'nglinkconhii'ngd§un6iTO khongcoid anchor.Khi componentkichho(;ltlink
vatruy€nthongso',linkco th€ dl;l'atrenthongso'naymachQnfa id componentdich
vakichhO(;ltcomponentdo.
id anchordich=idanchor
Hlnh 15-Ddunolkhongxacdinhtructcid
V.2- C«u truc cualink component
VI linklamQtie'ntrlnhxU'ly nenlinksekhongcothongtintrlnhdi~n.Clingtuang
W'nhucaccomponentkhac,cacloplinknaylamQthanhph§nngoaiht?th6ng,thuQc
37
Linkcomponent
Textcomponent
Anchorkhongdanhdffu Khongcoid
Thongtintrlnhdin HuangFROM
Khongcoid
I HuangTO
vaot~nghentrong,nenchungcotheduqcb6sung,suad6iba'tky lucnaomakhong
anhhuangde'nh~th6ng.
Khaini~mcompositevaanchorclingkhongapdl,lllgchocaclinkcomponent.Nhudi'i
trlnhbay trongchuang3.11.3-Thongtin trlnhdi~nanchor,d~un6i se khongchli'a
thongtin trlnhdi~nanchor.D~un6i se chi baog6mid cuaanchorcomponentva
huang.
Vi~cd~un6ichichli'aid cuaanchorcomponentcondfinde'nmQti~nlqi khac.Trong
mohlnhDexter,khikichho~tmQtcomponentb~ngdongl~nh,nguoidungphaicho
bie'tencomponent(h~th6ngseHmduqcid tuangli'ngcuacomponent);conkhikich
ho~tcomponentdQctheolink,h~th6ngphaibie'tid componentva id anchor(trong
componentdo).Khi xemanchorla component,hl trongca hai tru'onghqp- b~ng
dongl~nhhaydQctheomQtlink- h~th6ngchidn bie'ten(ho~cid)component.Khi
anchorcomponentduqckichho~thlh~th6ngseHmduqcvakichho~tcomponent
tuangli'ngchli'aanchordo.
ffmh 16-Vi d1)v~linkcomponent
Link duQct~ob~ngbQso~nthaolink.NguoidungchQncacanchorngu6n,anchor
dich.H~th6ngsehienthicacloplink thichhQp.NguoidungsechQnmQtlop link,
d~tenvaxacdinhcacthongso'(t~othanhnQidung)cholinkvilat~o.
38
ComponentA ComponentB
Anchora Anchorb
ThOngtintrlnhdin ThOngtintrlnhdin
Link component
Id anchora
HuangFROM
Id anchorb
HuangTO
V.3- Cae link khongeh~t
Ngu'Qcl(;livdimohinhDexter,Halasz[2]du'aracac19doh6trQlinkthongch?t:
. Chopheptrlhoanvii$cciflpnhifltvathudci)llracsailcacthaotacxoacomponentva
anchor.Di€u naylac6ichkhi linkdn du'Qcxoahaythayd6idangn~mtrenmQtmay
khachaydangbikhoaboimQtngu'oidungkhac.
. C6 ichtrangcactlnhhuo'ngmadfi'lii$ucuacomponentn~mngoaisvdi€u khien
cuahi$tho'ng.Nghlala khi dfi'lii$ucuacomponentdu'Qclu'utrongcactiflptin rieng
bii$tvacactiflptinnayc6thebi xoahaybi doichuyen.
. Cacdguno'i(chiVaGanchorhaycomponentvuabi xoa)c6thedu'QCd?ttroVaG
mQtcomponenthaymQtanchornaGkhacmathongdn phaica'utrucl(;litoanbQlink.
. Caclinkthongch?tdu'Qco'tinht(;lOradedanhch6chocacnutho?cdiemneoa
dguno'icualink,macacnutho?canchornayv~nconchu'adu'Qct(;lOfa.
ClingtheoHalasz,Svhii$ndii$ncuacaclinkthongch?tnhu'viflydu'Qcgiamsatboihi$
tho'ng- ho?cb~ngli$nhho?cdu'Qcthvchii$ntvdQng.Ngu'oidungsedu'Qcnh~cno'il(;li
cacdguno'ibi "tha'tl(;lc"cualink.
C6 4 tlnhhuo'ngv€ link thongch?tnaysinhtrangmQthi$hypertextxaydvngtheo
mohinhDexter:
1)Caccomponentadguno'icualinkdabixoa.
2)Anchormalinkthamchie'uWidabi xoa.
3) Cacdo'itu'Qngdfi'lii$udu'QcnQidungcuacomponentthamchie'uWi la thongsli'
dl,lllgdu'Qc.
4)GiatrianchorthonghQpli$.
Tranghaitru'onghQpdgutien,cacthaotacxoalamthayd6icacdo'itu'Qngdich;d~n
tdivii$cnhfi'ng19ntruyxua'tsaild6bi lo(;litIll.
Hai tru'onghQpsailthu'ongla ke'tquacuacacthaotaca ngoaisvdi€u khi€n cuahi$
tho'ng.Vi dv, cacdo'itu'Qngdfi'lii$ulamnQidungcuacuacomponentse tro nen
thongdungdu'Qcne'unQidungcuacomponentla tentiflptinvatiflptinnaydabi di
chuy€nhaybi xoa(tru'onghQp3).
Trangtru'onghQp4,dfi'lii$udu'QcxacdinhboinQidunganchortronenthonghQpli$
khi cacphgnlienquancuacomponentdabi thayd6ib~ngcacbQso(;lnthaoa ngoai
hi$tho'ng.N6i chungthltlnhhuo'ngnayla thongthephathii$ndu'QC,VIcacanchorc6
thev~nla hQpli$.Vi dVkhi componentla textvaanchorla mQtdo(;lnvan.Ne'unQi
dungtext bi thayd6i boi mQtbQ so(;lnthaoa ngoaihi$tho'ng,thl anchorcua
componentnayv~nc6thexacdinhdungd~nmQtdo(;lnvantrangtextd6- nhu'ngnQi
dungtexttrangvungxacdinhboianchorlahoantoanthayd6i.
Hannfi'a,cac19Ie cho'ngl(;liHalaszconla :
39
. Co nencha'pnh?nst{trlhoanvi~cC?pnh?tvadQnnk haykhong?Dieunaycon
ph'QthuQcvaovi~cph<ittrienngonnguhotvacacrangbuQctrenHMDB.
Cacthaotacxoa,dichuy€ncaccomponentduQchfutrongcact?Ptinriengcothe
duQCnganch~nbAngcaccdche'cuah~di€u hanh.Vi~csli'ad6icomponentchI
du<;1ctie'nhanhbAngcaclingd'Qngcoh6trQchoHMDB.
Vi~cxoacaccomponentphiiituanthuch~tchetheothlitt{:xoalink,xoaanchor,
vasailcunglaxoacomponent.
.
.
V.4-Link dim ngiicanh
Mo hlnhVilas- SatidSingkorapoomduarakhatni~mlienke'tearnngudmhnhung
chideh6trQchomQtlo~itrlnhdi€n d~cbi~tla l~nluQthienthicacthongtinthliye'u
ph'QthuQcvaod~ngdanhsachcuathongtinchuye'u.TrongmohlnhVilas - Satid
khongcokhatni~manchor.
Mo hlnhAmsterdamduarakhatni~mngueanhcualink, la nhungcomponentcon
trongcompositebi anhhuangkhi linknayduQckichho~t.
(j day,tasecattie'nmohlnhDexterbAngcachdungkhatni~mlinkearnngucanh.
Link earnngueanhla link chi t6nt~itrongph~mvi mQtcompositecomponent.
Nhunglinklo~inaylakhongtha'yduQctircaccomponentkhac.
Khai ni~mlink earnngucanhcungVOlvi~cdinhnghlal~icompositecomponent
(xemIII-Compositecomponent)nh~mh6trQchovi~ct6nghQpcaccomponentthanh
mQttrlnhdi€n. Link camngucanhclingca'pst{lienh~giuacaccomponenttrong
ph~mvi composite.Cdche't6nghQptrongdinhnghlalopcompositethlxacdinhcach
thlictrlnhdi€n cacnQidungla'ytircaccomponentcon.
Tadn lu'uy st{khacnhaugiuacackhatni~mngucanh.
. "Ngucanh"trongmohlnhAmsterdamla t?Pcaccomponenttrongca'utrucdiy
phanca'pvacaccomponentnayamliccaohdncomponentcolinkduQchQil
. "Ngucanh"trongmohlnhVilas-Satidla thanhph~ncuacompositenodedang
duQckichho~t.
. "Ngueanh"duQcxetadaylat?Pcaccomponentconcuacompositenode
Vi d'Qcompositecomponentg6mcomponentla mQtdo~nvideoduQcph'Qdeb~ng
mQtcomponentla mQtdo~ntext.Giuahatcomponentnayco linkke'tn6ichungVOl
nhau.Linkke'tn6igiuachungchitha'yduQctrongph~mvi cuacompositecomponent.
Khi trlnhdi€n chungdQcl?pho~ctrlnhdi€n trongph~mvi mQtcompositecomponent
khac,st{ke'tn6igiuacomponentvideovacomponenttexttrensekhongKayfa.
40
Video Van ban
.........................................................
1llliliilii:lillllilillllllliiiillllllillllllliillllllIIIIIIII
Componentvideo
" " "",." "...................................................................................................
-
Componenttext
Hinh 17-CaccomponentdQcl~p
Video
Vanban
Hinh 18-Caccomponentrongph~mvi composite
41
V .5-Chi~udai media
TrangmahlnhAmsterdam,cachdinhthaigianchocaccomponentIii mediavii m6i
quailh<$trlnhdi~ngifi'acaccomponentdu'Qcxacdinhb~ngcacclingd6ngbe)trang
compositecomponent.Cacclingd6ngbe)dinhnghlam6ilienh<$thaigiand d<;1ngcac
khoangthaigiantr~t6ithieuvii t6idagifi'acackhoangtrlnhdi~ncuacaccomponent
media.
Xemm6ilienh<$thaigiangifi'ahaicomponentmediasail:
Thaigian
.
I!!!!!m!!!!!!!!!!!mm!!!!t::ii:@gmmmmmmmmmmmmmmCo ponent1
Anchor
Component2
llinh 19-Lien h~thO'igiangiii'acaemedia
Tronghlnhtren,sailkhi component1 trlnhdi~ndu'Qc30giaythl component2 b~t
dc1utrlnhdi~n.Tuy V?y,va'nde nay sinh Iii khi ngu'aidungyeti cc1utrlnhdi~n
component1d t6cde)nhanhga'pdaithldieucothexayra Iii component1dacha'm
dlitr6i thlcomponent2 moitrlnhdi~n.Trangthvcte',vi<$cxacdinhcomponent2 b~t
dc1utrlnhdi~nkhicomponent1trlnhdi~nde'nme)tdo<;1nniiodosehQpIy hdnIii vi<$c
xacdinhcomponent2 b~tdc1utrlnhdi~nkhi component1 trlnhdi~ndu'Qcme)thai
gianniiodo.
Nhu'V?y,ta co thethaythe'khaini<$mthaigiantrlnhdi~nmediab~ngkhaini~m
chieudiii media.ChieudiiimediaIii khaini~mdungdeIu'Qnghoasvtrlnhdi~ncua
mediado.Vi d\!,voimediaIii videothlchieudiiimediadu'Qctinhb~ngso'frame;voi
mediaIii amthanhthlchieudaimediasetinhb~ngthaigiantrlnhdi~ntheoddnvi
giayd t6cde)thu'angcuat?Ptinamthanhdo.
42
Cae ddnvi dil'li<%utrongmedia
.
Component1
Component2
ffinh 20-Lien h~giiiacaemediatheochi~udid
Voi khaini~mchieudaimedia,m6iquailh~trlnhdi€n giuacacmediasekhangphi).
thuQcvaot6cdQtrlnhdi€n cuaph§nclingho~cvaovi~cchQnchedQthtfchi~ntrlnh
di€n nhanhhaych~m.
ThaychocacclingdangbQ,tadinhnghlathemmQtlOpanchord~cbi~tchocaclop
media.Lop anchornayxacdinhmQtdol;lntrenchieudaimedia.Vi di).mediala video
cochieudaila 50frame,thlco thecomQtanchorthaigianla khoang(20,30)ch~ng
hl;ln.Nghlala trongkhoangtueanh20deneanh30cuatrlnhdi€n, nguaidungchQn
anchortrencomponentvasekfchhol;ltcaclinknaodoxua'tphMtu anchornay.Chli
y lad day,nguaidungco thechQnanchorthaigianthongquamQtphuongti~nnao
donhubuttonch~nghl;ln.
B~ngcachthemkhaini~mlinkcamngueanhvakhaini~mchieudaimediavaoma
hlnhDexter,ta co thetl;lOra cackhanangdangbQthaigiangiuacaecomponent
medianhutrongmahlnhAmsterdam.ClingdangbQgiua2 componenttrongmQt
composite(trongmahlnhAmsterdam)setuongduongnhumQtlink earnngueanh
giua2 componentdovacocacd§un6itrodencacanchorthaigian.
Tuy nhien,docompositekhangconQidungriengnenkhangthecocacanchorthai
giantrencomposite.Dieunaydfindenvi~ckhangthedinhthaigiantrlnhdi€n cho
caccomponentcontrongcompositeb~ngkhaini~mchieudaimedia.
Nhudatrlnhbaytrongchuang3.III, compositecomponentclingla mQtthanhph§n
duQcdinhnghlatungoaivaduQcd~td thanhph§nbelltrongcuah~th6ng.Tu do,ta
co thegiai quyetva'ndedinhthaigiantrlnhdi€n chocaccomponentconb~ngcac
cachsail:
. Do thaigiantrlnhdi€n caccomponentconluanduQcxacdinhke tu llic biitdc1u
trlnh di€n composite.Han nua, thai diem trlnh di€n componentcon trong
43
.compositeladQcli;lp,khongpht;lthuQcho~canhhuangde'nba'tky componentcon
naokhactrongcomposite.Taco thexemthongtinnaynhula mQthongtintrlnh
di€n cuacomposite.Nhungcachnaykhongthui;lnti<$nkhi thayd6i tdcdQtrlnh
di€n compositecomponent.
Co thedungmQtmedialamnSnxuyensudtst;l'trlnhdi€n composite.Thai gian
trlnhdi€n caccomponentconkhacduQcxacdinhtheocacanchortrenmedianSn
nay.De khonganhhuangde'nst;l'trlnhdi€n cuacaccomponentconkhac,media
nSnco thela mQtcomponentamthanhkhongtie'ng,ho~cmQtcomponentvideo
cota'tcaframedSulacach'inhtrongsudt.
Cbudng4-Mo blnbDextercaititn
I- Din nhJjp
Cackhaosatv~anchor,link,compositecomponenttrongchuang3 nh~mmvcdich
lamro bonnhit$mvv vaca'utruccuachung.DV'atrencosacackhaosatd6,mQts6
thayd5i trenmohlnhDexterdu<;fcd~xua'tnh~mxacd8inhro chucnangcuatung
thanhph§ntronght$th6ngvalamchoht$th6ngc6khanangmarQngnhi~ubon.
II- De'xufitcaethaydo]trongmohinhDexter
11.1-Tfnhmdcuah~th6ng:
MQttrongnhfi'ngdi€m m(;lnhcuamohlnhDexterla tinhmacuamohlnhnay.VI V?y
mohlnhd~xua'tv~ngifi'l(;licacca'utrucchuye'ucuamohlnhDexter.Cacdi€m thay
d5i trongmohlnhmoiclingla nh~mvitomvcdichtangtinhmacuaht$th6ng;cac
thayd5id6la :
. Anchorla componentvac6tenrieng,id rieng.NQidunganchorla cacthongtin
xac dinhmQtbQph?ncuacomponent.Thongtin trlnhdi~ncua anchordU<;fc
componentsu dvngd€ hi€n thi anchord6.Do anchorclingla component,nen
dinhnghiachocaclOpanchordU<;fcduavitot§ngbentrong.
. ClingnhuDexter,link la componentva c6hai lo(;lila link cd dinhva link tinh
loan.Tuy nhiend€ lamcho link dQcl?p voi anchor,cacthongtin trlnhdi~n
anchorthayVI du<;fcd?ttrongd§undicualink component,hl trongmohlnhd~
xua't,chungdu<;fcd?ttronganchorcomponent.
. Khongc6 khai nit$mcompositeva anchorcholink component.Khongc6 khai
nit$manchorchoanchorcomponent.
Quavit$ckhaosatchitie'tcackhainit$manchorva link trongchuang3, mohlnhd~
xua'tchotha'ykhongchi link maca anchorclingdU<;fcxemla componenttronght$
th6ng.Khi mQithanhph§nd~ula component,§nglu'utrfi'cuamohlnhmoisechi
hoanloanchuacaccomponent.T§ngbentrongla naid€ nhfi'ngnguoiphattri€n ht$
th6ngtichh<;fpcaclo(;licomponentmojo
11.2-Kha nangbi€u di~nvalienke'tdil li~ucuamhlnhd~x~t :
. Cd che't5ngh<;fpcompositecomponentdu<;fcdinh ngh'iathanhmQtlOpva du<;fca
t§ngbentrong.Compositecomponentc6thongtinngfi'ngh'ia,thongtintrlnhdi~n,
45
.nhungkhongco nQidung.NQidungtrlnhdi~ncuacompositeduQcla'ytITcac
componentcon.
B€ mdrQngsvtrlnhdi~ncaccomponent,cohai10<;1ianchorduQcde nghi: 10<;1i
danhda'uvakhongdanhda'u.Anchorkhongdanhda'uconQidungxacdinhbdi
cacthongso'tungoaigti'iden.Cungvoikhaini~manchorkhongdanhda'u,vi~c
truyenbienvanh~nketquatrongcaclink tinhtoanclingduQcde nghi.Khi di
dQCtheolinkd€ troyxua'tmQtcomponent,linknayconcoth€ clingca'pcacthong
so'(neuco)d€ componentxacdinhvi tricuaanchordich.
B€ h6trQchovi~cchovi~cph6ihQptrlnhdi~ncaccomponenttrongcomposite,
khaini~mlinkearnngueanhduQcsti'dtJ.ngtrongmohlnhdexua't.Link camngu
eanhla link chi tan t<;1itrongph<;1mvi mQtcompositecomponent.Cung cac
component,nhungtrongcaecompositekhacnhauthlstftrlnhdi~nsekhacnhau.
CompositecomponentduQcxemla tieDtrlnhdungthongtintrlnhdi~nvacaclink
earnngueanhd€ dieuph6ivi~cthtfchi~ntrlnhdi~n.
Khai ni~mchiendai mediaduQcde nghidungthaycho thai giantrlnhdi~n
media.Voi khaini~mnay,takhongphaiduathemyeuto'thaigianvaomohlnh
mav§nt<;10duQcstfdangbQgiuacacmedia.
.
.
III- Caethanhphli'neuamohinh
mnh21-C«utrucatomicomponent
NQidung
MQtatomic omponentcocacthanhphffnsail:
. NQidung:laduli~ud€ trlnhdi~n.
. Thongtin ngfi'nghia: motangunghiacuacomponentnay.Thongtinngunghla
duQcdungd~xacdinhlopdinhnghlacomponentnay.Chungclingco th~dung
d~suyrathongtintrlnhdi~nm?cdinhcuacomponentdo.
. Thong tin tr'inhdi~n: la cacthongtin cholop dinhnghlacomponentbitt phudng
thti'ctrlnhdi~nnQidungcuano.Neu thongtin trlnhdi~nkhongduQcxacdinh
46
tuongminh,h~th6ngse Iffyd.c thongtin trlnhdi~nmi[lcdinhduQcsuyra tu
thongtinngil'nghla.
Cac id anchor:xacdinhcacanchortrennQidungcomponent..
mnh 22-GIU truccompositecomponent
MQtcompositecomponentcocacthanhph<1nsail:
. Thongtin ngii'nghia:motelngil'nghlacuacomponent.Thongtinngil'nghladuQc
dungdexacdinhlopdinhnghlacomponentnay.
. Thongtin trlnh di~n: la cacthongtincholopdinhnghlacompositecomponent
bie'tphuongthU'ctrlnhdi~nnQidungIffytucaccomponentcon.Ne'uthongtin
trlnhdi~nkhongduQcxacdinhtuongminh,h~th6ngse Iffycacthongtin trlnh
di~nmi[lcdinhduQcsuyratuthongtinngil'nghla.
Cac id anchor:xacdinhcacanchortrencompositecomponent..
mnh23-Glu truclink component
47
MQtlinkcomponentcocacthanhph~nsail:
. NQi dung: la ti;lpcac thong s6. Tie'n trlnh dU9Cxac dinh tu lOp dinh nghla
componentsechQncacanchorhuangratheoti;lpcacthongs6nayvacacthongs6
duQcclingca'ptuanchorngu6n.
. Thongtin ngunghia :motangunghlacuacomponentnay.
. D§u nol : la mQtbQ(idanchor,huang)dungdexacdinhhuangcuaanchortrong
link.
HInh 24-C3'utruc anchor component
MQtanchorcomponentcocacthanhph~nsail:
. NQidung: la cacthongtindexacdinhmQtvungduli~utrongnQidungcua
componentchuaanchornay.
. Thongtinngunghia : motangil'nghlacuaanchornay.Chungcothedungde
suyrathongtintrlnhdi€n m?cdinhcuaanchordo.
. Thongtin tr'inhdi~n: motacachthucmacomponentbienthianchor.Ne'uthong
tinnaykhongduQcxacdinhtuongminh,h~th6ngsela'ycacthongtintrlnhdi€n
m?c dinh duQcd?t trong thongtin trlnh di€n cua component.Ne'u trong
componentvfinkhongxacdinhthongtin trlnhdi€n choanchor,h~th6ngseH1Y
thongtintrlnhdi€n tronglapdinhnghlaanchor.Lap dinhnghlaanchorduQccho
khidinhnghlalOpchocomonentnay.
Anchorcompositela ti;lpcac anchorla'y tu cac atomiccomponentrongmQt
compositecomponent.
48
IV- Kitn trueh~thffngCSDL hypermediatheomohinheai
0"'"tIen
T~ngth\l'chi~n
Hinh25-Kie'ntrueh~th6ngCSDLhypermedia
Tgnghill tril'chliacacatomiccomponent,compositecomponent,anchorcomponent
valinkcomponent.Tgngnaychilamnhi<$mvvlu'utmcaccomponentmakhongbi€t
d€n dIu trucvacacthaotacdu'QcdinhnghlaireDcomponent.
Tgngbell trangla ndidinhnghlaca'utrucvacachanhvi trencacd6itu'Qngdil'li<$u.
Nhil'ngngu'oiph<ittri€nh<$th6ngc6th€ richhQpcaclOpdinhnghlacacki€u dil'li<$u
moihoi;icaclopcompositesadvngcaclopc6sand€ dinhnghlamQtrlnhdi~n.
Tgngthtfchi<$nla caclingdvngcvth€. Caclingdvngnaytruyxua'tcaccomponent
trangtgnglu'utril',trlnhdi~ncaccomponentnay,dangbQchungvoi nhau,ph6ihQp
chungthanhmQttrlnhdi~n,t(;10quatrlnhtu'dngtacvoi ngu'oidung,...thongquacac
hanhvi du'Qcdinhnghlasanchocaccomponentd6d tgngbelltrang.
Chu'dog5 : M{)ts6cai dijt chii ye'utroogmohloh
HMDB
Co nhieuky thu~tbill till vatroyxua'td11li~u.Do'ivoi d11li~ula cacd1,mg
media,vi~chill till vatroyxua'thuangdoh~dieuhanhdamnhi~m.Do'i
voi cacd1,mgd11li~ukhac,cacky thu~thaydungladiy canb~ngvabang
barn.Cay canb~ngthu~nti~ncho vi~cc~pnh~tnhunggay langphi
khonggianilia.Bangbarndu<;1cuadungkhikichthuocCSDL co theuoc
lu<;1ngdU<;1c.
Phgnnayde xua'tmQtthu~toancaid~tchotgnghill till trangmohlnh
Dexterclli ti€n. Thu~toannaykhongdoihoiphaiuoclu<;1ngWac kich
thuocCSDL vaclingkhonggaylangphikhonggianl@ till. Tuyv~y,gia
phaitrala thaigiantroyxua't.TrangmQtchungmvckhongyell du cao
veto'cdQtroyxua't,thu~ttoannayladungdu<;1c.
Ngoaira,vi~cbaadamSvantoand11li~uclingdu<;1cquantam.Phgnnay
clingdenghimQthu~ttoankhoipht;lcd11li~ukhicoSvco'voimQtso'h~n
ch€ trongh~tho'ngHMDB.
,
I - Cili d~t tangIda trO
1.1-Dijt va'od~
D€ quailly ilia cling,cach~dieuhanhluonphanilia clingthanhcacddnvi nhoco
kichthu'dcb?ingnhau.Khi lu'utill mQtt~ptin,h~dieuhanhsetie'nhanhcaccong
vi~csau:
. Ki€m tras6cacddnvicontr6ng.
. Ne'ut6ngdungIu'Qngcontr6ngkhongdud€ lu'ut~ptintn3n,h~dieuhanhbao16i.
. Uiy mQts6ddnvi conttfdovdit6ngkichthu'dcdud€ lu'utill t~ptintren,vaghi
nQidungt~ptinlencacddnvi do.
. Ghithongtinnhomcacddnvi nayvaovungquailly ilia.
. Danhda'udaslYdvngcacddnvitren.
Va'ndenaysinhla ne'uchQnkichthu'dchom6iddnvi quanho,s6cacddnvi dung
chomQtt~ptinsetanglenvalamgiamt6cdQtroyxua'tt~ptin.Dieunaycangtrd
nendangk€ hdnd6ivdicact~ptinWn.Ngu'Qcl(;li,ne'uchQnkichthu'dchom6iddn
vi quaWnsedftnde'nlangphi iliaclingdokhongslYdvnghe'tkhananglu'utill cua
mQtddnvi.
Va'nde tu'dngttfclingxayratrongcach~HMDB co tuhangchvcngancomponent
trd len. Da s6 cac componentla d d(;lngtext.Theo th6ngke cuaMullenderva
Tannenbaum[3],trongmffuthlY19978t~ptind(;lngtext,khoang85%cokichthu'dc
nhohdn8K va48%nhohdnlK. Nhu'v~yne'um6icomponentdu'Qclu'uthanhmQt
t~ptinriengbi~tvam6iddnvi trencacilia clinghi~nnaycokichthu'dct6i thi€u la
4K - thIlu'Qngiliaclingbi langphilara'tWn.
TrongHMDB, yetidu chuye'ud6ivdi h~lu'utn1'caccomponentla tranhlangphi
khonggianilia.VI ngu'aidungthu'angchitroyxua'tungcomponentvangaycavdi
mQtcompositecomponentthlso'caccomponentthanhph§ndu'Qctroyxua'tclinghic
clingkhongphaiIa quaWn;VI v~yyetidu ve thaigiantroyxua'tmQtcomponent
du'QcgiamnhytrongHMDB.
1.2-Philo tich
Doh~dieuhanhluonclingca'pcacWigQih~th6ng(systemcall)vecacthaotact~p
tinnhu'create,open,close,read,write,seek,changesize,nencaclingdvngslYdvng
t~ptin nhu'mQtthungchliamakhongdn bie'tde'ncdche'ca'pphatkhonggianilia
cuah~dieuhanh.Nhu'v~yva'ndeco thequythanhla tadangcomQt"thungchlia"
vdi dungIu'Qngt6idala khonggianiliacontr6ng,haytlmcachslYdvngthungchlia
naymQtcacht6tnha't.
51
1)Tu'ongtv nhu'cachquan19ilia cuah~di~uh~mh,taclingsetl;locoche'dip phcit
kh6nggianhilltrUtheotungdonvi.
Gia Sllcaccomponentcocungkichthu'ocL, tasechQndonvi lu'utrlldu'QcdIp phcit
cokichthu'ocdungb~ngL. Khi themmQtcomponent,asethemcomponentnayvito
cu6it~ptinlu'utrU.Khi xoamQtcomponent,hldetranhvi~cxua'thi~nkhoangtr6ng
trongt~ptinlu'utrU,tadungcomponentd cu6idela'pvito16h6ngnay.ffinhsauminh
hOI;lvi~cxoamQtcomponent.
Xoacomponent
thUi
Tru'ockhixoa Saukhi xoa
mnh 26-Xmicomponentvmdi~uki~nmQicomponentcocungkichthliUc
Khi caccomponentcokichthu'ockhacnhau,ro rangvi~cca'pphcitnhu'lIen sedlin
de'nvi~cxua'thi~nngaycangnhi~ucaekhoangtr6ngtrongt~ptinlu'utrUtrongqua
trlnhc~pnh~tHMDB.
Nhu'v~y,thayVIca'pphcitcacdonvi cokichthu'ocb~ngnhau,taseca'pphcitcacdon
vi cokichthu'ockhacnhau.Uudiemcuacachca'pphcitcacdonvi cokichthu'ocb~ng
nhaula t~ndvngdu'Qckh6nggianilia.Nhu'ngdi~unayyell c§ucacdonvi lu'utill
phaicungthuQcvitomQtt~ptin.Noi cachkhac,dedungcacdonvi lu'utill cokich
thu'ockhacnhau,taphaidungnhi~ut~ptinkhacnhau.
2) Kichthu'ocdonvi lu'utill
Ne'udelu'umQtcomponent,adungmQtdonvi lu'utrUc6kichthu'ocb~ngdungkich
thu'oc uacomponentd6;thlkhi lu'utill N componentc6 kichthu'ockhacnhau,ta
52
1
2
........................
i
.. ........
n-l
n
1
2
.......................
n
........ ..
n-l
clingphiHdungN ddnvi hill trfi'c6kichthuockhacnhauvasU'd~ngN t~ptin.H~u
quala sec6quanhieut~ptinlUlltrii'.Voi caccomponentc6kichthuoctITvaicht;lc
bytede'nhangcht;lcKb,hoi[lchdnnua,thls6t~ptinlUlltrii'sera'tIon.
B€ giams6t~ptinlUlltrii',tachQncacddnvi lUlltrii'labQicuamQtkichthuocnaod6
VI. Componentc6kichthuocM seduQCtachthanh
M =[MlUd*VI +DI =MI +DI
Ph~nduDI l~iduQclUlltie'ptrencacddnvi lUlltrula bQicuamQtkichthuocnaod6
Vz.
DI =[DllUz]*Vz+Dz=Mz+Dz
Tie'pwcnhuv~y,tac6
M =MI +Mz +...+Mn
trongd6 MI> Mz >...>Mn
Ph~nconl~ic6kichthuocnhonha'tMnseduQclUlltrongmQt~ptinlUlltrii'rieng.
Vi dt;l: voi VI =8Kb,Vz=2Kb,V3=lKb; mffutinc6kichthuoc53KbseduQCtach
thanh 6*8 +2*2 + 1
3) LUlltrucacmffutinc6kichthuocdunho« L)
Do kichthuoccacmffutinkhacnhau,nenvi~cxua'thi~nnhungkhoangtr6ngtrong
t~ptin lUll trii'la dieukhongth€ tranhkhoi.Va'nde la faHmcachkh6ngch{luQng
cackhoangtr6nglangphid mltcmongmu6n.
Nh~nxet: ne'utadungmQtthungchltad€ dvngnuocthlhi~usua'tsU'dt;lngthungla
100%.Hi~usua'tsU'dt;lngthungsegiamne'utadvngcat.Va hi~usua'tse tha'phdn
nua ne'uta dvng soi. LUll y tha'yhi~usua'tsU'dt;lngthungti l~nghichvoi ti s6 (kich
thuocv~tchlta/kichthuocthungchlta).Nhuv~y,ne'ulUllcacmffutin c6kichthuoc
nhohdnmQtgioih~nnaod6vaomQtddnvi lUlltrii'c6kichthuockhalOn,thlhi~u
sua'tsU'd~ngkhonggianiliasedunhod mltcmongmu6n.
QuatrlnhlUlltruduQctie'nhanhnhusan: coit~ptinlUllla mQtchu6icacddnvi lUll
trii'c6 clingkichthuocla k*L voi k la mQth~ngs6chQntrUoc.Tudngtv nhuthu~t
roan(1),khithemmQtmffutin,tathemvaoddnvi cu6iclingtrongt~ptinlUll.
Khi xoamQtmffutin,ne'umffutinnaykhongd trongddnvi lUllsancling,thltasetlm
mQthoi[lcnhieumffutintrongddnvi lUlld cu6it~ptin saDchot6ngkichthuqccua
cacmffutinnaykhongvuQtquakichthuocvungtr6ngtrongddnvi lUllmffutinVITa
xoa;r6idichuy€ncacmffutinHmduQcvaoddnvi lUllmffutinVITaxoa.
B~ngcachnay,vungtr6ngtrongm6iddnvi lUllkhongbaagiovUQtquaL. Nhuv~y
hi~usua'tsU'dt;lngt6ithi€u trenmQtddnvi lUllsela (k-l)*L/(k*L) =(k-l)/k.Nghlala
ne'uk cangIonthlhi~usua'tsU'dt;lngkhonggianilia cangcaD.N6i cachkhac,ne'u
53
kichthuocdonvi chuadingIonsovoikichthuoct6idacuamffutinthlhit%usua'tsa
d\lngrangcao.
DOO vi chO'a thO'
Xoacomponent
thuIi
Ddnvi chO'ad
cn6it~ptinh:iu
II
h
... ... ... ... ... ... ... ...
..
T~ptinh:iu
trdockhi xoaIi
T~ptin h:iusan
khi xoaIi
Hiob27-Ti~ntrlobxoaml}tcomponentcokichthu'8cdtiobi)
4) ChQncacthongs6trongcaid~tC\lth€ :
Cacthongso'phchxacdinhtrongthu~toannayla n (s61§ntach),VI (kichthuoct6i
thi€u trongl§n tachI), Vz , ...,Vn=L, k*L (kichthuocdonvi chuatrongt~ptinhilltill
cacmffutincokichthuoc<=L)
Nhudfi lu'uy, daso'caccomponentadl,mgtextvatheoth6ngke [3]thlkhoangphan
?
m1'acactextcomponentnaycokich thuocnhohan IK. d daychQnL =Vn=IK.
Docacht%dieuhanhdellchQnkichthuoccuaclusterlamQtlfiythuacua2,nenta
clingchQnVI, Vz , ...,Vn-I clingla lily thuacua2 d€ lamtangt6cdQtruyxua't.d day
chQnn=3,V2=2K,V[=4K.
54
II
12
-
........................
Nj,Nk,...
........ ..
NI
N2
........................
Nj
..........
Nk
..........
NI
N2
........................
........ ..
........ ..
........ ..
........ ..
Ta ch<;mk =8.Khi d6kichthuocddnvi hill trongt~ptinchuacaem§utinnhohdnL
la 8K, va nhuv~yhi<$usua'tsl\'dvngkhonggianilia t6i thi€u la 7/8.
II - Cili d;)l yifClht/chifn m(J1giao lac
11.1-Dijt va'nd~
Tranght$HMDB clingnhutrongba'tky cosadfi'lit$unaGkhac,ba'tky 10<;1tthaotac
naGtIeDcosadfi'lit$uclingphaibaadamsv tOaDvyndfi'lit$ucuaht$tho'ng.Trang
thvctS,doduangtruyenkhongbaadamthongsuo't,ho?cdongu6ndit$nkhonglien
tl;lc,ho?cdoco svco'a cacmaytr<;1mho?cdocodfi'lit$ubi khoabai cacmaytr<;1m
khacmacacthaotactIeDcoth€ bi ngihngangdQtngQt;d~nWisvkhongtOaDvyndfi'
lit$u.Vit$cbaadamchotOaDbQht$tho'ngtIeDmQtph<;1mvi rQnglamvit$cdungd~n
lientl;lcladieukhothvchit$nduQc.
d daysetrlnhbaymQtcochSkhoiphl;lCl<;1iSvtoaDvyndfi'lit$ukhicoSvco'lamgiao
taccha'mdlitba'thuang.
11.2-Phan tich
TrangquatrlnhhO<;1tdQngcuaht$tho'ng,conhieumaytr<;1mtruyxua'tdfi'lit$ud6ng
thai.Tuy nhien,khi mQtmaytr<;1mthvchit$nchu6icacthaotaclamco sa dfi'lit$u
khongtOaDvyn(chodSnkhichu6ithaotaccha'mdut),thlht$tho'ngphaibaadamla
ho?cnganch?nsvtruyxua'tucacmaytr<;1mkhacVaGnhfi'ngph~nkhongdungd~n
cuacosadfi'lit$u,ho?cb~ngmQtcochSnaGdolamcacmaytr<;1mkhacluontha'yco
sadfi'lit$ua tr<;1ngthaitOaDvyn.
d day trlnhbay mQtco chSthao tacao. Nghla la khi b~td~ugiaotac,mQtmaytr<;1m
seduQctoaDquyenthaotactIeDnhfi'ngdfi'lit$udn thiStchogiaotacdo.Clingluc
nay,cacmaytr<;1mkhacv~nduQcdQctOaDbQCSDL ho?cghiVaGnhfi'ngph~nkhong
gaytranhcha'pvdimaytr<;1mdangthvchit$ngiaotaco
Do'ivdimaytr<;1mdangthvchit$ngiaotac,maychutiSpnh?ncacyelldu dQcvaghi
t?P tin,nhungkhongghitrvctiSplencact?PtinV?t19maghiVaGcact?P tin t<;1m
thai.May chusekSthQpcact?Ptindfi'lit$uthvcsv vacact?Ptint<;1mthaid€ thvc
hit$ncacyell du dQc/ghicuamaytr<;1mvakhiSnchomaytr<;1mluonnhlnCSDL a
tr<;1ngthainhula toaDbQCSDL dangdanhriengchomaytr<;1mnay.
Khi cosvco'xayra lamgiaotaccha'mdutba'thuang,maychuchidongianhuybo
cact?Ptint<;1mthai.NSugiaotachoanta'trQnVynthlmaychusechuy€ndfi'lit$utu
cact?Ptint<;1mthaiVaGcact?Ptindfi'lit$uthvcSv.Trangquatrlnhchuy€ndfi'lit$utu
cact?Ptint<;1mthai,maychuphaibaadamr~ngkhongcogiaotacnaGkhactruyxua't
leDcacvlingdfi'lit$udangC?Pnh?t.
56
Cd che'naythaythe'yelldu baadamciih<$th6nglamvi<$cdungd~nlient\lCthanh
yellc~umaychuphailudndu'Qcbaadamlamvi<$clienWc.Ngoaifa,vi<$ccaid~tcd
che'nayclingphaibaadamsljthayd6ichu'dngtrinhlaItnhfft.
mnh 28-Thtfchi~ngiaotac
Cdche'caid~tnhu'san:
. Khi b~td~umQtgiaolaC,maytr~mphaigQihamBeginTransactionOdemaychu
bie'tvat~ocact~ptindfi'li<$ut~mthai.
. Khi ke'tthucgiaolaC,maytr~mphaigQihamEndTransactionOvamaychusegQi
hamTransferOdechuyendfi'li<$utucact~ptint~mthaivaocact~ptindfi'li<$uthljc
slj.
. Cac ham read,write, seek,open,closedu'Qcthay b~ngcac ham DBRead,
DBWrite,DBSeek,DBOpen,DBClose.Cacthamso'khigQihamlakhdngd6i.
. Cacvungdu'Qc~pnh~tsekhdngghingaylen t~ptindfi'li<$uth~tmadu'Qcghi
lent~ptint~m.CffutrucINFOBLOCK dungdehilltmoffset,sizecuavungc~pnh~t.
Cacvungc~pnh~tcuamQtt~ptindfi'li<$udu'Qclink voi nhauthanhmQtchu6itheo
thlitVoffsettangd~n.
. CffutrucINFOFILE hillgifi'tent~ptindfi'li<$uth~t,kkh thu'oct~ptin,contrDhi<$n
thai,handlecuat~ptin,contrDde'nblockcooffsetnhDnhfft.
57
ITP tindliliu tMt1 I'"
dQc .
ITP tindliliu tht 2 I
1)Ltiu
trli cac
lienM
Cac yell.......
gilia tp cffutruy
Tp tin dir Iiu tm
tintl;lffi xufft
vatMt
0-
HVung CP nMt lcua tp tin 1 I dQc/ghi--
2)T6ng
IVungcp nMt lcua tp tin 2 I h<;1pdli
liu
'-
.jVung cp nht 2 cuatp tin 1 I
I.... 1
typedefstructINFO BLOCK
{
int Next;
long Size;
long OrgOff;
long TempOff;
};
/I offsettrent~ptinth~t
II offsettrent~ptintl;tm
typedefstructINFOFILE
{
char
DINT
HFILE
LONG
LONG
LONG
FileName[140];
fuMode;
hFile;
Offset;
Size;
OldSize;
PtBlock;
II tent~ptindii'li~utMt
II handlecuat~ptindii'li~utMt
int
II kichthu'ocmOicuat1ji.ptindfi'li~uth1ji.t
II kichthu'ocdl cuat~ptindii'li~uth~t
II cantrode'nblockc~pnMt cooffsetnhOnhilt
};
LienM giii'at~ptintl;tmva
caet~ptindii'li~u
IT~Ptindii'li~utl;tmI
T~ptindii'li~u2
mob 29-Chny~ndt1li~nsankhi k€t thtiegiaohie
Tren mayddn,thu?troannayclingduQCsadvngnh~mbaav~dfi'li~ukhi bi ma't
ngu6ndQtngQt.Khi do,d~baadamt?Ptint<;1mthaiduQcghichiCicchiCinleuilia,h~
dieuhanhphaiclingca'pWigQih~th6ngFlushO,ghivungd~mcuat?Ptin leuilia.
Trenmayddn,co2 truanghQp
. Ne'ugiaotacchuahoanthanhmabi ma'tngu6n,thikhi co ho<;1tdQngl<;1i,h~th6ng
chi ddngianxoat?P tindfi'li~ut<;1m.
. Ne'ugiaotacdahoanthanhvabi ma'tngu6ntruocho?ctrongquatrlnhtransfer,
h~th6ngv~nbaadamho<;1tdQngt6tvi ca'utrueINFOBLOCK xacdinhcacvung
58
thayd6icuat~ptindl1'lit$uth~theooffsettuyt$td6i.HamtransferOdn b6sung
themtie'ntrlnhghicolenilia,danhda'unhl1'ngblockdi'idu'<;lcchuy€ntil't~ptindl1'
lit$ut<;lmsangdl1'lit$uth~t.
Thu~tloannaycou'udiemla chuy€ng~nnhu'l~ptuccacchu'cJngtrlnhvie'tchomay
dcJnthanhcacchu'cJngtrlnhtrenht$th6ngclient-server.Tuy v~y,ve thlfccha't,thu~t
loannaytu~ntlfhoacacgiaolac;nennolamch~mslfv~nhanhht$th6ng.
Ma hlnhVilas- Satiddexua'tvit$chiam<;lngHMDB thanhcacm<;lngcon- hyperset.
Bieu nayselamvit$ctranhdvngdQkhi c~pnh~tronenthu~ntit$nhcJn.Vit$cdang
bQhoacacgiaolac dangthaiconphVthuQcra'tnhieuve vit$cdexua'tmahlnhve
khoangnhln,diu hoitroyva'n,cacrangbuQctn3nHMDB. Nhl1'ngdieunayla vu'<;ltra
ngoaiph<;lmvi detai.
Hddngphattri@nmohlob CSDL hypermedia
1)Trongmohlnhciiitie'n,trlnhduy~thQ'chi~ncacthaolacnhu'kichho~t/dongmQt
component,chuy€nd6igiuaidltencomponent,...Cacthaolacnayphaidu'QCchuffn
hoathanht?Pcachamvathongbao,dongvaitragiaotie'pgiuatrlnhduy~tvacac
thanhphfintichhQp.Tu'ongtQ',m~tgiaotie'pgiuacompositecomponentvacac
componentconclingphaidu'Qcxacdinh.
2)Compositecomponentdu'Qcd(ut~otircaccomponentkhac.Caccomponentnay
l~icothela composite.TuyV?y,h~th6ngphainganch~nvi~cca'uthanhl~pvang
giuacaccomponent.
3)Vi~cquail19m~ngcaccomponentsetronenphl1ct~pkhikichthu'ocm~ngtronen
quaIon.Khi dom~ngcaccomponentnendu'Qcphanchiathanhcacm~ngcon.
Phu'ongthl1cphanho~chm~ngcaccomponentphaidu'Qcxacdinh.
4)Xacdinhkhoangnhlnvaphanchiaquyensitdvngchongu'oidung.Khoangnhln
baog6mcaccomponent,cacbQph?ncuacomponentvacacthaolactrencomponent
do.
5)XacdinhmQtngonnguhoid€ truytlmduli~utrenh~CSDL hypermedia.
Ungd\mg: .
. MQth~CSDL hypermediadongianclingdacothephattri€n thanhphfinmemtQ'
di€n bachkhoaloanthu',phfinmemd~yhQC.
. LamcacWEB nQibQconhieukhanangbi€u di~nboncacWEB nQibQhi~nnay.
CacbQduy~tHTML cothedu'Qcxemnhu'mQthanhphfintichhQpvaoh~th6ng
vacact?PtinHTML du'QcoilamQtd~ngmedianguyenthuy.
60
Tai lieuthamkhao.
[1]VilasWuwongse,SatidSingkorapoom.An Object-OrientedDataModelfor
HypermediaDatabases.IFIP 1991
[2]Kaj Gr0nbrek,RandallH. Trigg.DesignissuesforaDexter-basedhypermedia
system.Milano,November30- December4,1992
[3]MauriceJ. Bach.Thedesignof theUnixoperatingsystem.Prentice-Hall,1986
[4]Ch€ QuangQuy~n.Lu~nvanth~cSIkhoahQc.1996
[S]PaulDe Bra, Geert-JanHouben,YoramKornatzky.An ExtensibleDataModel
forHyperdocuments.Associationfor ComputingMachinery,1992
[6]RobertSedgewick,PrincetonUniversity.Algorithms.Addison-Wesley
PublishingCo.,2ndedition,1988.
Các file đính kèm theo tài liệu này:
- Đề Tài- Một số cải biên trên mô hình Dexter.pdf