|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.problets.student.StudentModel
public class StudentModel
StudentModel class to record all student-related information
Field Summary | |
---|---|
static java.lang.String |
HEADER
|
Fields inherited from interface org.problets.tutor.GradeConstants |
---|
CORRECT, GENERATED, gradeText, INCORRECT, MISSED, PARTIAL, TOTAL_STATS, UNATTEMPTED |
Constructor Summary | |
---|---|
StudentModel(KnowledgeModel correctKM)
----------------------------------------------------- |
Method Summary | |
---|---|
void |
addtoAnswer(CodeSegmentAttempt step)
Adds a code segment answer for coding problems |
void |
addtoAnswer(ErrorLine inErrorLine)
This subsumes ErrorLine and LineOutput versions below public void addtoAnswer( AbstractLine line ) { currentAnswer.addtoAnswer( line ); } |
void |
addtoAnswer(ExpressionViewStep step)
Adds to the answer for an expression evaluation problem |
void |
addtoAnswer(LineOutput inOutput)
Adds to the answer for an output problem - Needed to enter "No Output" |
void |
addtoAnswer(LineOutput inOutput,
java.util.Vector actualOutput,
java.lang.Object source)
Adds to the answer for an output problem |
void |
addtoAnswer(java.util.Vector dataTrace)
Adds to the answer for a state problem |
void |
addToGrades(StudentRecord newGrade)
Adds grade for another problem |
int[] |
getAbbreviatedPerformance()
Returns the ABBREVIATED performance for ALL the learning objectives |
java.util.Vector |
getAllLearningObjectives()
Returns all the learning objectives for this topic, not just those where the student needs to solve more problems |
java.util.Vector |
getAnswers()
|
java.util.Vector |
getAnswersForLine(int lineNumber)
|
java.util.Vector |
getDetailedPerformance()
Returns the detailed performance for ALL the learning objectives |
java.lang.String |
getGradesAbbreviated(boolean singleLine)
Returns the number of problems the student generated, attempted, solved correctly, partially and incorrectly |
java.lang.String |
getGradesDetailed()
Returns the student's grade individually for each problem. |
java.lang.Object |
getLastAnswer()
|
StudentRecord |
getLastGrade()
Helps CodeFeedbackManager add time spent on problem |
int |
getNumberEntries()
|
java.lang.String |
getProgress()
Returns only the number of problems generated and attempted |
IndividualKnowledgeModel |
getStudentKM()
Returns an immutable reference to the student's knowlege model - used by conceptmap.OpenStudentModeler |
java.util.Vector |
getStudentKUs()
Returns a clone of the vector of references to the actual knowledge units in the student model |
java.util.Vector |
getStudentLearningObjectives()
Returns the vector of pointers to knowledge units for this session for the student |
boolean |
isLastAnswerCorrect()
Returns whether the last problem was solved correctly |
boolean |
isProblemAttempted()
----------------------------------------------------- Method to return whether the problem has been attempted |
static void |
main(java.lang.String[] args)
|
void |
printStudentKnowledgeModel()
|
void |
reset()
----------------------------------------------------- Method to reset all simulation flags for current instance of the problem. |
void |
resetGrades()
Resets the grades for the student |
void |
undoAllAnswers()
|
void |
undoLastAnswer()
Removes the last entry in the answer |
void |
updateAnswersForLine(int lineNumber,
java.util.Vector newAnswers,
java.util.Vector actualAnswer)
Updates the answer for a line for an output problem |
void |
updateCredit(java.lang.String problemTypeString,
int gradeType)
Method to work with the new grade() method - It will let TutorModel.grade() register correct/incorrect/missed for the right type of problem. |
void |
updateLearningObjectives()
Goes through all the learning objectives to see if they have been met |
void |
verifyOutputCorrectness(java.util.Vector actualAnswer)
If the user manipulates the output of a program on the OutputStreamView panel this method is used to verify the correctness of the changes for Error-Flagging purposes |
Methods inherited from class java.util.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HEADER
Constructor Detail |
---|
public StudentModel(KnowledgeModel correctKM)
- Method Detail |
---|
public void reset()
none
- public java.util.Vector getStudentLearningObjectives()
public java.util.Vector getAllLearningObjectives()
public java.util.Vector getStudentKUs()
public final IndividualKnowledgeModel getStudentKM()
public java.util.Vector getAnswersForLine(int lineNumber)
public java.lang.Object getLastAnswer()
public java.util.Vector getAnswers()
public int getNumberEntries()
public boolean isProblemAttempted()
none
-
public java.util.Vector getDetailedPerformance()
public int[] getAbbreviatedPerformance()
public java.lang.String getProgress()
public boolean isLastAnswerCorrect()
public java.lang.String getGradesAbbreviated(boolean singleLine)
public java.lang.String getGradesDetailed()
public StudentRecord getLastGrade()
public void addtoAnswer(ErrorLine inErrorLine)
public void addtoAnswer(LineOutput inOutput)
public void addtoAnswer(LineOutput inOutput, java.util.Vector actualOutput, java.lang.Object source)
public void addtoAnswer(java.util.Vector dataTrace)
public void addtoAnswer(ExpressionViewStep step)
public void addtoAnswer(CodeSegmentAttempt step)
public void undoLastAnswer()
public void undoAllAnswers()
public void updateAnswersForLine(int lineNumber, java.util.Vector newAnswers, java.util.Vector actualAnswer)
public void verifyOutputCorrectness(java.util.Vector actualAnswer)
public void updateCredit(java.lang.String problemTypeString, int gradeType)
public void updateLearningObjectives()
public void addToGrades(StudentRecord newGrade)
public void resetGrades()
public void printStudentKnowledgeModel()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |