org.activemath.webapp.speech
Class SpeechRuleChecker
java.lang.Object
org.activemath.webapp.speech.SpeechRuleChecker
- All Implemented Interfaces:
- SpeechRuleCheckerInterface
public class SpeechRuleChecker
- extends Object
- implements SpeechRuleCheckerInterface
The SpeechRuleChecker decides if there is something to read.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Category log
SpeechRuleChecker
public SpeechRuleChecker(User usr)
computeRulesInPage
public void computeRulesInPage(Page page)
- This method is used in the ViewBook to decide which item should be read in which way
(don't read, onDemand or universal)
- Specified by:
computeRulesInPage in interface SpeechRuleCheckerInterface
- Parameters:
page -
computeRulesInExercise
public void computeRulesInExercise()
- Method for the exercise Controller to check if Speech Output should be read here
- Specified by:
computeRulesInExercise in interface SpeechRuleCheckerInterface
computeRulesInSearch
public void computeRulesInSearch(String itemId)
- Method for the RuleChecker used in the SearchController
- Specified by:
computeRulesInSearch in interface SpeechRuleCheckerInterface
- Parameters:
itemId - -
Id of the item which the item-view.vm showed
isSpeechOnDemandOn
public boolean isSpeechOnDemandOn()
- Specified by:
isSpeechOnDemandOn in interface SpeechRuleCheckerInterface
- Returns:
- A boolean value if the speech presentation type is OnDemand. So there will be a
button in the velocity to start the OnDemandController.
isSpeechUniversalOn
public boolean isSpeechUniversalOn()
- Specified by:
isSpeechUniversalOn in interface SpeechRuleCheckerInterface
- Returns:
- A boolean value if the speech presentation type is Universal. So the
UniversalController will be called automatically.
getCheckedItemList
public SpeechItemList getCheckedItemList()
- Specified by:
getCheckedItemList in interface SpeechRuleCheckerInterface
- Returns:
- A SpeechItemList with all item wich will be presented in the Universal type.
isSpeechExerciseOn
public boolean isSpeechExerciseOn()
- Specified by:
isSpeechExerciseOn in interface SpeechRuleCheckerInterface
- Returns:
- A boolean value if there is a speech presentation in exercises.