程序代碼生成器.doc
約56頁DOC格式手機(jī)打開展開
程序代碼生成器,頁數(shù) 56字?jǐn)?shù) 11745摘要隨著計算機(jī)硬件的發(fā)展,所帶動的軟件需求越來越大。對于軟件程序員來說,能快速的開發(fā)一個功能強(qiáng)大的軟件,這是非常必要的。而就是為了解決程序員在編有類似代碼的問題,減少程序員的編碼時間。系統(tǒng)分兩個部分:其一,view子系統(tǒng);其二,商務(wù)邏輯子系統(tǒng)。程序代碼...


內(nèi)容介紹
此文檔由會員 張陽陽 發(fā)布
程序代碼生成器
頁數(shù) 56 字?jǐn)?shù) 11745
摘要
隨著計算機(jī)硬件的發(fā)展,所帶動的軟件需求越來越大。對于軟件程序員來說,能快速的開發(fā)一個功能強(qiáng)大的軟件,這是非常必要的。而程序代碼生成器就是為了解決程序員在編有類似代碼的問題,減少程序員的編碼時間。
程序代碼生成器系統(tǒng)分兩個部分:其一,View子系統(tǒng);其二,商務(wù)邏輯子系統(tǒng)。程序代碼生成器系統(tǒng)根據(jù)上面兩部分可以生成兩種java代碼。程序代碼生成器系統(tǒng)主要是根據(jù)mvc模式來生成java代碼的。這上面兩種代碼都是屬于mvc模式中的控制層。
程序代碼生成器系統(tǒng)在view層子系統(tǒng)主要采用xml語言所定義的xml 文件來調(diào)入相關(guān)參數(shù)。這是因為xml語言可以存儲數(shù)據(jù),類似數(shù)據(jù)庫的功能。主要是利用xml的這一點特性。程序代碼生成器系統(tǒng)在商務(wù)邏輯層子系統(tǒng)采用了java程序設(shè)計模式中的工廠模式。鑒于本系統(tǒng)特點,工廠方法模式比較適合本系統(tǒng)。
關(guān)鍵字:代碼生成器,java
ABSTRACT
With the development of computer hardware, the demand of software is higher and higher.A powerful software of the fast development is very essential to software programmer . And the code generator reduce the coding time for solving the problem that the code is similar to the code.
Code generator system divide into two part, view subsystem and the logic subsystem of the commercial affair. Code generator system can create two kinds of java code according to the two part.The code generator system made java code mainly according to Model-View-Controller(MVC). Two kinds of codes are both control layer in MVC modes on this.
The code generator system mainly use XML language to hand up parameters .This is because XML language can store the data , similar to the function of the database . The code generator system adopt java factory mode of application design pattern in commercial logic layers of subsystem. In view of this systematic characteristic, the method mode of the factory is relatively suitable for this system.
Keywords: java, code generator,XML.
目錄
摘要 1
ABSTRACT 2
第一章 可行性研究分析 3
1.1引言 3
1.2編寫目的 3
1.3系統(tǒng)的初步調(diào)查 3
1.4系統(tǒng)可行性分析 3
1.5開發(fā)工具選擇 5
第二章 需求分析 6
2.1 功能需求 6
2.2概念模型 7
2.3系統(tǒng)數(shù)據(jù)和語言要求 8
2.3.1語言要求 8
2.3.2 數(shù)據(jù)要求 8
2.3.3系統(tǒng)性能和運行要求 9
第三章 系統(tǒng)總體設(shè)計 10
3.1系統(tǒng)分析 11
3.2確定類和關(guān)聯(lián) 12
3.2.1類圖 12
3.2.2編寫腳本 13
3.2.3順序圖 15
第四章 詳細(xì)設(shè)計 16
4.1View層子系統(tǒng) 16
4.2商務(wù)邏輯層子系統(tǒng) 21
4.2.1,什么是工廠模式 21
4.2.2工廠方法(Factory Method)模式 21
第五章 編碼 27
5.1主界面 27
5.2內(nèi)嵌AddressBookToolBar類 29
5.3 AddressBookPanel類 32
第六章 系統(tǒng)測試 41
結(jié)束語 43
致謝 44
參考文獻(xiàn) 45
附錄 46
用 JDOM 簡化 XML 編程 46
參考文獻(xiàn)
[1] 王勝捷.Java程序設(shè)計.第一版.中國鐵道出版社.2002年
[2](美)Craig Larman.UML和模式應(yīng)用.第二版.機(jī)械工業(yè)出版社.2002年
[3] 閻宏博士.java與模式.電子工業(yè)出版社.2002年
[4] 張海藩.軟件工程導(dǎo)論.第一版.清華大學(xué)出版社.1998年
頁數(shù) 56 字?jǐn)?shù) 11745
摘要
隨著計算機(jī)硬件的發(fā)展,所帶動的軟件需求越來越大。對于軟件程序員來說,能快速的開發(fā)一個功能強(qiáng)大的軟件,這是非常必要的。而程序代碼生成器就是為了解決程序員在編有類似代碼的問題,減少程序員的編碼時間。
程序代碼生成器系統(tǒng)分兩個部分:其一,View子系統(tǒng);其二,商務(wù)邏輯子系統(tǒng)。程序代碼生成器系統(tǒng)根據(jù)上面兩部分可以生成兩種java代碼。程序代碼生成器系統(tǒng)主要是根據(jù)mvc模式來生成java代碼的。這上面兩種代碼都是屬于mvc模式中的控制層。
程序代碼生成器系統(tǒng)在view層子系統(tǒng)主要采用xml語言所定義的xml 文件來調(diào)入相關(guān)參數(shù)。這是因為xml語言可以存儲數(shù)據(jù),類似數(shù)據(jù)庫的功能。主要是利用xml的這一點特性。程序代碼生成器系統(tǒng)在商務(wù)邏輯層子系統(tǒng)采用了java程序設(shè)計模式中的工廠模式。鑒于本系統(tǒng)特點,工廠方法模式比較適合本系統(tǒng)。
關(guān)鍵字:代碼生成器,java
ABSTRACT
With the development of computer hardware, the demand of software is higher and higher.A powerful software of the fast development is very essential to software programmer . And the code generator reduce the coding time for solving the problem that the code is similar to the code.
Code generator system divide into two part, view subsystem and the logic subsystem of the commercial affair. Code generator system can create two kinds of java code according to the two part.The code generator system made java code mainly according to Model-View-Controller(MVC). Two kinds of codes are both control layer in MVC modes on this.
The code generator system mainly use XML language to hand up parameters .This is because XML language can store the data , similar to the function of the database . The code generator system adopt java factory mode of application design pattern in commercial logic layers of subsystem. In view of this systematic characteristic, the method mode of the factory is relatively suitable for this system.
Keywords: java, code generator,XML.
目錄
摘要 1
ABSTRACT 2
第一章 可行性研究分析 3
1.1引言 3
1.2編寫目的 3
1.3系統(tǒng)的初步調(diào)查 3
1.4系統(tǒng)可行性分析 3
1.5開發(fā)工具選擇 5
第二章 需求分析 6
2.1 功能需求 6
2.2概念模型 7
2.3系統(tǒng)數(shù)據(jù)和語言要求 8
2.3.1語言要求 8
2.3.2 數(shù)據(jù)要求 8
2.3.3系統(tǒng)性能和運行要求 9
第三章 系統(tǒng)總體設(shè)計 10
3.1系統(tǒng)分析 11
3.2確定類和關(guān)聯(lián) 12
3.2.1類圖 12
3.2.2編寫腳本 13
3.2.3順序圖 15
第四章 詳細(xì)設(shè)計 16
4.1View層子系統(tǒng) 16
4.2商務(wù)邏輯層子系統(tǒng) 21
4.2.1,什么是工廠模式 21
4.2.2工廠方法(Factory Method)模式 21
第五章 編碼 27
5.1主界面 27
5.2內(nèi)嵌AddressBookToolBar類 29
5.3 AddressBookPanel類 32
第六章 系統(tǒng)測試 41
結(jié)束語 43
致謝 44
參考文獻(xiàn) 45
附錄 46
用 JDOM 簡化 XML 編程 46
參考文獻(xiàn)
[1] 王勝捷.Java程序設(shè)計.第一版.中國鐵道出版社.2002年
[2](美)Craig Larman.UML和模式應(yīng)用.第二版.機(jī)械工業(yè)出版社.2002年
[3] 閻宏博士.java與模式.電子工業(yè)出版社.2002年
[4] 張海藩.軟件工程導(dǎo)論.第一版.清華大學(xué)出版社.1998年
TA們正在看...
- 大學(xué)物理創(chuàng)新實驗.doc
- 大學(xué)物理力學(xué)部分學(xué)習(xí)重點.doc
- 大學(xué)物理化學(xué)知識點歸納.doc
- 大學(xué)物理及數(shù)學(xué)積分公式.doc
- 大學(xué)物理學(xué)第二章剛體力學(xué)基礎(chǔ)自學(xué)練習(xí)題.doc
- 大學(xué)物理實驗網(wǎng)上考試題庫.doc
- 大學(xué)物理實驗講義實驗01弗蘭克-赫茲實驗.doc
- 大學(xué)物理實驗講義實驗02扭擺法測定物體轉(zhuǎn)動慣量.doc
- 大學(xué)物理實驗講義實驗06光的偏振實驗.doc
- 大學(xué)物理實驗講義實驗07波爾共振實驗.doc