|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.feedback.SimpleFeedback
public abstract class SimpleFeedback
The base-class for feedback-types. All specific feedback- types have to extend this class.
| Field Summary | |
|---|---|
static FeedbackGenerator |
feedbackGenerator
|
static int |
MAX_TRIES
Defines the amount of the maximal tries for incorrect operations. |
| Constructor Summary | |
|---|---|
SimpleFeedback(FeedbackExercise exercise)
Creates a SimpleFeedback |
|
| Method Summary | |
|---|---|
void |
displayLoadingMessage()
This method will be called, when a new exercise is start loading. |
boolean |
exerciseFinished()
Returns if the exercise was finished. |
void |
exerciseUpdate(ExerciseUpdateEvent e)
Invoked when an Event occures |
Evaluator |
getEvaluator()
Gets the Evaluator |
FeedbackGenerator |
getFeedbackGenerator()
Gets the FeedbackGenerator |
int |
getFeedbackTypeID()
Returns the FeedbackTypeID |
OperationQueue |
getInitOperationQueue()
Gets the init-operations |
OperationQueue |
getTodoOperationQueue()
Gets the todo-operations |
void |
load(java.util.HashMap hm)
Loads the values of this feedback with the values from the delivered HashMap-representation |
java.util.HashMap |
save()
Converts all feedback-values in a HashMap-representation for saving-purposes |
void |
setEvaluator(Evaluator e)
Sets the Evaluator |
void |
setInitOperationQueue(OperationQueue oq)
Sets the init-operations |
void |
setTodoOperationQueue(OperationQueue oq)
Sets the todo-operations |
void |
switchTo(SimpleFeedback newFeedback,
boolean update)
Switches to an other feedback-type |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static FeedbackGenerator feedbackGenerator
public static final int MAX_TRIES
| Constructor Detail |
|---|
public SimpleFeedback(FeedbackExercise exercise)
exercise - FeedbackExercise| Method Detail |
|---|
public FeedbackGenerator getFeedbackGenerator()
public void setEvaluator(Evaluator e)
e - Evaluator (NormalEvaluator or FaultEvaluator)NormalEvaluator,
FaultEvaluatorpublic Evaluator getEvaluator()
public void displayLoadingMessage()
public void exerciseUpdate(ExerciseUpdateEvent e)
ExerciseUpdateListener
exerciseUpdate in interface ExerciseUpdateListenere - The eventpublic void setTodoOperationQueue(OperationQueue oq)
oq - todo-operationspublic OperationQueue getTodoOperationQueue()
public void setInitOperationQueue(OperationQueue oq)
oq - init-operationspublic OperationQueue getInitOperationQueue()
public boolean exerciseFinished()
public int getFeedbackTypeID()
FeedbackSelectorpublic java.util.HashMap save()
public void load(java.util.HashMap hm)
hm - HashMap-representation
public void switchTo(SimpleFeedback newFeedback,
boolean update)
newFeedback - SimpleFeedbackupdate - true, to generate a jump-message with delta=0 which has the effect, that all data-structures are updated, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||