Qhov sib txawv tseem ceeb ntawm kev siv daim duab kos duab thiab daim duab kos duab yog tias daim duab siv cov ntaub ntawv pab ua qauv rau lub kaw lus thiab cov neeg siv kev sib cuam tshuam thaum daim duab kos duab pab ua qauv kev ua haujlwm ntawm qhov system.
UML sawv cev rau Kev Sib Koom Ua Qauv Qauv Lus. Nws txawv ntawm lwm yam lus programming xws li C, C ++, Java. Nws pab tsim cov duab sawv cev ntawm lub software system. Object Orientation yog cov txheej txheem ntau tshaj plaws los tsim cov kev daws teeb meem software. UML daim duab pab los sawv cev rau Object Oriented cov ntsiab lus. Cov duab kos no pab tsim cov qauv kev xav thiab ua kom yooj yim thiab yooj yim rau kev nkag siab txog qhov system. Muaj ntau daim duab UML. Ob ntawm lawv yog siv cov duab kos duab thiab daim duab ua haujlwm.
Daim duab Case yog dab tsi?
Muaj ob hom qauv UML. Lawv yog cov qauv tsim qauv thiab kev coj tus cwj pwm. Structured modeling piav qhia txog cov yam ntxwv zoo li qub ntawm lub kaw lus thaum tus cwj pwm qauv piav qhia txog qhov xwm txheej ntawm lub cev. Daim duab siv rooj plaub yog daim duab coj tus cwj pwm.
Ib rooj plaub siv ib zaug sawv cev rau kev ua haujlwm siab ntawm lub kaw lus. Lub ellipse sawv cev rau ib rooj plaub siv, thiab lub npe sau rau hauv nws. Tus neeg ua yeeb yam hu xov tooj rau kev siv. Nws tuaj yeem yog ib tus neeg, lwm qhov system lossis lub koom haum uas muaj lub hom phiaj siv lub system. Tsis tas li ntawd, ib daim duab plaub sawv cev rau qhov ciam teb.
Daim duab tus neeg siv rau lub ATM yog raws li hauv qab no.
Daim duab 01: Siv Case Diagram
Tus neeg siv khoom yog tus ua yeeb yam. Nws siv cov xwm txheej xws li daim tshev nyiaj, tso nyiaj ntsuab thiab rho nyiaj. Cov kab sawv cev ntawm kev sib raug zoo ntawm cov neeg siv khoom thiab cov neeg siv khoom. Lub txhab nyiaj yog tus neeg ua yeeb yam thib ob, thiab nws ua cov ntaub ntawv siv sau lub ATM nrog nyiaj ntsuab. Tsis tas li ntawd, siv cov duab kos tuaj yeem sawv cev rau kev vam meej.
Muaj ob qhov kev vam khom hu ua suav nrog thiab txuas ntxiv. Thaum cov ntaub ntawv siv xav tau kev txhawb nqa ntawm lwm qhov kev siv, ob qhov kev siv no muaj kev vam khom "suav nrog". Txhawm rau thim nyiaj, lub kaw lus yuav tsum xub xyuas qhov nyiaj tshuav. Yog li ntawd, nws yog ib qho suav nrog kev vam khom. Tom qab kuaj xyuas qhov nyiaj tshuav, tso nyiaj lossis rho nyiaj, tus neeg siv khoom tuaj yeem luam daim ntawv txais nyiaj. Nws tsis tsim nyog, tab sis nws yog ua tau. Yog li ntawd, cov ntaub ntawv siv thiab luam daim ntawv txais nyiaj siv cov ntaub ntawv muaj kev vam khom "ntev". Zuag qhia tag nrho, daim duab siv cov ntaub ntawv pab ua qauv cov ntsiab lus ntawm qhov system.
Daim duab ua haujlwm yog dab tsi?
Daim duab qhia kev ua si yog lwm daim duab coj cwj pwm. Nws zoo ib yam li daim ntawv qhia kev khiav dej num uas sawv cev rau qhov ntws los ntawm ib qho haujlwm mus rau lwm qhov haujlwm. Cov kev ua ub no yog ntau yam kev ua haujlwm ntawm qhov system. Daim duab no muab kev pom siab ntawm qhov system. Ib qho piv txwv ntawm daim duab kos duab rau kev tswj tub ntxhais kawm yog raws li hauv qab no.
Daim duab 02: Daim duab ua haujlwm
Daim duab pib nrog lub xub pib. Thawj kauj ruam yog saib cov menyuam kawm ntawv cov ntsiab lus. Tom qab ntawd, muaj qhov xwm txheej. Lub cim pob zeb diamond sawv cev rau qhov xwm txheej. Nws tshuaj xyuas seb tus menyuam puas muaj lossis tsis muaj. Yog tus menyuam kawm ntawv tshiab, ces cov kauj ruam yog tsim cov ntaub ntawv rau tus menyuam kawm ntawv tshiab.
Tsis tas li ntawd, yog tias tus menyuam kawm ntawv twb muaj lawm, tseem muaj lwm yam kev kuaj xyuas seb tus menyuam kawm ntawv puas tseem kawm lossis tsis tau. Yog tias tsis yog, nws muaj peev xwm tshem tawm cov ntaub ntawv tub ntxhais kawm. Thiab, yog tias tus menyuam kawm ntawv tseem tab tom kawm, nws tuaj yeem hloov kho cov ntaub ntawv.
Tsim, hloov kho thiab tshem tawm cov ntaub ntawv koom ua ke siv lub cim sib koom. Lub cim no sib txuas ntau yam ua rau hauv ib qho. Thaum kawg, cov tub ntxhais kawm cov ntsiab lus tuaj yeem pom. Cov cim kawg qhia txog qhov ua tiav ntawm qhov ntws ntawm cov txheej txheem. Nov yog daim duab piv txwv.
Dab tsi yog qhov txawv ntawm Kev Siv Case Diagram thiab Daim Duab Ua Haujlwm?
Daim duab siv daim duab qhia txog tus neeg siv kev cuam tshuam nrog lub kaw lus. Ntawm qhov tod tes, daim duab qhia kev ua si sawv cev rau cov yeeb yam ntawm kev ua lossis kev tswj xyuas hauv ib qho system zoo ib yam li daim ntawv qhia. Daim duab siv cov ntaub ntawv pab ua qauv rau lub kaw lus thiab cov neeg siv kev sib cuam tshuam thaum daim duab qhia kev ua haujlwm pab ua qauv kev ua haujlwm ntawm qhov system. Qhov no yog qhov sib txawv tseem ceeb ntawm daim duab siv daim duab thiab daim duab ua haujlwm.
Summary – Siv Case Diagram vs Activity Diagram
Siv cov duab kos duab thiab daim duab qhia kev ua si yog tus cwj pwm UML daim duab uas piav qhia txog qhov xwm txheej ntawm lub cev. Qhov sib txawv ntawm kev siv daim duab kos duab thiab daim duab kos duab yog tias daim duab siv daim duab siv pab ua qauv rau lub cev, kev sib cuam tshuam cov neeg siv thaum daim duab kos duab pab ua qauv kev ua haujlwm ntawm qhov system. Cov duab kos no muab ntau yam zoo. Lawv pab ua qauv kev lag luam uas yuav tsum tau ua thiab kom nkag siab txog qib siab ntawm kev ua haujlwm ntawm qhov system.