net.sourceforge.pavlov.pluglets.feedback.random
Class ExpertFeedbackMode

java.lang.Object
  extended by net.sourceforge.pavlov.pluglets.feedback.random.DefaultVisualFeedbackMode
      extended by net.sourceforge.pavlov.pluglets.feedback.random.ExpertFeedbackMode

public class ExpertFeedbackMode
extends DefaultVisualFeedbackMode

A feedback mode that is generous for right answers and draconian for wrong answers. Keeps track of "winning streaks."


Field Summary
protected  int nanswered
           
protected  int oldSize
           
protected  int streak
           
 
Fields inherited from class net.sourceforge.pavlov.pluglets.feedback.random.DefaultVisualFeedbackMode
decrement, increment, initialSize, message, minimumSize, name, size
 
Constructor Summary
ExpertFeedbackMode()
          Creates a new ExpertFeedbackMode instance.
 
Method Summary
 String getMessage()
          Gives an encouraging message.
 String getShortName()
          Gets a menu-friendly name for this mode.
 void rightEvent()
          Increments the size, gives bonuses every 15 questions.
 String toString()
          Gets a descriptive name for this mode.
 void wrongEvent()
          Sets image size to minimum size.
 
Methods inherited from class net.sourceforge.pavlov.pluglets.feedback.random.DefaultVisualFeedbackMode
getSize, setName, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nanswered

protected int nanswered

streak

protected int streak

oldSize

protected int oldSize
Constructor Detail

ExpertFeedbackMode

public ExpertFeedbackMode()
Creates a new ExpertFeedbackMode instance.

Method Detail

getMessage

public String getMessage()
Gives an encouraging message.

Overrides:
getMessage in class DefaultVisualFeedbackMode
Returns:
a String value

rightEvent

public void rightEvent()
Increments the size, gives bonuses every 15 questions.

Overrides:
rightEvent in class DefaultVisualFeedbackMode

wrongEvent

public void wrongEvent()
Sets image size to minimum size. Gives bonuses every 15 questions.

Overrides:
wrongEvent in class DefaultVisualFeedbackMode

getShortName

public String getShortName()
Gets a menu-friendly name for this mode.

Overrides:
getShortName in class DefaultVisualFeedbackMode
Returns:
a String value

toString

public String toString()
Gets a descriptive name for this mode.

Overrides:
toString in class DefaultVisualFeedbackMode
Returns:
a String value