【正文】
采用C/S結構,選用所熟悉的開發(fā)工具及開發(fā)環(huán)境Visual C++ 。實現(xiàn)虛擬實驗平臺具有網(wǎng)絡基本功能,打破各種局域網(wǎng)不能互訪的問題,客戶機和主機,客戶機和客戶機之間的即時通訊、數(shù)據(jù)的傳輸。“虛擬實驗操作臺”主要包括常用的外圍單元電路,如指示燈、數(shù)碼管、鍵盤、開關傳感器等,它是一個交互性較強的可視化界面,不僅可以指示或反映出實驗的結果,同時學生可以通過鼠標來進行模擬的連線、操作和使用虛擬的測試儀器進行檢測等?!疤摂M實驗臺”包含虛擬接口電路和虛擬實驗操作臺。 項目設計思路我們開發(fā)的“微機接口虛擬實驗平臺”采用“虛、實”結合的設計思路,強調(diào)實用性、效益性,最大限度地仿真真實的實驗環(huán)境。實現(xiàn)虛擬實驗平臺具有網(wǎng)絡基本功能,實現(xiàn)虛擬實驗平臺具有網(wǎng)絡基本功能,客戶機和主機,客戶機和客戶機之間的即時通訊、文件的傳輸。虛擬實驗就是利用外部輸入(如鼠標的點擊、拖動和鍵盤的敲擊等),將計算機上虛擬的各種儀器,按實驗要求、過程,組裝成一個完整的實驗環(huán)境,同時在這個環(huán)境中完成實驗操作,包括實驗器材的添加、實驗條件的改變、數(shù)據(jù)采集以及實驗結果的模擬、分析。虛擬實驗就是在通用計算機上加載相應的軟件或硬件,使得使用者在操作這臺計算機時,就像是在操作一臺專用的傳統(tǒng)試驗設備一樣。并且隨著信息技術的發(fā)展,網(wǎng)絡無疑為我們帶了更多的便利,因此一個好的系統(tǒng)必須要具有網(wǎng)絡功能,要完成這些功能,我們就需要采用C/S模式的網(wǎng)絡結構。2 概 述 項目背景近年來既算機、網(wǎng)絡等信息技術在教育領域的廣泛應用,虛擬實驗正日益成為廣大教師的計算機輔助教學手段。二、客戶端分為:網(wǎng)絡模塊、數(shù)據(jù)分析模塊(1).網(wǎng)絡模塊(DLL)和服務端完全一樣(2).數(shù)據(jù)分析模塊(類)①.解析接收到的數(shù)據(jù),并生成需要回復的信息。(2).數(shù)據(jù)庫接口模塊(DLL)①.提供對數(shù)據(jù)的查詢、添加、刪除功能。一、服務器端分為:網(wǎng)絡模塊、數(shù)據(jù)庫接口模塊、數(shù)據(jù)分析模塊(1).網(wǎng)絡模塊(DLL);網(wǎng)絡模塊開發(fā)分兩步①.提供最基本的數(shù)據(jù)傳輸功能。并且由于系統(tǒng)中需要大量的數(shù)據(jù)交換,服務器的負擔很重,所以我們通過P2P方式減輕服務器負擔,然而NAT限制了P2P的實現(xiàn),所以我們采用了UDP實現(xiàn)P2P網(wǎng)絡穿越NAT的技術。 P2P technology。 C/S mode。網(wǎng)絡虛擬實驗平臺可以更好的幫助學生掌握實驗技巧。網(wǎng)絡模塊負責提供最基本的數(shù)據(jù)傳輸功能,數(shù)據(jù)庫接口模塊負責提供對數(shù)據(jù)的查詢、添加、刪除功能,數(shù)據(jù)分析模塊解析接收到的數(shù)據(jù),并生成需要回復的信息。其中客戶端模塊又包括了網(wǎng)絡模塊、數(shù)據(jù)分析模塊。教師管理模塊主要實現(xiàn)C/S模式系統(tǒng)的服務器管理功能,包括響應客戶端的連接請求、用戶注冊、登陸、登陸通知、顯示在線用戶列表、用戶退出通知、對系統(tǒng)數(shù)據(jù)庫文件管理、服務器根據(jù)路由算法分配最佳節(jié)點給客戶端進行P2P通信、客戶端能隨時存取數(shù)據(jù)等。畢業(yè)設計(論文)虛擬實驗平臺的網(wǎng)絡化改進方向教師管理模塊的設計與實現(xiàn)論文作者姓名:申請學位專業(yè):申請學位類別:指導教師姓名(職稱):論文提交日期:28 / 29虛擬實驗平臺的網(wǎng)絡化改進方向教師管理模塊的設計與實現(xiàn)摘 要為了實現(xiàn)課程實驗教學的網(wǎng)絡化工程,網(wǎng)絡虛擬實驗平臺已成為我們的迫切需求。這次畢業(yè)設計的目的主要是為了檢查使學生綜合運用以前所學知識的能力,開發(fā)一個多功能的網(wǎng)絡虛擬實驗臺軟件。這次課題分為2個模塊:服務器模塊和客戶端模塊。服務器模塊分為網(wǎng)絡模塊、數(shù)據(jù)庫接口模塊、數(shù)據(jù)分析模塊。服務器的數(shù)據(jù)分析模塊還要根據(jù)客戶端應用層的指令,生成與指令相應的發(fā)送信息。關鍵詞:虛擬實驗平臺;C/S模式;最佳節(jié)點;P2P通信;路由算法The Direction of Improving the Virtual Experimental Platform Network The Design and Implement of Teacher Administration ModuleAbstractIn order to realize network engineering for experiment teaching later, the virtual experiment platform has bee our urgent demand. The purpose of the thesis is mainly to develop a multifunctional virtual experiment software for inspecting the students’ ability of prehensive utilization of the knowledge. The teacher administration module mainly realizes the C/S pattern system server management function, including the response customer end connection request, the user registration ,lands, lands the notice, demonstrated the online user tabulates, the user withdrawal notice, to the system database file management, the server carries on the P2P correspondence, the customer end according to the route algorithm assignment best pitch point for the customer end can deposit and withdraw the data as necessary and so on . The thesis is divided into 2 modules: Server module and customer module. Customer module includes the network module and the data analysis module. The server module is divided into the network module, the database interface module, and the data analysis module. The network module provides the basic data transmission function. The database interface module provides the functions to inquire, add, and delete data. While, the data analysis module analysis the received data, and produce the reply information. The server data analysis module also needs to produce the relative sending information with the instruction, according to the customer application instructions. The network virtual experiment platform can help student grasp the experiment skill in a better way.Key words: Virtual experiment platform。 best pitch point。 route algorithm目 錄論文總頁數(shù):26頁1 引 言 12 概 述 1 項目背景 1 項目介紹 1 虛擬實驗平臺的網(wǎng)絡化 1 項目設計思路 2 項目功能簡圖 3 項目要求 3 工作任務及要求 3 B/S與 C/S 4 項目難點及解決方法 4 IP處理問題 4 Client之間的通信問題 4 服務器分配鄰居節(jié)點的問題 43 項目模塊的劃分 5 服務器端/客戶端數(shù)據(jù)傳輸過程簡圖 5 網(wǎng)絡通信模塊 5 數(shù)據(jù)接口模塊 7 數(shù)據(jù)庫的建立 7 數(shù)據(jù)庫連接控件ADO介紹 10 對數(shù)據(jù)庫操作實現(xiàn) 12 數(shù)據(jù)分析模塊 13 提供基本網(wǎng)絡事件處理功能類CCommandProcessor