?? testresult.java
字號:
/**
* TestResult.java
* 本代碼為教育目的而編寫,但遵循產(chǎn)品代碼規(guī)范。
* 任何人任何時(shí)候都可以使用此代碼,但需說明引用的代碼來源于
* www.fangsoft.org。
* 歡迎任何建議。
* 訪問我們:
* 電子郵件:fangsoft.com@gmail.com
* 網(wǎng)站: 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;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -