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

📄 localusertestassoc.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;/** *  * LocalUserTestAssoc represents a test that is assigned to a user. * User has a many-to-many relationship with test. * LocalUserTestAssoc also keeps track of the current and maximum possible scores * for a single user running a test. *  * @author Alexander Yap */public interface LocalUserTestAssoc extends EJBLocalObject{	/**	* Gets the user ID of this association.	* @return User ID.	*/	public String getUserId();	/**	* Gets the test ID that is assigned to the user.	* @return Test ID.	*/	public String getTestId();	/**	* Gets the current score as an int.	* @return Current score	*/	public int getScore();		/**	* Gets the maximum score as an int.	* This is the maximum value that score can be.	* @return Maximum score	*/	public int getMaxScore();	/**	* Adds value and the maximum value to score.	* @param val Value to add.	* @param maxVal The maximum value that val can be.	* @return New score.	*/	public int addScore(int val, int maxVal);	/**	 * Gets the last modified datetime.	 * @return Date when this association was last modified/updated.	 */	public Date getLastModifiedDateTime();		/**	 * Mark that the user has exceeded the time limit for this test.	 * Once marked as true, it cannot be unmarked.	 */	public void exceededTestTime();			/**	 * Checks if the user has exceeded the time limit for this test.	 * @return true if this test's time limit has been exceeded.	 */	public boolean isExceededTestTime();}

⌨️ 快捷键说明

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