All Packages Class Hierarchy This Package Previous Next Index
Class shimmer.RecordEntry
java.lang.Object
|
+----shimmer.RecordEntry
- public class RecordEntry
- extends Object
- implements Serializable
RecordEntry is an object that store submission record of a user.
A collection of RecordEntry is a Record object which is the database
of latest submission result of each user in an assignment.
RecordEntry will be put in Record using loginname of the user as a key.
So, loginname is not stored in RecordEntry.
- Version:
- 1.1 -- 9 Dec 1998
- Author:
- Kulawat Wongsaroj
-
answers
- array of answers for each question
-
answerStrings
- array of additional text answer in each question
-
email
- submitted e-mail
-
message
- log message
-
multipleAnswers
- array of CHECKBOX answers (question i answer j)
-
resubmissionQuota
- current resubmission quota
-
serialVersionUID
- To maintain class versioning
-
submitDate
- submission date
-
RecordEntry()
- Constructor of RecordEntry.
-
RecordEntry(int)
- Constructor of RecordEntry.
-
decreaseResubmissionQuota()
- Decrease resubmission quota by one
-
getAnswers()
- Get array of answers
-
getAnswerStrings()
- Get additional text answer of each question.
-
getEmail()
- Get e-mail of user in RecordEntry
-
getMessage()
- Get log message
-
getMultipleAnswers()
- Get array of CHECKBOX answers
-
getResubmissionQuota()
- Get resubmission quota
-
getSubmitDate()
- Get submission date
-
setAnswers(int[])
- Set array of answers.
-
setAnswerStrings(String[])
- Set additional text answer of each question.
-
setEmail(String)
- Set e-mail of user in RecordEntry
-
setMessage(String)
- Set log message
-
setMultipleAnswers(boolean[][])
- Set array of CHECKBOX answers
-
setResubmissionQuota(int)
- Set resubmission quota
serialVersionUID
static final long serialVersionUID
- To maintain class versioning
submitDate
private Date submitDate
- submission date
answers
private int answers[]
- array of answers for each question
resubmissionQuota
private int resubmissionQuota
- current resubmission quota
multipleAnswers
private boolean multipleAnswers[][]
- array of CHECKBOX answers (question i answer j)
answerStrings
private String answerStrings[]
- array of additional text answer in each question
message
private String message
- log message
email
private String email
- submitted e-mail
RecordEntry
public RecordEntry()
- Constructor of RecordEntry. Submission date will be set to current date and time.
Initialized log message "no activity yet" is set. Resubmission quota is set to zero.
RecordEntry
public RecordEntry(int resubmission)
- Constructor of RecordEntry. Submission date will be set to current date and time.
Initialized log message "no activity yet" is set. Resubmission quota is set as needed.
- Parameters:
- resubmission - resubmission quota
setEmail
public void setEmail(String address)
- Set e-mail of user in RecordEntry
- Parameters:
- address - e-mail address
getEmail
public String getEmail()
- Get e-mail of user in RecordEntry
- Returns:
- e-mail address
setAnswers
public void setAnswers(int answersArray[])
- Set array of answers.
- Parameters:
- answersArray - array of answers for each question
Answer of question i = answersArray[i]
setMultipleAnswers
public void setMultipleAnswers(boolean answersArray[][])
- Set array of CHECKBOX answers
- Parameters:
- answersArray -
If answersArray[i][j] is true, that means answer j
of question i is selected.
getAnswers
public int[] getAnswers()
- Get array of answers
- Returns:
- array of answers for each question
Answer of question i = int[i]
getMultipleAnswers
public boolean[][] getMultipleAnswers()
- Get array of CHECKBOX answers
- Returns:
- array of answers
If boolean[i][j] is true, that means answer j
of question i is selected.
setAnswerStrings
public void setAnswerStrings(String answerStringsArray[])
- Set additional text answer of each question.
- Parameters:
- answerStringsArray - array of text answers
getAnswerStrings
public String[] getAnswerStrings()
- Get additional text answer of each question.
- Returns:
- array of text answers
setMessage
public void setMessage(String recordMessage)
- Set log message
- Parameters:
- recordMessage - log message
getMessage
public String getMessage()
- Get log message
- Returns:
- log message
getSubmitDate
public Date getSubmitDate()
- Get submission date
- Returns:
- submission date
getResubmissionQuota
public int getResubmissionQuota()
- Get resubmission quota
- Returns:
- resubmission quota
setResubmissionQuota
public void setResubmissionQuota(int quota)
- Set resubmission quota
- Parameters:
- quota - resubmission quota
decreaseResubmissionQuota
public void decreaseResubmissionQuota()
- Decrease resubmission quota by one
All Packages Class Hierarchy This Package Previous Next Index