org.problets.lib.conceptmap.student
Class StudentActionLog

java.lang.Object
  extended by org.problets.lib.conceptmap.student.StudentActionLog

public class StudentActionLog
extends java.lang.Object

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

StudentActionLog

public StudentActionLog()
Creats a StudentActionLog object.

Method Detail

getClickedNodesSequence

public java.util.Vector getClickedNodesSequence()
Returns the sequence of nodes clicked by the user in vector of strings format.

Returns:
the sequence of nodes clicked by the user

getStudentAnswer

public java.util.Vector getStudentAnswer()
Returns the student answer at the position passes as argument.

Returns:
the student answer at the position passes as argument

getClickedNodesNumber

public int getClickedNodesNumber()
Returns the number of nodes clicked by the user.

Returns:
the number of nodes clicked by the user

getCorrectLinksNumber

public int getCorrectLinksNumber()
Returns the number of correct links the user created.

Returns:
the number of correct links the user created

getAttemptedLinksNumber

public int getAttemptedLinksNumber()
Returns the number of links the user attempted to create.

Returns:
the number of links the user attempted to create

reset

public void reset()
Reset all the fields of this class for reuse


addClickedNode

public void addClickedNode(java.lang.String nodeName)
Adds a new node to the vector of clicked nodes.

Parameters:
nodeName - the name of the node to be added to the vector of clicked nodes

addStudentAnswer

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

Parameters:
fromNode - the name of the source node
toNode - the name of the target node
actionType - the actin type of the student action add/delete a link
isCorrect - true if the link is correct, false otherwise

main

public static void main(java.lang.String[] args)