mauda.feedback.types
Class FaultFeedback

java.lang.Object
  extended by mauda.feedback.SimpleFeedback
      extended by mauda.feedback.types.FaultFeedback
All Implemented Interfaces:
ExerciseUpdateListener

public class FaultFeedback
extends SimpleFeedback

Provides the logic for Fault-Feedback in FaultMode- exercises.

Author:
Markus Krebs

Field Summary
 
Fields inherited from class mauda.feedback.SimpleFeedback
feedbackGenerator, MAX_TRIES
 
Constructor Summary
FaultFeedback(FeedbackExercise exercise)
          Creates a FaultFeedback
 
Method Summary
 int getFeedbackTypeID()
          Returns the FeedbackTypeID
 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 setTodoOperationQueue(OperationQueue oq)
          Sets the todo-operations
 void stateConfig()
          Configurates the state of Fault-Feedback, e.g. after loading an "in process" exercise.
 
Methods inherited from class mauda.feedback.SimpleFeedback
displayLoadingMessage, exerciseFinished, exerciseUpdate, getEvaluator, getFeedbackGenerator, getInitOperationQueue, getTodoOperationQueue, setEvaluator, setInitOperationQueue, switchTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultFeedback

public FaultFeedback(FeedbackExercise exercise)
Creates a FaultFeedback

Parameters:
exercise - FeedbackExercise
Method Detail

setTodoOperationQueue

public void setTodoOperationQueue(OperationQueue oq)
Description copied from class: SimpleFeedback
Sets the todo-operations

Overrides:
setTodoOperationQueue in class SimpleFeedback
Parameters:
oq - todo-operations

getFeedbackTypeID

public int getFeedbackTypeID()
Description copied from class: SimpleFeedback
Returns the FeedbackTypeID

Overrides:
getFeedbackTypeID in class SimpleFeedback
Returns:
feedback-type-ID
See Also:
FeedbackSelector

save

public java.util.HashMap save()
Description copied from class: SimpleFeedback
Converts all feedback-values in a HashMap-representation for saving-purposes

Overrides:
save in class SimpleFeedback
Returns:
HashMap-representation

load

public void load(java.util.HashMap hm)
Description copied from class: SimpleFeedback
Loads the values of this feedback with the values from the delivered HashMap-representation

Overrides:
load in class SimpleFeedback
Parameters:
hm - HashMap-representation

stateConfig

public void stateConfig()
Configurates the state of Fault-Feedback, e.g. after loading an "in process" exercise.