📄 testresult.java
字号:
/**
* TestResult.java
* 本代码为教育目的而编写,但遵循产品代码规范。
* 任何人任何时候都可以使用此代码,但需说明引用的代码来源于
* www.fangsoft.org。
* 欢迎任何建议。
* 访问我们:
* 电子邮件:fangsoft.com@gmail.com
* 网站: www.fangsoft.org
* =====================================
* This code is for software education,but it follows production code quality.
* Anyone can use this code anywhere, but you should comment the code is from
* www.fangsoft.org.
* Any suggestion from you is appreciated.
* Visit us by
* email: fangsoft.com@gmail.com
* websiste: www.fangsoft.org
*/
package fangsoft.testcenter.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @author fangsoft
* 2007-2-10
*
*/
public class TestResult {
private Customer customer;
private String username;
private Test test;
private int score=-1;
private String pass;
//private QuestionResult[] questionResult;
private List<QuestionResult> questionResult;
private String startTime;
private String endTime;
public TestResult() {
this.questionResult=new ArrayList<QuestionResult>();
}
public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public String getPass() {
return pass;
}
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public Test getTest() {
return test;
}
public void setTest(Test test) {
this.test = test;
}
public List<QuestionResult> getQuestionResult() {
return questionResult;
}
public void addQuestionResult(QuestionResult qr){
this.questionResult.add(qr);
}
public QuestionResult getQuestionResult(int index){
return this.questionResult.get(index);
}
public void setQuestionResult(List<QuestionResult> questionResult) {
this.questionResult = questionResult;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public void setPass(String pass) {
this.pass = pass;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -