【正文】
f munication, is facing to the development of portable puter or even more perfect aspect. As a result of the lowprice and highquality of the handset, it has bee the best choice that the people obtain each kind of information service in life. In our country, along with urbanized fast development, city bus system also rapidly expands, and even bees more plex. So, finding city bus route bees more difficult. Presently, the plex city bus system causes the condition which the users often are confused, which brings many inconvenient to people, but handset city bus inquiry system is also based on this background. Firstly, the author investigates the city bus system, provides “the Algorithm based on the stand priority and the next linking matrix” and “the Algorithm based on upward and downward matrix”. Secondly, these Algorithms are transplanted to the handset by J2ME, which can provide the inquiry for city bus at any time and any where by the aid of to the wireless Inter. Finally, through testing and analyzing, it confirms this system is some feasibility and practical value. Key words: City Bus Inquiry。 City Bus Exchanging Algorithm。 Wireless Inter 目 錄 論文總頁數(shù): 27 頁 1 引言 .......................................................................................................................... 1 課題背景 ............................................................................................................ 1 國(guó)內(nèi)外研究現(xiàn)狀 ................................................................................................. 1 本課題研究的意義 .............................................................................................. 2 本軟件的開發(fā)方法 .............................................................................................. 2 本文的主要工作 ................................................................................................. 3 研究的主要內(nèi)容 .......................................................................................... 3 各章節(jié)的安排 .............................................................................................. 3 2 手機(jī)公交 查詢的需求分析和開發(fā)工具介紹 .................................................................. 3 用戶的原始需求 ................................................................................................. 3 手機(jī)公交查詢系統(tǒng)功能模塊及流程圖 .................................................................. 4 開發(fā)工具介紹 ..................................................................................................... 5 3 手機(jī)公交查詢系統(tǒng)的設(shè)計(jì) .......................................................................................... 5 手機(jī)公交查詢系統(tǒng)算法的設(shè)計(jì) ............................................................................ 5 直達(dá)的算法設(shè)計(jì) .......................................................................................... 5 一次換乘的算法設(shè)計(jì) ................................................................................... 6 二次換乘的算法設(shè)計(jì) ................................................................................... 7 手機(jī)公交查詢數(shù)據(jù)庫的設(shè)計(jì) ................................................................................ 7 數(shù)據(jù)庫的邏輯設(shè)計(jì) ....................................................................................... 7 數(shù)據(jù)庫的物理設(shè)計(jì) ....................................................................................... 8 4 手機(jī)公交查詢系統(tǒng)功能詳細(xì)實(shí)現(xiàn) .............................................................................. 10 服務(wù)器端的實(shí)現(xiàn) ............................................................................................... 10 基類( Base Class)的實(shí)現(xiàn) ..........................................................................11 輔助類( Help Class)的實(shí)現(xiàn) ..................................................................... 12 業(yè)務(wù)邏輯類( Logic Class)的實(shí)現(xiàn) ............................................................. 13 服務(wù)器對(duì)外接口( Servlet)的實(shí)現(xiàn) ............................................................. 16 WEB端的實(shí)現(xiàn) ................................................................................................. 16 WAP 端的實(shí)現(xiàn) ................................................................................................. 18 手機(jī)客戶端的實(shí)現(xiàn) ............................................................................................ 20 客戶端界面的實(shí)現(xiàn) ..................................................................................... 20 客戶端工作原理 ........................................................................................ 20 手機(jī) 網(wǎng)絡(luò)設(shè)置 ............................................................................................ 22 5 手機(jī)公交查詢系統(tǒng)測(cè)試與分析 ................................................................................. 22 測(cè)試環(huán)境 .......................................................................................................... 22 運(yùn)行與測(cè)試 ...................................................................................................... 22 測(cè)試結(jié)果 .......................................................................................................... 24 結(jié) 論 ........................................................................................................................ 24 參考文獻(xiàn) ........................................................................................................................ 25 致 謝 ........................................................................................................................ 26 聲 明 ........................................................................................................................ 27 第 1 頁 共 27 頁 1 引言 課題背景 作為關(guān)系國(guó)計(jì)民生的社會(huì)公益事業(yè),城市公共交通一直都是政府工作的重點(diǎn)。但是從 客觀上說,公交硬件建設(shè)跟不上城市建設(shè)的步伐,是全國(guó)大城市尤其是特大城市都正在遭遇的發(fā)展瓶頸。 在我國(guó),隨著城市化的快速發(fā)展,市公交系統(tǒng)也隨之迅速擴(kuò)大,且更加復(fù)雜化,找不到合適的乘車路線的事情經(jīng)常發(fā)生。 國(guó)內(nèi)外研究現(xiàn)狀 從有關(guān)的文獻(xiàn)看 , 如今全世界可以支持 J2ME 的手持設(shè)備如今已經(jīng)達(dá)到了七千五百萬,有 34 個(gè)運(yùn)營(yíng)商在使用 J2ME 技術(shù); 傳統(tǒng)手機(jī)在出廠