org.activemath.sequencer
Class TutorialExerSeqTrainCompetencyLevel

java.lang.Object
  extended by org.activemath.sequencer.ExerciseSequencer
      extended by org.activemath.sequencer.TutorialExerciseSequencer
          extended by org.activemath.sequencer.TutorialExerSeqTrainCompetencyLevel
All Implemented Interfaces:
EventListener, ActivemathEventListener, AppSessionShutdownHook

public class TutorialExerSeqTrainCompetencyLevel
extends TutorialExerciseSequencer


Field Summary
protected  int initialCompetency
           
protected static String LG_TRAIN_COMPETENCY_LEVEL
          Guided the learner to the next competency level
 
Fields inherited from class org.activemath.sequencer.TutorialExerciseSequencer
bookId, conceptIds, DEFAULT_TASK, learningGoal, TUTORIAL_ES, userId
 
Fields inherited from class org.activemath.sequencer.ExerciseSequencer
appSession, exerciseListIterator, exercisesSkipped, exercisesSolved, exerciseStrategy, exericsesFailed, FINISHED_NOCONTENTABORT, FINISHED_SESSION_EXPIRED, FINISHED_SUCCESS, FINISHED_TIMEEXPIRED, FINISHED_USERABORT, finishReason, id, itemsSeen
 
Constructor Summary
TutorialExerSeqTrainCompetencyLevel(AppSession appSession, String learningGoal, List<String> conceptIds, String bookId)
           
 
Method Summary
 ExerciseArgumentSetting getNextExercise()
          Prepare the next exercise.
 String getNextTask()
          Need to be override in sub class
 boolean isGoalAchieved()
          Need to be override in sub classes
 
Methods inherited from class org.activemath.sequencer.TutorialExerciseSequencer
exerciseFinished, exerciseSolved, getNextExerciseId
 
Methods inherited from class org.activemath.sequencer.ExerciseSequencer
addItemsAlreadySeen, addItemShown, getBookId, getExercisesSkipped, getExercisesSolved, getExerciseStrategy, getExericsesFailed, getFinishReason, getId, getItemsSeen, initExerciseListIterator, onActivemathEvent, sessionShutdown, setExercisesSkipped, setExercisesSolved, setExerciseStrategy, setExericsesFailed, setFinishReason, setItemsSeen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LG_TRAIN_COMPETENCY_LEVEL

protected static final String LG_TRAIN_COMPETENCY_LEVEL
Guided the learner to the next competency level

See Also:
Constant Field Values

initialCompetency

protected int initialCompetency
Constructor Detail

TutorialExerSeqTrainCompetencyLevel

public TutorialExerSeqTrainCompetencyLevel(AppSession appSession,
                                           String learningGoal,
                                           List<String> conceptIds,
                                           String bookId)
Method Detail

getNextTask

public String getNextTask()
Description copied from class: TutorialExerciseSequencer
Need to be override in sub class

Specified by:
getNextTask in class TutorialExerciseSequencer
Returns:

isGoalAchieved

public boolean isGoalAchieved()
Description copied from class: TutorialExerciseSequencer
Need to be override in sub classes

Specified by:
isGoalAchieved in class TutorialExerciseSequencer
Returns:
true if learning goal is achieved false if we still need to continue with showing the next exercise

getNextExercise

public ExerciseArgumentSetting getNextExercise()
                                        throws NoAvailableExercisesException
Description copied from class: ExerciseSequencer
Prepare the next exercise. By override this method, make sure you check if goal is achieved by calling isGoalAchieved().

Specified by:
getNextExercise in class ExerciseSequencer
Returns:
Throws:
NoAvailableExercisesException - if we can't find one