JSP3006SMART系统-考试监控及阅卷模块的设计与开发2

  • 格式:doc
  • 大小:1.46 MB
  • 文档页数:9

SMART系统——考试监控及阅卷模块的设计与开发摘要Smart在线考试评估系统(简称“SMART系统”),是基于Browser/Server (简称B/S)结构的数据库访问模式,采用Struts + Spring + Hibernate作为平台搭建的框架开发的一套新型智能的远程教育软件。

主要用于各中小学的学生考试和教学评估。

本论文设计作为Smart项目的一个组成部分,主要实现了考试过程监控和客观题的自动阅卷功能。

论文首先介绍了设计中所涉及到的项目背景、开发技术,并构建了系统的总体框架;其次根据中小学的实际情况和远程教育软件项目的需求,详细地进行了数据库设计和系统功能模块设计,制定了各功能模块的流程图;然后采用JAVA编程语言对本论文的设计任务进行编码,并最终实现了对考试过程的监控和对客观题的自动阅卷等功能。

通过本模块的应用,可以满足SMART系统的在线考试部分需求,对SMART系统的应用和发展起到一定的促进作用。

关键词:Hibernate;在线考试;考试监控;阅卷The SMART System-Design and Implementation The Module of The ExaminationControls and Paper InspectionAbstractSmart online examination and evaluation system, as SMART System for short; is a kind of the intelligent long-distance education software which is developed by the framework of the Struts + Spring + Hibernate. This system will be used mainly in the middle and primary schools for examination and evaluation. As the part of the system, it has mainly realized some functions, controlling the course of examination and looking over the papers automatically. First, the thesis introduces the background of the project and the technology that involved in the project, and the construction of the developing platform by according to the actual conditions of the elementary school and middle school. Second, according to the actual conditions of the middle schools and primary schools and the demand of the long-distance education software project, the thesis describes the designation of the database and the module of systematic function in details, and then makes the flow diagram of every function module; and then based upon JA V A language to program.At last the system provides the function of the examination controls and the automatic objective questions inspection.By this module applying, it may satisfy the Smart system demand, and promote the Smart system development.Key words:Hibernate; online examination; examination controls; paper inspection目录论文总页数:23页1 引言......................................................................................................... 错误!未定义书签。

1.1课题背景......................................................................................... 错误!未定义书签。

1.2课题目的......................................................................................... 错误!未定义书签。

1.3课题意义......................................................................................... 错误!未定义书签。

2 系统总体设计......................................................................................... 错误!未定义书签。

2.1系统构架及其相关技术介绍......................................................... 错误!未定义书签。

2.2开发环境及相关技术介绍............................................................. 错误!未定义书签。

3 系统需求分析......................................................................................... 错误!未定义书签。

3.1考试监控模块需求分析................................................................. 错误!未定义书签。

3.2阅卷模块需求分析......................................................................... 错误!未定义书签。

4 系统数据库设计..................................................................................... 错误!未定义书签。

4.1考试监控模块数据库设计............................................................. 错误!未定义书签。

4.2阅卷模块数据库设计..................................................................... 错误!未定义书签。

5 系统功能设计及实现............................................................................. 错误!未定义书签。

5.1考试监控模块设计及实现 (1)5.2阅卷模块设计及实现 (4)6 系统测试................................................................................................. 错误!未定义书签。

结论......................................................................................................... 错误!未定义书签。

参考文献......................................................................................................... 错误!未定义书签。

致谢......................................................................................................... 错误!未定义书签。

声明......................................................................................................... 错误!未定义书签。

1.1考试监控模块设计及实现考试监控模块的设计,是指对整个考试过程及考试过程中发生的一些事件进行监视和控制。

总体流程如下:1.学生在点击参加考试后,通过对学生所在的班级NO的判断,查找出所有该班有权限参加的考试,再通过发卷时间与服务器当前时间的比对,在页面上显示出符合该生的考试信息。

图5-1 学生考试信息图2.学生通过点击对应的考试进入考试界面(此时将学生的信息,如姓名、学号、登陆时间、登陆IP等写入监控表),进行答题。

图5-2 学生考试答题图图5-5 用户监控端班级列表图监考老师可以实时获得各个学生的考试状态。

也可以对某个或多个学生进行对应的考试操作,如让他们重新考试或者是结束考试等。

用户监控端改变考试状态流程图:图5-7 用户监控端改变考试状态流程图用户考试端获取考试状态流程图:图5-8 用户考试端获取考试状态流程图具体实现方法://创建XMLHttpRequest类var xmlHttp;function createXMLHttpRequestObject(){if(window.ActiveXObject)xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");else if(window.XMLHttpRequest)xmlHttp=new XMLHttpRequest();}//向服务器发送请求function startRequest(url,functionName){//url为要执行的在action中的更新方法var url = "<%=request.getContextPath()%>/examPageAction.do?action=update";createXMLHttpRequestObject();//发送请求后的回调函数// getExamState为我要调用的javascript函数名(主要实现对各种状态的处理)xmlHttp.onreadystatechange=getExamState;xmlHttp.open("GET",url,true);//发送请求并异步执行xmlHttp.send(null);}//实现的javascript代码function getExamState() {if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {//取得考试状态var examState = xmlHttp.responseXML.getElementsByTagName("examState");var state = examState[0].firstChild.nodeValue;//对不同的状态进行不同的操作if(state == 'kaoshizhong') {…}if(state == 'kaoshihou') {…}if(state == 'k aoshiqian') {…}}}//定时调用该函数,时间单位为毫秒window.setInterval("startRequest()", 10000);如老师禁止学生考试,则在学生考试端显示相关的信息。