com.kyleswebspace.prometheus
Class Test

java.lang.Object
  extended by com.kyleswebspace.prometheus.Test

public class Test
extends java.lang.Object

Author:
Kyle

Constructor Summary
Test(java.lang.String subject, java.lang.String environment)
          This is the test constructor.
Test(java.lang.String subject, java.lang.String environment, boolean complete, short score, java.util.Date startDate, java.util.Date finishDate, java.util.ArrayList questions)
          This is the test constructor.
 
Method Summary
 java.lang.String getEnvironment()
          getEnvironnment() returns a String named enviornment.
 java.util.Date getFinishDate()
          getFinishDate() returns a Date named finishDate.
 java.util.ArrayList getQuestions()
          getQuestions() returns an ArrayList named questions.
 short getScore()
          getScore() returns a short named score.
 java.util.Date getStartDate()
          getStartDate() returns a Date named startDate.
 java.lang.String getSubject()
          getSubject() returns a String named subject.
 boolean isComplete()
          isComplete() returns a boolean.
 void setComplete(boolean complete)
          setComplete() returns void.
 void setEnvironment(java.lang.String environment)
          setEnvironment() returns void.
 void setFinishDate(java.util.Date finishDate)
          setFinishDate() returns void.
 void setQuestions(java.util.ArrayList questions)
          setQuestions() returns void.
 void setScore(short score)
          setScore() returns void.
 void setStartDate(java.util.Date startDate)
          setStartDate() returns void.
 void setSubject(java.lang.String subject)
          setSubject() returns void.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test

public Test(java.lang.String subject,
            java.lang.String environment)
This is the test constructor. It takes in two Strings, the subject and the enviornment type. variable complete is assigned a false. A new date object is then created and passed the current system time.

Parameters:
subject -
environment -

Test

public Test(java.lang.String subject,
            java.lang.String environment,
            boolean complete,
            short score,
            java.util.Date startDate,
            java.util.Date finishDate,
            java.util.ArrayList questions)
This is the test constructor. When a new object is created, the constructor recieves elements pertaining to the testee's subject, enviornment type, whether or not it is completed, the users score, the testee's start time, finish time and an ArrayList of questions.

Parameters:
subject - The subject.
environment - The user environment.
complete - True/false boolean.
score - Testee's score.
startDate - Testee's start time in system time(Date format).
finishDate - Testee's finish time(Date format).
questions - ArrayList of the testee's questions.
Method Detail

isComplete

public boolean isComplete()
isComplete() returns a boolean. This specifies if the testee has completed the test or not.

Returns:
Tests completion Status.

setComplete

public void setComplete(boolean complete)
setComplete() returns void. This sets whether or not the testee has completed the test.

Parameters:
complete - Set the tests completion status.

getEnvironment

public java.lang.String getEnvironment()
getEnvironnment() returns a String named enviornment. This specifies the testee's envirionment type.

Returns:
Returns the testee's environment type.

setEnvironment

public void setEnvironment(java.lang.String environment)
setEnvironment() returns void. It sets the testee's envionment type.

Parameters:
environment - Sets the testee's environment type.

getFinishDate

public java.util.Date getFinishDate()
getFinishDate() returns a Date named finishDate. It specifies the testee's finish time.

Returns:
Returns the tests finish time in Date format.

setFinishDate

public void setFinishDate(java.util.Date finishDate)
setFinishDate() returns void. It sets the date the Test was completed.

Parameters:
finishDate - a Date representing the date/time the test was completed

getQuestions

public java.util.ArrayList getQuestions()
getQuestions() returns an ArrayList named questions. This will be the testee's questions.

Returns:
Gets the ArrayList of questions.

setQuestions

public void setQuestions(java.util.ArrayList questions)
setQuestions() returns void. It will set the questions for the testee.

Parameters:
questions - sets the ArrayList of questions.

getScore

public short getScore()
getScore() returns a short named score. This will return the testee's score.

Returns:
Returns the testee's score.

setScore

public void setScore(short score)
setScore() returns void. This sets the testee's score.

Parameters:
score - Sets the testee's score.

getStartDate

public java.util.Date getStartDate()
getStartDate() returns a Date named startDate. This returns the time the testee began the test.

Returns:
Gets the testee's start time in Date format.

setStartDate

public void setStartDate(java.util.Date startDate)
setStartDate() returns void. This sets the time the testee began the test.

Parameters:
startDate - Sets the testee's start time in Date format.

getSubject

public java.lang.String getSubject()
getSubject() returns a String named subject. This "gets" the subject type.

Returns:
Gets the testee's subject

setSubject

public void setSubject(java.lang.String subject)
setSubject() returns void. It sets the testee's subject type.

Parameters:
subject - Sets the testee's subject.