【正文】
應(yīng)用復(fù)雜的計價規(guī)則 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 11 案例 2 ?選課系統(tǒng) ?項(xiàng)目的目標(biāo)是將以前的選課系統(tǒng)用新技術(shù)加以改造,使得老師和學(xué)生可以通過客戶端在線訪問 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 12 問題描述 問題 The outdated and largely manual student registration process at Wylie College 影響者 Students, professors, and College administration. 造成 A slow and costly process bined with dissatisfied students and professors. 成功的解決方案 Improve the image of the College, attract more students, and streamline administrative registration functions. 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 13 產(chǎn)品定位描述 For Wylie College students, professors, and the course registrar Who Attend, teach, or administer college courses The Course Registration System Is a tool That Enables online course registration and access to course and grade information Unlike The existing outdated mainframe registration system Our product Provides uptodate information on all courses, registrations, teachers, and grades to all users from any PC connected via the College LAN or inter. 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 14 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 15 Phase No. of Iterations Start End Inception Phase 1 Week 1 Week 8 Elaboration Phase 1 Week 8 Week 15 Construction Phase 3 Week 15 Week 31 Transition Phase 2 Week 25 Week 32 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 16 Phase Iteration Description Associated Milestones Risks Addressed Inception Phase Preliminary Iteration Defines business model, product requirements, Software Development Plan, and business case. Business Case Review Clarifies user requirements up front. Develops realistic Software Development Plans and scope. Determines feasibility of project from a business point of view. 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 17 ? E1迭代將對 , 的高風(fēng)險用例進(jìn)行分析和設(shè)計。它不是用來描述軟件類、軟件架構(gòu)領(lǐng)域?qū)踊蛴新氊?zé)軟件對象的一組圖。它可以顯示: ? 領(lǐng)域?qū)ο蠡蛘吒拍铑? ? 概念類之間的關(guān)聯(lián) ? 概念類的屬性 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 21 R e g i s t e rI t e mS t o r ea d d r e s sn a m eS a l ed a t et i m eP a y me n ta m o u n tS a l e sL i n e I t e mq u a n t i t yS t o c k e d i n*H o u s e s1 . .*C o n t a i n e d i n1 . .*R e c o r d s s a l e o f0 . . 1P a i d b y11111111C a p t u r e d o n ?c o n c e p to r d o m a i no b j e c ta s s o c i a t i o na t t r i b u t e s可視化字典 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 22 S a l ed a t et i m ev i s u a l iz a t io n o f a r e a lwo r ld c o n c e p t in t h ed o m a i n o f i n t e r e s ti t i s a n o t a p ic t u r e o f as o f t wa r e c l a s sS a l e s D at a b as es o f t w a r e a r t i f ac t 。 no t pa r to f d o m a i n m od e lS a l ed at et i m ep r i n t ( )avoid上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 23 ?避免瀑布思維傾向,為完成詳盡或“正確”的領(lǐng)域模型而進(jìn)行大量建模工作。 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 24 為什么需要領(lǐng)域模型 ?它是一種可視化語言,傳達(dá)了真實(shí)世界中的概念或者該領(lǐng)域中的概念類 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 25 概念類 ?概念類可以由符號,內(nèi)涵和它的外延來表示 ? 符號 代表概念類的詞或者圖像 ? 內(nèi)涵 概念類的定義 ? 外延 概念類應(yīng)用的例子集合 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 26 Sale date time 概念符號 “sale表示購買交易的 事件,具有日期和時間” 概念內(nèi)涵 sale1 sale3 sale2 sale4 概念外延 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 27 領(lǐng)域模型和分解 ?分而治之 處理復(fù)雜性的手段 ?面向?qū)ο蠓椒ㄅc結(jié)構(gòu)化分析方法的核心區(qū)別在于:是由概念類(對象)分解的而不是功能分解的 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 28 銷售領(lǐng)域的概念類 Store Register Sale 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 29 識別概念類 ?在我們所關(guān)心的領(lǐng)域,我們的目標(biāo)是針對感興趣或者有意義的概念類建立領(lǐng)域模型 ?只針對目前正在設(shè)計的場景 ?指南 : 對領(lǐng)域模型而言,建立較多的細(xì)粒度的概念類要比粗略的建模來得好 ?可以有沒有屬性的概念類或者僅僅擔(dān)任行為角色的概念類 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 30 識別概念類的策略 ?重用和修改現(xiàn)有模型 ?采用概念類類別列表 ?確定名詞 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 31 采用概念類類別列表 ?某些公共類別 ?例如 ? 物理的或者實(shí)際的對象 ? 地點(diǎn) ? 組織 ? … ? See 概念類種類 例子 Records of finance, work, contracts, legal matters Receipt, Ledger(分類帳 ), ExploymentContract, MaintenaceLog Financial instruments and services LineOfCredit Stock Manuals, documents, reference papers, books DailyPriceChangeList, RepairManual 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 32 通過名詞識別找到概念類 ?為了找到問題域中的公共詞匯,可以考慮從需求文檔中以及開發(fā)團(tuán)隊成員的知識中來找詞匯。對于每一次運(yùn)貨,系統(tǒng)必須記住搬運(yùn)的 時間 , 誰 接收了貨品, 什么貨品 ,每一種的 數(shù)量 有多少 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 34 對銷售領(lǐng)域的備選概念類 ?對于 Process Sale的簡化情形 ? Register Product Specification ? Item SalesLineItem ? Store Cashier ? Sale Customer ? Payment Manager ? ProductCatalog 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 35 報表對象 — 是否相關(guān) ? ?收據(jù)是一次銷售的報告。 ?但是收據(jù)又有特殊的作用,在我們退貨時,我們需要收據(jù)作為憑據(jù) ?因此,是否需要將依據(jù)你考慮的是哪一個用例來定 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 36 ?采用概念類目錄列表和從需求中采用名詞識別法將所有的備選概念類列出 ?在那些需要將關(guān)系信息保存的地方添加關(guān)聯(lián) ?依據(jù)信息需求添加必要的屬性 上海交通大學(xué)計算機(jī)科學(xué)與工程系 2022/8/17 37 地圖制作策略 ?采用實(shí)際地名 ?將無關(guān)的特征