|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.student.StudentAnswer
public class StudentAnswer
Class used to which keeps track of the student's eachactions. It stores the source and target nodes, action type, link correctness and action time.
Field Summary | |
---|---|
static int |
ADD_LINK
Constant which denotes an add-link student action |
static int |
DELETE_LINK
Constant which denotes a delete-link student action |
Constructor Summary | |
---|---|
StudentAnswer(java.lang.String inFromNode,
java.lang.String inToNode,
int inActionType,
boolean inCorrectLink,
long inTime)
Creats a StudentAttempt object using the names of the two nodes, the action type and the correctness of the new link as arguments. |
Method Summary | |
---|---|
int |
getActionType()
Returns the type of the action the student performed (add/delete a link). |
java.lang.String |
getFromNode()
Returns the name of the source node for the new/disconnected link. |
java.lang.String |
getToNode()
Returns the name of the target node for the new/disconnected link. |
boolean |
isCorrect()
Returns true if the new link is correct, false otherwise. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
Returns the student answer in string format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ADD_LINK
public static final int DELETE_LINK
Constructor Detail |
---|
public StudentAnswer(java.lang.String inFromNode, java.lang.String inToNode, int inActionType, boolean inCorrectLink, long inTime)
Method Detail |
---|
public java.lang.String getFromNode()
public java.lang.String getToNode()
public int getActionType()
public boolean isCorrect()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |