java學生宿舍管理系統(tǒng)論文.doc_第1頁
java學生宿舍管理系統(tǒng)論文.doc_第2頁
java學生宿舍管理系統(tǒng)論文.doc_第3頁
java學生宿舍管理系統(tǒng)論文.doc_第4頁
java學生宿舍管理系統(tǒng)論文.doc_第5頁
已閱讀5頁,還剩13頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

Manipulator is now used as a industrial robots in use, the control objectives often appear often in industrial automation. Industrial automation technology has gradually matured, as mature a technology line has been rapid development in industrial automation as a separate subject. Manipulator application began to filter into welding, logistics, mechanical processing, and other industries. Especially at high or very low temperatures, full of poisonous gases, high radiation case, robot in similar circumstances showed great use also brings great convenience to the staff. Precisely because of this robot to get peoples attention began to be a high degree of development. Labor rates, working conditions, labor intensive aspects of promoting development. Both at home and abroad to develop the PLC (programmable logic controller) is in various special circumstances and under special conditions set for mechanical devices. Now turned on the development of the microelectronics automatic control technology and the rapid development of the trains, the success of PLC hardware software and simulation control win big and successful development, now continues to develop as a factory automation standards. Because robots are good development of the technology makes a good optimization of productive capital, and robot shows this unique advantages, such as: has good compatibility, wide availability, hardware is complete, and programming that can be mastered in a short time, so in the context of industrial PLC applications became ubiquitous. Manipulator in many developed country agriculture and industry has been applied, such as the use of mechanical harvesting large areas of farmland, repeated operations on the high-speed line that uses a robotic arm, and so on. Today, the high level of automation combined with restrictions on the manipulator development level is slightly lower than the international. The design is mainly arm welding machine by PLC Automation control. This of design let designers on in school by learn of has a must of consolidation, understand has some usually didnt opportunities awareness in world range within some leading level of knowledge has has must awareness, hope designers can in yihou of design in the can success of using in this design in the proceeds of experience 1.2 manipulator in both at home and abroad of research profile automation mechanical arm research began Yu 20th century medium-term, after years with with computer and automation technology of development, Makes mechanical arm on the Grand stage of industrial automation and shine, gradually became an industrial evaluation standards, and its importance can be seen. Now original robotic arm spent most of mass production and use on the production line, which is programmed robotic arm. As the first generation of manipulator position control systems main features, although not back several generations that can detect the external environment, but can still successfully complete like welding, painting, delivery as well as for materials simple movements. Second generation mechanical arms are equipped with sensors and manipulators have the environment there is a certain amount of sense, when the mechanical arm is to use the program as a basis. Difference is that the robot begandxxxx 大 學 課 程 設 計 說 明 書(論 文)課程設計說明書 課程名稱:軟件工程課程設計 題 目:學生宿舍管理系統(tǒng)院 系: 理 學 院 專業(yè)班級:數(shù)學與應用數(shù)學11-1學 號: _學生姓名: 王存文 指導教師: 方賢文 2014年 1 月 02日安徽理工大學課程設計(論文)任務書 理學院 院系 信計 教研室學 號學生姓名王存文專業(yè)(班級)數(shù)學11-1 設計題目 小型圖書管理系統(tǒng)設計技術參數(shù)jdk1.6開發(fā)工具:EclipseDBMS:MYSQL5.5,Navicat8設計要求開發(fā)一個具有JSP技術的圖書信息管理系統(tǒng),系統(tǒng)分為三個模塊且必須具備瀏覽,查找、修改、添加、刪除等功能。后臺數(shù)據(jù)庫是基于mysql建立的。工作量需求分析,界面設計,數(shù)據(jù)庫設計,數(shù)據(jù)庫連接,子模塊和功能設計,各個模塊實現(xiàn)窗口的設計,編寫系統(tǒng)說明書和實驗報告。工作計劃 12月26日需求分析12月 日建立數(shù)據(jù)庫和表及關系表,模塊設計1月1日頁面設計及熟悉及其運行環(huán)境1月4, 5日程序源代碼編寫、調試程序并編寫Word文檔和實現(xiàn)窗口的截圖1月5日提交課程設計參考資料1耿祥義,張躍平.java面向對象程序設計(第2版)北京:清華大學出版社.2013.3. 2王珊,薩日煊.數(shù)據(jù)庫系統(tǒng)概論(第四版)M北京:高等教育出版社.2008.5.3印旻.java與面向對象程序設計課程.北京:高等教育出版社.2012.7.指導教師簽字 教研室主任簽字 年 月 日學生姓名:王存文 學號: 專業(yè)班級: 應用數(shù)學11-1 課程設計題目: 學生宿舍管理系統(tǒng) 指導教師評語: 成績: 指導教師: 年 月 日安徽理工大學課程設計(論文)成績評定表第1章 課程設計目的與要求1.1設計目的將理論教學中涉及到的知識點貫穿起來,對不同的數(shù)據(jù)類型、程序控制結構、數(shù)據(jù)結構作一比較和總結,結合設計題目進行綜合性應用,對所學知識達到融會貫通的程度。通過課程設計,學生在下述各方面的能力應該得到鍛煉:(1)進一步鞏固、加深學生所學專業(yè)課程JAVA語言教程的基本理論知識,理論聯(lián)系實際,進一步培養(yǎng)學生綜合分析問題,解決問題的能力。(2)全面考核學生所掌握的基本理論知識及其實際業(yè)務能力,從而達到提高學生素質的最終目的。(3)利用所學知識,開發(fā)小型應用系統(tǒng),掌握運用JAVA語言編寫調試應用系統(tǒng)程序,訓練獨立開發(fā)應用系統(tǒng),進行數(shù)據(jù)處理的綜合能力。(4)對于給定的設計題目,如何進行分析,理清思路,并給出相應的數(shù)學模型。(5)掌握面向對象程序設計的方法。(6)熟練掌握JAVA語言的基本語法,靈活運用各種數(shù)據(jù)類型。(7)進一步掌握在集成環(huán)境下如何調試程序和修改程序。1.2實驗環(huán)境硬件要求能運行Windows 操作系統(tǒng)的微機系統(tǒng)。JAVA語言應用程序開發(fā)軟件使用:VJAVA 系統(tǒng),或其他JAVA語言應用程序開發(fā)軟件。1.3設計要求1.仔細分析設計題目,畫出程序流程圖,編寫程序源代碼。2.積極上機調試源程序,增強編程技巧與調程能力。3.認真書寫課程設計預習報告,課程設計說明書。4.遵守課程設計要求和機房管理制度,服從指導教師的安排,確保課程設計的順利完成課程設計內容。第2章 課程設計內容2.1 課題描述對于問題的要求,我們可以選擇使用鏈表處理數(shù)據(jù),由于處理的數(shù)據(jù)相對比較多,所以在函數(shù)的具體實現(xiàn)時,可以考慮使用函數(shù)模板,函數(shù)模板會把很多問題的處理變得很容易,例如:再查找學生信息時,使用姓名查找和學號或宿舍號查找方式,其中的兩個函數(shù)只有函數(shù)的參數(shù)的類型不一樣,功能完全一樣,使用模板處理該問題,只需編寫一次模板函數(shù),再模板中聲明的類型參數(shù)“T”,可以代替處理其他變量和返回類型。如果使用了模板函數(shù)的條件下,類的設計最好選用模板類,因為類模板的使用,可以使得類中的某些成員函數(shù)、某些數(shù)據(jù)成員和某些成員函數(shù)的返回值能取得任意類型。但模板的使用有一定的能力要求,如果使用其他的方法可以實現(xiàn)上述要求的功能時,模板可以作為一種前進的方法,去為程序實現(xiàn)精藝求精。這樣最普遍,可以適時考慮的就是使用鏈表進行數(shù)據(jù)的處理,鏈表是一種比較好且很適宜的方法;學生包含有很多信息,最基本的方法是創(chuàng)建一個class,對學生信息實現(xiàn)整體的代換,這樣不僅方便數(shù)據(jù)處理,也為數(shù)據(jù)在程序中的錄入、存儲和顯示提供很大的優(yōu)越性。各功能的實現(xiàn)可以通過設計一個學生類students,然后將功能函數(shù)作為類中的成員函數(shù)來處理,這樣不僅方便以后成員函數(shù)之間的調用,也為在編譯和調試過程中出現(xiàn)問題和警告錯誤時方便修改。當整體設計方案出爐后,具體的類中成員函數(shù)編譯就是使用鏈表為載體來實現(xiàn)的。首先要創(chuàng)建鏈表,并將原始數(shù)據(jù)裝入制定的文本文檔中,以輸入出流的方式將數(shù)據(jù)賦給各鏈表節(jié)點;數(shù)據(jù)讀入程序后,各成員函數(shù)就可以根據(jù)鏈表的操作,對其實行查找,刪除,添加,排序信息和交換信息等。查找函數(shù)在操作時可運用順序查找或折半查找,相對比較而言,在數(shù)據(jù)較多時使用順序查找方便些,而且便于源代碼的編譯;在查找函數(shù)中要考慮到是否要考慮函數(shù)返回值的類型,因為查找函數(shù)在以后交換函數(shù)中可能會調用查找函數(shù),這樣會使交換信息函數(shù)顯得簡明,而且容易在交換時控制變量。排序和查找函數(shù),因為要使用不同排序或查找方法,所以在主函數(shù)的實現(xiàn)上,會考慮到使用一個子菜單來指導使用,在按照不同參考變量進行排序或查找時,這時最主要要實現(xiàn)以第一個方式的函數(shù)的算法思想和代碼的編寫,這樣在編寫其他方式函數(shù)代碼時可以參考第一種方式,達到簡化步驟,節(jié)省時間,空間的目的。2.2 系統(tǒng)設計根據(jù)上述要求和思想算法的分析,需要設計一個類students。由于學生信息包含有學號、姓名、宿舍號、系別等數(shù)據(jù),所以設計一個student類來概括學生相關信息。學生的各相關信息通過使用鏈表的方式將其聯(lián)系在一起,這樣不僅方便信息的錄入和顯示,也方便在數(shù)據(jù)的處理上。各功能的實現(xiàn)均可在類student中定義各相關的成員函數(shù)。程序運行時,首先提示用戶是否進行操作,選擇“Y/y”后,進入操作界面,出現(xiàn)功能選擇菜單。首先要進行數(shù)據(jù)的錄入,選擇“1.信息錄入”選項,這時數(shù)據(jù)直接通過磁盤文件錄入程序中;錄入結束后可按菜單中功能選項進行選擇操作,如選擇“信息排序”功能之后會出現(xiàn)子菜單,提示用戶選擇排序方式“按學號排序”“按宿舍號排序”,這時可以選擇一方式進行操作,再通過輸出與儲存函數(shù)進行顯示或儲存。學生宿舍管理系統(tǒng)的開發(fā)主要包括前臺用戶界面的開發(fā)和后臺數(shù)據(jù)庫的開發(fā),對于后臺數(shù)據(jù)庫的建立和維護要求建立起數(shù)據(jù)一致性和完整性強、數(shù)據(jù)安全性好的數(shù)據(jù)庫。而對于前端應用程序的開發(fā)則要求應用程序能提供強大的數(shù)據(jù)操縱功能,界面友好、使用簡單方便等特點。本系統(tǒng)采用java作為前臺用戶界面的開發(fā)語言,而后臺的數(shù)據(jù)庫采用MySql2.2.1 功能分析設計一個實用的小型學生宿舍管理程序,能夠對學生宿舍進行管理。學生的原始信息由磁盤文件進行儲存。在程序的運行中要求能進行增加、刪除學生記錄、顯示記錄、查詢/檢索(依不同關鍵字,如學號、宿舍號、姓名等)、刪除/修改記錄等功能,并能運用鏈表進行動態(tài)處理。具體要求:1.對學生信息的錄入、增加和刪除;2.能顯示宿舍的相應信息,即根據(jù)宿舍號顯示宿舍位置,宿舍學生信息等;3.能根據(jù)學生信息查詢相應的宿舍信息;4.對宿舍管理可以從多方面對系統(tǒng)數(shù)據(jù)進行操作,如:依據(jù)系別、學生姓名、班級等;并且能按各種條件進行組合查詢和數(shù)據(jù)統(tǒng)計,并能按指定順序進行格式化輸出。2.2.2 面向對象設計各模塊之間的調用關系:本系統(tǒng)分為四個模塊:查找子菜單、信息錄入、信息顯示、查找功能子菜單。該程序的由多種函數(shù)實現(xiàn),每個函數(shù)具有不同的功能,主要有主菜單函數(shù),插入功能子菜單函數(shù),查找功能子菜單函數(shù),學生信息錄入函數(shù),顯示函數(shù),排序函數(shù),插入函數(shù)以及查找函數(shù)。在每個區(qū)域中會調用不同的函數(shù)來實現(xiàn)主要的功能。比如,在學生顯示這個功能里調用顯示函數(shù);在插入功能里調用子菜單函數(shù);在顯示信息時調用排序函數(shù)先對需要輸出的信心進行排序,然后再輸出;在查找功能里會調用查找函數(shù)來進行查找,包括按照性別,學號,姓名,房間號等查詢。2.2.2類成員描述3.1.2根據(jù)數(shù)據(jù)庫的有關知識將E-R圖轉化成對應的關系表讀者(讀者編號,讀者姓名,讀者借書量)其中主鍵是讀者編號。圖書(圖書編號,圖書名稱,圖書出版社,圖書作者,圖書數(shù)量)主鍵是圖書編號。 讀者表3-1名稱數(shù)據(jù)類型長度允許空說明rdnoint10不允許主鍵rdnamechar30rddbumint3 圖書表3-2名稱數(shù)據(jù)類型長度允許空說明booknumberint4不允許主鍵booknamechar40bokpresschar40bokauthorchar30bookcountint33.1.3類設計首先設計一個基本類,student類,創(chuàng)建類的具體代碼如下:創(chuàng)建student類package sushe;import java.sql.Connection;import java.sql.ResultSet;import java.sql.Statement;public class Student String stuNo; String name; String classNo; int dorNo; public Student() public Student(String stuNo,String name,String classNo, int dorNo) this.stuNo = stuNo; = name; this.classNo = classNo; this.dorNo = dorNo; public String getStuNo() return stuNo; public void setStuNo(String stuNo) this.stuNo = stuNo; public String getName() return name; public void setName(String name) = name; public String getClassNo() return classNo; public void setClassNo(String classNo) this.classNo = classNo; public int getDorNo() return dorNo; public void setDorNo(int dorNo) this.dorNo =dorNo; public boolean insertStudent() boolean b = true; try Connection con = MySQLConnection.getCon(); Statement statement = con.createStatement(); String sql = insert into student values( + stuNo + , + name +, + classNo + , + classNo + ); / sql = new String(sql.getBytes(gb2312),ISO8859_1); statement.executeUpdate(sql); con.close(); System.out.println(輸入成功) ; catch(Exception e) b = false; System.out.println(插入數(shù)據(jù)庫遇到異常!+e.toString(); return b; public boolean selectByStuNo(String stuNo)throws Exception boolean b = true; Connection con = MySQLConnection.getCon(); Statement statement = con.createStatement(); String sql = select * from student where stuNo = + stuNo; ResultSet rs = statement.executeQuery(sql); if(rs != null & rs.next() String no = rs.getString(1); this.setStuNo(no); String n = rs.getString(2); /n = new String(n.getBytes(ISO8859_1),gb2312); this.setName(n); String g = rs.getString(3); /g = new String (g.getBytes(ISO8859_1),gb2312); this.setClassNo(g); this.setDorNo(rs.getInt(4); b = true; rs.close(); statement.close(); con.close(); return b; 下面進行數(shù)據(jù)庫連接package sushe;import java.sql.Connection;import java.sql.DriverManager;public class MySQLConnection static Connection getCon() Connection con = null; try Class.forName(com.mysql.jdbc.Driver); con = DriverManager.getConnection(jdbc:mysql:/localhost:3306/mytest,root,); catch(Exception e) System.out.println(建立數(shù)據(jù)庫連接遇到異常!); return con; 2.3.2運行結果 登陸界面顯示:登陸信息顯示:添加學生信息;修改學生信息;刪除信息顯示:學生寢室查詢:第3章 總結經過了一個多星期的努力,終于在規(guī)定的時間內完成率這份課程設計。以前,我對Java的很多知識都很陌生,但是通過這次的課程設計使我明白了許多東西,翻閱了大量的書籍以及上網查了很多的相關資料,也從中學會了不少東西,它使我知識更加的系統(tǒng)化、全面化。在實驗的過程中也讓我體會到了做任何事情都是要付出一定的努力的。一份努力一分收獲,每當自己單獨的成功解決某些問題時,都會感覺很興奮,也很有成就感。在這次課程設計中,我體會到要想開發(fā)應該系統(tǒng)軟件,不僅需要相當?shù)膶I(yè)技術知識,還要有嚴謹縝密的思維能力。只有思想上清晰了,編程才有意義,否則就是白費力氣。同時還要善于捕捉細小的方面,因為那往往是這個程序的致命因素。通過這次程序設計,培養(yǎng)了我的細心和耐心嗎,也樹立一種正確的求知態(tài)度。通過這次課程設計,我發(fā)現(xiàn)了自己的許多的不足,尤其是露出了對Java知識基礎的掌握不好,許多簡單的東西都不知道。在課本上看到的各種算法感覺都很簡單,但是真正的讓自己去寫一個算法感覺很困難,。即使是課本上的源程序算法,自己寫起來都感覺有點生疏。在調試過程中經常出現(xiàn)的錯誤也不是很熟悉。我認識到學好計算機要重視實踐操作,不僅僅是類的創(chuàng)建或建包,在其他的課程中都會注重實踐。所以在今后的學習過程中,我會更加注視實踐操作,使自己更好的學好計算機。雖然完成了課程設計,但是這次課程設計的意義對我來說卻很重要,讓我明白了很多。我懂得了理論與實際相結合是很重要的,只有理論知識是遠遠不夠的,只有把所學的理論知識與實際相結合起來,從理論中得出結論,才能真正的掌握,從而提高自己的實際動手能力和獨立思考的能力。今后我要多加實踐,把理論和實踐完美結合起來,爭取去達到另一個高度。參考文獻1 Eric. Java編程思想M. 第4版. 機械工業(yè)出版社, 機械工業(yè)出版社.2 杜波依斯. MySQL技術內幕M. 第4版. 人民郵電出版社 , 2011年07月.3 林信良. 學習筆記M. 第2版. 清華大學出版社, 2012年05月.4 張峋. 楊三成. 關鍵技術:Java應用詳解M.中國鐵道出版社, 2010年11月.5 張銀鶴. 點石成金:Java開發(fā)典型實例M.電子工業(yè)出版社, 2009年01月. 6 李宗偉. Java語言描述M. 第2版. 機械工業(yè)出版社, 2009年01月.7 Metsker S J. Java設計模式M. 第2版. 電子工業(yè)出版社, 2012年09月.8 孫衛(wèi)琴. Java Web開發(fā)技術詳解M. 第2版. 電子工業(yè)出版社, 2009年01月.9 劉京華 等. Java Web整合開發(fā)王者歸來M. 清華大學出版社, 2010年01月.10 賀松平SQL的研究及應用武漢:華中科技大學,2006年4月11 畢建信Java的應用研究與實現(xiàn)武漢:武漢理工大學,2006年5月10 陳剛Eclipse從入門到精通北京:清華大學出版社, 2005年4月.11清宏計算機工作室.Java編程技巧. 機械工業(yè)出版社, 2004年5月.12薩師煊,王珊.數(shù)據(jù)庫系統(tǒng)概論.高等教育出版社,2002年2月.13 溫謙. Java從入門到精通M.人民郵電出版社, 2008年08月.14 劉曉義. XML技術及應用M.哈爾濱工程大學出版社, 2011年06月.15 趙俊峰 等. Java Web應用開發(fā)案例教程:清華大學出版社, 2012年01月.全面落實企業(yè)主體責任;持續(xù)強化“兩重點一重大”、重點地區(qū)和特殊作業(yè)等重點環(huán)節(jié)監(jiān)管,遏制較大以上事故,保持事故總量繼續(xù)下降,推動兩個行業(yè)領域安全生產形勢持續(xù)穩(wěn)定好轉。manipulator control mode and programmable controllers introduction 2.1 Select discussion with manipulator control 2.1.1 classification of control relays and discrete electronic circuit can control old industrial equipment, but also more common. Mainly these two relatively cheap and you can meet the old-fashioned, simple (or simple) industrial equipment. So he can see them now, however these two control modes (relay and discrete electronic circuits) are these fatal flaws: (1) cannot adapt to the complex logic control, (2) only for the current project, the lack of compatibility and (3) not reforming the system with equipment improvements. Spring for the development of Chinas modern industrial automation technology the substantial increase in the level of industrial automation, completed the perfect relay of the computer too much. In terms of controlling the computer showed his two great advantages: (1) each of the hardware can be installed on one or more microprocessors; (2) the official designer of the software writing content control is all about. Now in several ways in the context of industrial automation can often be seen in three ways: (1) Programmable Logical Controller (referred to as IPC); (2) Distributed Control System (DCS for short), and (3) the Programmable Logical Controller (PLC for short). 2.1.2 PLC and the IPC and DCS contrast contrast 1, each of the three technologies of origins and development requirements for fast data

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論