|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pavlov.user.QuizData
public class QuizData
Data describing a single quiz on a single chapter.
Constructor Summary | |
---|---|
QuizData()
Creates a new QuizData instance with no
answers and quiz starting right now. |
Method Summary | |
---|---|
void |
addRight()
Describe addRight method here. |
void |
addWrong()
Describe addWrong method here. |
String |
getElapsedTimeString()
From start of quiz to now, only makes sense for quiz in progress. |
double |
getPercentage()
Describe getPercentage method here. |
int |
getRight()
Describe getRight method here. |
Date |
getStart()
Describe getStart method here. |
int |
getTotal()
Describe getTotal method here. |
int |
getWrong()
Describe getWrong method here. |
void |
setRight(int r)
Describe setRight method here. |
void |
setStart(long when)
Describe setStart method here. |
void |
setTotal(int r)
Describe setTotal method here. |
void |
setWrong(int r)
Describe setWrong method here. |
void |
toXML(Writer writer)
Describe toXML method here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuizData()
QuizData
instance with no
answers and quiz starting right now.
Method Detail |
---|
public void setRight(int r)
setRight
method here.
r
- an int
valuepublic void setWrong(int r)
setWrong
method here.
r
- an int
valuepublic void setTotal(int r)
setTotal
method here.
r
- an int
valuepublic void setStart(long when)
setStart
method here.
when
- a long
valuepublic void addRight()
addRight
method here.
public void addWrong()
addWrong
method here.
public double getPercentage()
getPercentage
method here.
double
valuepublic int getRight()
getRight
method here.
int
valuepublic int getTotal()
getTotal
method here.
int
valuepublic int getWrong()
getWrong
method here.
int
valuepublic Date getStart()
getStart
method here.
Date
valuepublic String getElapsedTimeString()
String
valuepublic void toXML(Writer writer) throws IOException
toXML
method here.
writer
- a java.io.Writer
value
IOException
- if an error occurs
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |