org.activemath.webapp.speech
Class SpeechControllerAssistent

java.lang.Object
  extended by org.activemath.webapp.speech.SpeechControllerAssistent
All Implemented Interfaces:
SpeechControllerAssistentInterface

public class SpeechControllerAssistent
extends Object
implements SpeechControllerAssistentInterface

This class is used in the diffenrent controllers to prefer the Data for the Speech Output.


Field Summary
protected static Category log
           
 
Constructor Summary
SpeechControllerAssistent(PresentationTool pTool)
           
SpeechControllerAssistent(TransformTool tTool)
           
 
Method Summary
 String getTransformedTextFromExercise(List contents, String lang)
           
 String getTransformedTextFromItem(String itemId, String lang)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Category log
Constructor Detail

SpeechControllerAssistent

public SpeechControllerAssistent(PresentationTool pTool)

SpeechControllerAssistent

public SpeechControllerAssistent(TransformTool tTool)
Method Detail

getTransformedTextFromItem

public String getTransformedTextFromItem(String itemId,
                                         String lang)
Specified by:
getTransformedTextFromItem in interface SpeechControllerAssistentInterface
Parameters:
itemId - - The Id of the item
lang - - The language in which the text should be transformed.
Returns:
- The Content text of the item, parsed for Speech Output in the language of lang.

getTransformedTextFromExercise

public String getTransformedTextFromExercise(List contents,
                                             String lang)
Specified by:
getTransformedTextFromExercise in interface SpeechControllerAssistentInterface
Parameters:
contents - - The list of contents from the last step in the exercise.
lang - - The language in which the text should be transformed.
Returns:
- The feedback text from the last exercise step