Responsive image
博碩士論文 etd-0716108-135359 詳細資訊
Title page for etd-0716108-135359
論文名稱
Title
以物件限制語言結合電腦輔助軟體工程工具強化企業邏輯表達之研究
Improving Business Logic Expression with OCL and CASE Tool
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
95
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2008-06-20
繳交日期
Date of Submission
2008-07-16
關鍵字
Keywords
模式驅動架構、物件限制語言、統一塑模語言
Model-Driven Architecture, Unified Modeling Language, Object Constraint Language
統計
Statistics
本論文已被瀏覽 5870 次,被下載 1
The thesis/dissertation has been browsed 5870 times, has been downloaded 1 times.
中文摘要
傳統的軟體測試往往在程式設計階段才進行且花費太多的成本。根據相關研究指出,如果能夠在程式設計階段以前找出錯誤,則修正錯誤的成本可以被降低。目前統一塑模語言 (UML)已成為物件導向系統分析與設計的標準塑模語言,過去這幾年來在整合UML、模式驅動架構 (MDA)與電腦輔助軟體工程工具 (CASE Tool)的努力上已經有了相當不錯的成果,其主要目的是要增加系統開發的生產率 (Productivity)。以物件限制語言 (OCL)描述企業邏輯限制已在這個領域裡成為一個主要的趨勢。
本研究會提出一個方法論說明在系統分析與設計的階段以OCL來描述PIM的企業邏輯限制,接著使用CASE 工具將OCL表達式轉換為程式碼模式,最後以模擬的方式實施模式測試。本研究會使用三個真實的案例與一個CASE工具來實施方法論的可用性測試 (包含方法論的概念、應用與優點)。藉由這個方法,可於系統分析與設計的階段先找出有關企業邏輯限制的軟體錯誤,因此可以減少軟體測試的成本與增加系統開發的效率。
Abstract
Traditionally software testing is performed at the coding stage and is costly. Prior research indicated that if the errors can be found prior to the coding stage, the cost for fixing the errors can be reduced. Today, Unified Modeling Language (UML) has become a standard modeling language in object-oriented systems analysis and design. Over the past few years a considerable effort has been made in synthesizing UML, MDA (Model-Driven Architecture), and CASE tool to increase the productivity of the system development. Specifying the business logic constraints with Object Constraint Language (OCL) has become a main trend in this area.
This study presents a methodology to specify the business logic constraint with OCL on the platform independent model during the systems analysis and design stage, then transform the OCL expressions into the code model and do the model testing simultaneously with a CASE tool. Three real-world cases and a CASE tool are used to test the usability (including the concepts, application, and advantages) of the proposed methodology. With this approach, software bugs related to business logic constraints can be found at the systems analysis and design stage and thereby reduce the cost of software testing and enhance the efficiency of system development.
目次 Table of Contents
目錄
致謝詞......................................................................................... I
中文摘要....................................................................................... II
Abstract....................................................................................... III
目錄........................................................................................... IV
圖目錄......................................................................................... VI
表目錄......................................................................................... VIII
第一章、緒論................................................................................... 1
第一節、研究背景與動機......................................................................... 1
第二節、研究目的與範圍......................................................................... 2
第三節、論文架構............................................................................... 2
第二章、文獻探討............................................................................... 4
第一節、軟體測試............................................................................... 4
第二節、模式測試............................................................................... 6
第三節、統一塑模語言與類別圖................................................................... 6
第四節、物件限制語言........................................................................... 15
第五節、模式驅動架構........................................................................... 21
第六節、電腦輔助軟體工程工具................................................................... 23
第三章、研究方法............................................................................... 26
第一節、軟體工程研究法......................................................................... 26
第一節、研究流程............................................................................... 27
第四章、企業邏輯表達方法論..................................................................... 31
第一節、以OCL表達企業邏輯限制.................................................................. 34
第二節、將類別圖與OCL轉換為程式碼.............................................................. 35
第三節、人工修補程式碼與實施模擬測試........................................................... 40
第五章、可用性測試............................................................................. 44
第一節、可用性測試案例-A鋼鐵公司............................................................... 44
第二節、應用案例一-查詢包裝線進料鋼捲......................................................... 46
第三節、應用案例二-前儲區儲位產生規則......................................................... 57
第四節、應用案例三-包裝線preset............................................................... 69
第五節、觀察與評估............................................................................. 79
第六章、結論................................................................................... 82
第一節、研究成果............................................................................... 82
第二節、研究限制............................................................................... 82
第二節、研究貢獻............................................................................... 82
第三節、未來研究方向........................................................................... 83
參考文獻....................................................................................... 84
中文參考文獻................................................................................... 84
英文參考文獻................................................................................... 84

圖目錄
圖2-1 軟體開發過程中修正錯誤成本的示意圖....................................................... 5
圖2-2 UML2.0圖型分類........................................................................... 9
圖2-3 類別之表示符號........................................................................... 10
圖2-4 實體類別表示符號......................................................................... 10
圖2-5 邊界類別表示符號......................................................................... 11
圖2-6 控制類別表示符號......................................................................... 11
圖2-7 以自然語言表達類別圖的限制............................................................... 14
圖2-8 OCL表達式架構............................................................................ 18
圖2-9 銀行帳戶類別圖........................................................................... 19
圖2-10 模式驅動架構三層次轉換的架構圖.......................................................... 22
圖3-1 研究流程................................................................................. 27
圖3-2 可用性測試的流程......................................................................... 29
圖4-1 模式測試方法論的流程..................................................................... 31
圖4-2 企業邏輯表達方法之流程................................................................... 32
圖4-3 Intel公司人事管理系統類別圖.............................................................. 33
圖4-4 轉出的Company類別程式碼.................................................................. 38
圖4-5 轉出的Employee類別程式碼................................................................. 39
圖4-6 修補Company類別程式碼.................................................................... 40
圖4-7 修補Employee類別程式碼................................................................... 41
圖4-8 測試主程式的程式碼....................................................................... 42
圖4-9 模擬測試結果............................................................................. 43
圖5-1 查詢包裝線進料鋼捲之活動圖............................................................... 47
圖5-2 查詢包裝線進料鋼捲之循序圖............................................................... 48
圖5-3 查詢包裝線進料鋼捲之類別圖............................................................... 49
圖5-4 轉出的HMIP230_01類別程式碼............................................................... 54
圖5-5 HMIP230_01類別的程式碼修補............................................................... 55
圖5-6 查詢包裝線進料鋼捲之測試主程式的程式碼................................................... 56
圖5-7 查詢包裝線進料鋼捲之實施人工模擬測試的結果............................................... 56
圖5-8 前儲區儲位產生規則之活動圖............................................................... 59
圖5-9 前儲區儲位產生規則之循序圖............................................................... 60
圖5-10 前儲區儲位產生規則之類別圖.............................................................. 61
圖5-11 轉出的Compute類別程式碼................................................................. 66
圖5-12 Compute類別的程式碼修補................................................................. 67
圖5-13 前儲區儲位產生規則之測試主程式的程式碼.................................................. 68
圖5-14 前儲區儲位產生規則之實施人工模擬測試的結果.............................................. 68
圖5-15 包裝線preset之活動圖.................................................................... 70
圖5-16 包裝線preset之循序圖.................................................................... 71
圖5-17 包裝線preset之類別圖.................................................................... 72
圖5-18 轉出的SDPKLSendM00類別程式碼............................................................ 77
圖5-19 SDPKLSendM00類別的程式碼修補............................................................ 78
圖5-20 包裝線preset之測試主程式的程式碼........................................................ 78
圖5-21 包裝線preset之實施人工模擬測試的結果.................................................... 79

表目錄
表2-1 UML2.0的13種圖形......................................................................... 7
表2-2 類別間之關係與表示符號................................................................... 13
表2-3 UML/OCL CASE工具......................................................................... 25
表5-1 查詢包裝線進料鋼捲之使用個案............................................................. 46
表5-2 查詢包裝線進料鋼捲之商業限制............................................................. 49
表5-3 前儲區儲位產生規則之使用個案............................................................. 57
表5-4 前儲區儲位產生規則之商業限制............................................................. 61
表5-5 包裝線preset之使用個案................................................................... 69
表5-6 包裝線preset之商業限制................................................................... 72
表5-7 A鋼鐵公司工程進度報告表.................................................................. 80
表5-8 採用企業邏輯表達方法論前後的差異......................................................... 80
表5-9 進行效能與效率評估後之結果............................................................... 81
參考文獻 References
參考文獻
中文參考文獻
吳仁和,「物件導向系統分析與設計:結合MDA與UML」,二版,智勝,台北,2007年。
劉紀良,「以物件限制語言作為類別限制及操作規格描述之研究」,中山大學資訊管理研究所碩士論文,2006年1月。
陳易震,「模式測試:建構測試路徑方法論與應用」,中山大學資訊管理研究所碩士論文,2008年6月。
許令信,「模式測試整合方法論之研究」,中山大學資訊管理研究所碩士論文,2008年6月。
英文參考文獻
Arlow, J., and Neustadt, I., UML 2 and the Unified Process: Practical Object-Oriented Analysis and Design, Second Edition, Addison-Wesley, Boston, 2005.
Booch, G., Rumbaugh, J., and Jacobson, I., The Unified Modeling Language User Guide, Addison-Wesley, Massachusetts, 1999.
Boehm, B., Software Engineering Economics, Prentice-Hall, New Jersey , 1982.
Broy, M., Jonsson, B., Katoen, J. P., and Leucker, M., Model-Based Testing of Reactive Systems, Springer, New York, 2005.
Fowler, M., and Scott, K., UML Distilled: A Brief Guide to the Standard Object Modeling Language, 2nd Edition, Addison-Wesley, Massachusetts, 2000.
Fowler, M., UML Distilled: A Brief Guide to the Standard Object Modeling Language, Third Edition, Addison-Wesley, Massachusetts, 2003.
IEEE, Institute of Electrical and Electronics Engineers, Standard Glossary of Software Engineering Terminology, [Online Information; retrieved 06/13/2008.] http://ieeexplore.ieee.org/iel1/2238/4148/00159342.pdf, 1990.
Jacobson, I., Christerson, M., Jonsson, P., and Övergaard, G., Object-Oriented Software Engineering: A Use Case Driven Approach, Addison-Wesley, Reading, Massachusetts, 1994.
Kleppe, A., Warmer, J., and Bast, W., MDA Explained, Addision-Wesley, Boston, 2003.
Myers, G. J., Art of Software Testing, 1st Edition, Wiley, New York, 1979.
Naur, P., Randell, B., and Buxton, N., Software Engineering: Concepts and Techniques, Mason/Charter Publishers, Inc., 1976.
Nunamaker, J., F. Jr., Chen, M. and Purdin, T. D. M., “Systems Development in Information Systems Research,” Journal of Management Information Systems, Vol. 7, No 3, pp.89-106, 1991.
OMG, The Object Management Group, Object Constraint Language Specification, Version 2.0, http://www.omg.org/cgi-bin/doc?formal/2006-05-01.
Pressman, R., Software Engineering A Practitioner’s Approach, 6th Edition, McGraw Hill, 2004.
Rosenberg, D., and Scott, K., Applying Use Case Driven Object Modeling with UML: An Annotated e-Commerce Example, Addison-Wesley, Massachusetts, 2001.
Utting, M., and Legeard B., Practical Model-Based Testing: A Tools Approach, Morgan Kaufmann, Boston, 2007.
Vick, C. R., and Ramamoorthy, C. V., Handbook of Software Engineering, Van Nostrand Reinhold, New York, 1984.
Warmer, J., and Kleppe, A., The Object Constraint Language Second Edition-Getting Your Models Ready for MDA, Addison-Wesley, Boston, 2003.
Wegner, P., Paradigms of Information Engineering, The Study of Information, John Wiley & Sons, New York, 1983, pp. 163-175.
Wu, J. H., Shin, S. S., and Heng, M. S. H., “A Methodology for ERP Misfits Analysis,” Information and Management, Vol. 44, No. 8, 2007, pp. 666-680.
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:校內校外均不公開 not available
開放時間 Available:
校內 Campus:永不公開 not available
校外 Off-campus:永不公開 not available

您的 IP(校外) 位址是 18.116.118.244
論文開放下載的時間是 校外不公開

Your IP address is 18.116.118.244
This thesis will be available to you on Indicate off-campus access is not available.

紙本論文 Printed copies
紙本論文的公開資訊在102學年度以後相對較為完整。如果需要查詢101學年度以前的紙本論文公開資訊,請聯繫圖資處紙本論文服務櫃台。如有不便之處敬請見諒。
開放時間 available 已公開 available

QR Code