⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 localanswerhistoryrecord.java

📁 老外的在线考试
💻 JAVA
字号:
/* * SchoolEJB - CyberDemia's library of EJBs for educational related services. * Copyright (C) 2003 CyberDemia Research and Services * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Library General Public License for more details. *  * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA  02111-1307, USA. * * See the COPYING file located in the top-level-directory of * the archive of this library for complete text of license. */package com.cyberdemia.school;import javax.ejb.*;import java.util.Date;/** *  * LocalAnswerHistoryRecord is the local interface to a * AnswerHistoryRecordBean instance that stores a historical * record of a user's answer to a specific question in a specifc test. *  * @author Alexander Yap */public interface LocalAnswerHistoryRecord extends EJBLocalObject{	/**	* Gets the User ID of this history record.	* @return User ID.	*/	public String getUserId();	/**	* Gets the Test ID of this history record.	* @return Test ID.	*/	public String getTestId();	/**	* Gets the Question ID of this history record.	* @return Question ID.	*/	public String getQuestionId();	/**	 * Gets the index of the question within its owner test.	 * @return Question's index within its test.	 */	public int getQuestionIndex();		/**	 * Gets the score of the question. This is the score awarded to the	 * user if the user's answer is correct.	 * @return Question's score	 */	public int getQuestionScore();		/**	 * Checks if the user answered the question correctly.	 * @return true if the user answered the question correctly, otherwise false.	 */	public boolean isAnswerCorrect();		/**	 * Gets the score actually awarded to the user for this question.	 * @return Score awarded to the user.	 */	public int getUserScore();		/**	 * Gets the user's answer to the question.	 * @return User's answer	 */	public int getUserAnswer();		/**	 * Gets the correct answer to the question.	 * @return Question's correct answer.	 */	public int getCorrectAnswer();		/**	 * Gets the timestamp when the user answered the question.	 * @return Timestamp when the user answered the question.	 */	public Date getTimestamp();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -