|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.student.StudentActionLog
public class StudentActionLog
Class used to which keeps track of the student's answers actions and grades.
Constructor Summary | |
---|---|
StudentActionLog()
Creats a StudentActionLog object. |
Method Summary | |
---|---|
void |
addClickedNode(java.lang.String nodeName)
Adds a new node to the vector of clicked nodes. |
void |
addStudentAnswer(java.lang.String fromNode,
java.lang.String toNode,
int actionType,
boolean isCorrect)
Adds a new student answer to the vector of student answers. |
int |
getAttemptedLinksNumber()
Returns the number of links the user attempted to create. |
int |
getClickedNodesNumber()
Returns the number of nodes clicked by the user. |
java.util.Vector |
getClickedNodesSequence()
Returns the sequence of nodes clicked by the user in vector of strings format. |
int |
getCorrectLinksNumber()
Returns the number of correct links the user created. |
java.util.Vector |
getStudentAnswer()
Returns the student answer at the position passes as argument. |
static void |
main(java.lang.String[] args)
|
void |
reset()
Reset all the fields of this class for reuse |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StudentActionLog()
Method Detail |
---|
public java.util.Vector getClickedNodesSequence()
public java.util.Vector getStudentAnswer()
public int getClickedNodesNumber()
public int getCorrectLinksNumber()
public int getAttemptedLinksNumber()
public void reset()
public void addClickedNode(java.lang.String nodeName)
nodeName
- the name of the node to be added to the
vector of clicked nodespublic void addStudentAnswer(java.lang.String fromNode, java.lang.String toNode, int actionType, boolean isCorrect)
fromNode
- the name of the source nodetoNode
- the name of the target nodeactionType
- the actin type of the student action add/delete a linkisCorrect
- true if the link is correct, false otherwisepublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |