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

Variable Index

 o answers
array of answers for each question
 o answerStrings
array of additional text answer in each question
 o email
submitted e-mail
 o message
log message
 o multipleAnswers
array of CHECKBOX answers (question i answer j)
 o resubmissionQuota
current resubmission quota
 o serialVersionUID
To maintain class versioning
 o submitDate
submission date

Constructor Index

 o RecordEntry()
Constructor of RecordEntry.
 o RecordEntry(int)
Constructor of RecordEntry.

Method Index

 o decreaseResubmissionQuota()
Decrease resubmission quota by one
 o getAnswers()
Get array of answers
 o getAnswerStrings()
Get additional text answer of each question.
 o getEmail()
Get e-mail of user in RecordEntry
 o getMessage()
Get log message
 o getMultipleAnswers()
Get array of CHECKBOX answers
 o getResubmissionQuota()
Get resubmission quota
 o getSubmitDate()
Get submission date
 o setAnswers(int[])
Set array of answers.
 o setAnswerStrings(String[])
Set additional text answer of each question.
 o setEmail(String)
Set e-mail of user in RecordEntry
 o setMessage(String)
Set log message
 o setMultipleAnswers(boolean[][])
Set array of CHECKBOX answers
 o setResubmissionQuota(int)
Set resubmission quota

Variables

 o serialVersionUID
 static final long serialVersionUID
To maintain class versioning

 o submitDate
 private Date submitDate
submission date

 o answers
 private int answers[]
array of answers for each question

 o resubmissionQuota
 private int resubmissionQuota
current resubmission quota

 o multipleAnswers
 private boolean multipleAnswers[][]
array of CHECKBOX answers (question i answer j)

 o answerStrings
 private String answerStrings[]
array of additional text answer in each question

 o message
 private String message
log message

 o email
 private String email
submitted e-mail

Constructors

 o 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.

 o 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

Methods

 o setEmail
 public void setEmail(String address)
Set e-mail of user in RecordEntry

Parameters:
address - e-mail address
 o getEmail
 public String getEmail()
Get e-mail of user in RecordEntry

Returns:
e-mail address
 o setAnswers
 public void setAnswers(int answersArray[])
Set array of answers.

Parameters:
answersArray - array of answers for each question
Answer of question i = answersArray[i]
 o 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.
 o getAnswers
 public int[] getAnswers()
Get array of answers

Returns:
array of answers for each question
Answer of question i = int[i]
 o 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.
 o setAnswerStrings
 public void setAnswerStrings(String answerStringsArray[])
Set additional text answer of each question.

Parameters:
answerStringsArray - array of text answers
 o getAnswerStrings
 public String[] getAnswerStrings()
Get additional text answer of each question.

Returns:
array of text answers
 o setMessage
 public void setMessage(String recordMessage)
Set log message

Parameters:
recordMessage - log message
 o getMessage
 public String getMessage()
Get log message

Returns:
log message
 o getSubmitDate
 public Date getSubmitDate()
Get submission date

Returns:
submission date
 o getResubmissionQuota
 public int getResubmissionQuota()
Get resubmission quota

Returns:
resubmission quota
 o setResubmissionQuota
 public void setResubmissionQuota(int quota)
Set resubmission quota

Parameters:
quota - resubmission quota
 o decreaseResubmissionQuota
 public void decreaseResubmissionQuota()
Decrease resubmission quota by one


All Packages  Class Hierarchy  This Package  Previous  Next  Index