跳到主要內容

臺灣博碩士論文加值系統

(18.97.14.85) 您好!臺灣時間:2025/01/21 17:34
字體大小: 字級放大   字級縮小   預設字形  
回查詢結果 :::

詳目顯示

: 
twitterline
研究生:林書帆
研究生(外文):Shu-Fan Lin
論文名稱:Java程式架構之比對與探討
論文名稱(外文):Comparison and Studies on Java Framework
指導教授:留忠賢留忠賢引用關係
指導教授(外文):Chung-Shyan Liu
學位類別:碩士
校院名稱:中原大學
系所名稱:資訊工程研究所
學門:工程學門
學類:電資工程學類
論文種類:學術論文
畢業學年度:94
語文別:中文
論文頁數:41
中文關鍵詞:再利用性軟體重整工程Form BeanComponent
外文關鍵詞:Form BeanComponentReengineeringReuse
相關次數:
  • 被引用被引用:0
  • 點閱點閱:230
  • 評分評分:
  • 下載下載:3
  • 收藏至我的研究室書目清單書目收藏:0
在本論文中,我們將一個舊有系統(Legacy System)進行重整工程(Re-engineering)以便得到一個具再使用性(Reuse)且能提升工作效能的系統。
這個老舊系統是一個『線上系統』,我們發覺系統中充斥大量重複的程式碼,造成更新或維護系統時,需要同時變動數個程式;而重複的資料庫存取動作增加不必要的系統時間及浪費系統資源。我們以不改變其原本的Struts架構為基礎來進行重整工程,首先我們從系統中比對出資料及畫面相似性高的頁面,將其相同的程式碼萃取出來,實作出一系列的共用模組元件(Component)達到系統重整。另一方面,依據該系統中的流程規劃,利用Form Bean的可重複使用特性及繼承(Inheritance)的方式,改進其必須連結資料庫存取資料之模式。
最後依照我們評估重整前後的數據得知,以上兩種整合方式可以明顯降低重複程式碼、提高程式再利用性、減少進出資料庫取值次數與提升系統效能。
We re-engineered a legacy system for more reusability and more efficiency. The legacy system is a web-based system. We discovered that there were a lot of duplicated codes in the programs that needed to be modified simultaneously when updating the system. Furthermore, repeated database access wasted valuable system time and system resources. The system’s architecture, which was based on Struts, was not altered when re-engineering. We begin with comparing web pages with similar data and views. Then, we refactored them by extracting duplicated codes and implemented them as common components. We also analyzed the workflow design of the system to reuse some Form Beans by inheritance and to avoid unnecessary database access.
Finally, we evaluated the refactored system and found that the refactored system indeed eliminated some duplicated codes, increased reusability, and reduced database access and thus improved efficiency.
目錄
摘要 I
ABSTRACT II
致謝 III
目錄 IV
表單目錄 VI
圖形目錄 VII
第一章 緒論 1
1.1前言 1
1.2 研究動機與目的 2
1.3論文章節概要 3
第二章 背景知識 4
2.1 STRUTS 4
2.1.1 MVC模型 4
2.1.2 Struts架構 5
2.1.3 Java Bean 元件 6
2.2軟體重整工程(RE-ENGINEERING) 8
第三章 重整概念與方法 10
3.1重整理念 10
3.2重整方法 12
3.2.1 整合控制項 12
第四章 重整實作 18
4.1 目標系統內部結構 18
4.2 系統重整步驟 21
4.2.1 整合控制項步驟 21
4.2.2 整合流程(Flow)步驟 30
第五章 結果與效能評估 34
5.1 重整控制項評估 34
5.2 重整流程(FLOW)評估 36
第六章 結論與未來展望 38
參考文獻 39
作者簡介 41


表單目錄
表1:整前後檔案大小比較表..............................31
表2:新舊程式LOC比較表................................32
表3:重整Flow前後取值花費時間表.......................34


圖形目錄
圖1 MVC模型 4
圖2 Struts架構 6
圖3 正向工程與重整工程 9
圖4 JT11畫面編輯器 10
圖5 因子畫面比較 12
圖6 重整控制項流程圖 13
圖7 流程畫面比較 14
圖8 系統Flow流程圖 16
圖9 重整Flow流程圖 17
圖10 整合控制項前後結構比較 19
圖11 重整Flow前後結構比較 20
圖12 共用模組程式 21
圖13 自訂函式load() 22
圖14 自訂函式make() 23
圖15 重整JSP頁面前後比較 25
圖16 重整properties前後比較 26
圖17 重整Form Bean前後比較 27
圖18 重整makeControls()前後比較 28
圖19 使用共用模組程式 29
圖20 Application Bean程式 30
圖21 設定Application Bean 31
圖22 Application Bean使用 32
圖23 繼承Form Bean前後比較 33
圖24 重整前後取值效能比較 36
[1] Bennett, K.H., “An Overview of Maintenance and Reverse Engineering”, The REDO Compendium, John Wiley & Sons, Inc., Chichester, 1993.

[2] Ian Sommerville, “Software Engineering”, 7th edition, Addison Wesley, 2004.

[3] B. Foote and W.F. Opdyke, “Life Cycle and Refactoring Patterns that Support Evolution and Reuse”, Addison Wesley, 1995.

[4] D. Mancl, “Refactoring for Software Migration”, IEEE Communications Magazine, Vol. 39, No. 10., 2001, pp. 88-93.

[5] Graham Hamilton, “JavaBeans API Specification”, Sun Microsystems, 1997.

[6] Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, “Design Patterns”, Addison Wesley, 1995

[7] Kenji SAKATA, “Struts Gyakubiki 333 no Gokui", SHUWA SYSTEM CO., 2004

[8] Sun Java BluePrints-J2EE Patterns, http://java.sun.com/blueprints/patterns/MVC-detailed.html

[9] Apache Struts, http://struts.apache.org/

[10] Frank Buschmann, Regine Meunier, Hans Rohnert, Peter Sommerlad and Michael Stal, “Pattern-Oriented Software Architecture”, John Wiley & Sons, Inc., 1996.

[11] IThome 電腦報, 第91期, pp.42, 2003.

[12] IBM Information Center, http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp

[13] Ivar Jacobson, Martin Griss and Patrik Jonsson, “Software Reuse”, ACM Press Books, Addison Wesley, 1997.

[14] Ulrich, W.M., “The Evolutionary Growth of Software Reengineering and the Decade Ahead”, American Programmer, Vol. 3, No. 10, pp.14-20, 1990.

[15] 叡揚資訊 JAVA Template說明, http://crd.gss.com.tw/portal/template/java/default.asp

[16] Borland JBuilder, http://www.borland.com/us/products/jbuilder/index.html

[17] Martin Fowler, Kent Beck, John Brant, William Opdyke and Don Roberts, “Refactoring: Improving the Design of Existing Code”, Addison Wesley, 1999.

[18] Sun JSP, http://java.sun.com/products/jsp/

[19] W3C HyperText Markup Language (HTML) Home Page, http://www.w3.org/MarkUp/

[20] Java 2 Platform SE API Specification, http://java.sun.com/j2se/1.5.0/docs/api/index.jsp
QRCODE
 
 
 
 
 
                                                                                                                                                                                                                                                                                                                                                                                                               
第一頁 上一頁 下一頁 最後一頁 top