hmi.elckerlyc.speechengine
Class VerbalPlayer

java.lang.Object
  extended by hmi.elckerlyc.speechengine.VerbalPlayer
All Implemented Interfaces:
Player

public class VerbalPlayer
extends Object
implements Player


Field Summary
private static org.slf4j.Logger logger
           
private  VerbalPlanPlayer vpp
           
 
Constructor Summary
VerbalPlayer()
           
 
Method Summary
 void addExceptionListener(BMLExceptionListener ws)
           
 void addSpeechUnit(SpeechUnit su)
           
 void cleanup()
           
 void clearAll(double absoluteTime)
           
 Set<String> getBehaviours(String bmlId)
           
 double getEndTime(String behId, String bmlId)
           
 Set<String> getInvalidBehaviours()
           
 int getNumberOfSpeechUnits()
           
 void interruptBehaviourBlock(String bmlId, double time)
          Interrupts all behaviors in the block; that is: calls their stop and removes them from the plan
 void interruptSpeechUnit(String id, String bmlId, double globalTime)
           
 void play(double time)
           
 void removeAllExceptionListeners()
           
 void reset()
          Reset the player.
 void setBMLBlockState(String bmlId, PlanUnitState state)
           
 void setParameterValue(String behId, String bmlId, String paramId, float value)
           
 void setParameterValue(String behId, String bmlId, String paramId, String value)
           
 void setSpeechParameter(String id, String bmlId, String parameter, float value)
           
 void shutdown()
          Gets rid of the VerbalPlayer completely, create a new VerbalPlayer if you need one later on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vpp

private VerbalPlanPlayer vpp

logger

private static org.slf4j.Logger logger
Constructor Detail

VerbalPlayer

public VerbalPlayer()
Method Detail

play

public void play(double time)

addSpeechUnit

public void addSpeechUnit(SpeechUnit su)

getNumberOfSpeechUnits

public int getNumberOfSpeechUnits()

setSpeechParameter

public void setSpeechParameter(String id,
                               String bmlId,
                               String parameter,
                               float value)

interruptSpeechUnit

public void interruptSpeechUnit(String id,
                                String bmlId,
                                double globalTime)

reset

public void reset()
Description copied from interface: Player
Reset the player.

Specified by:
reset in interface Player

clearAll

public void clearAll(double absoluteTime)

cleanup

public void cleanup()

shutdown

public void shutdown()
Gets rid of the VerbalPlayer completely, create a new VerbalPlayer if you need one later on. Use cleanup to just stop execution of the current plan.

Specified by:
shutdown in interface Player

getInvalidBehaviours

public Set<String> getInvalidBehaviours()

addExceptionListener

public void addExceptionListener(BMLExceptionListener ws)
Specified by:
addExceptionListener in interface Player

removeAllExceptionListeners

public void removeAllExceptionListeners()
Specified by:
removeAllExceptionListeners in interface Player

setBMLBlockState

public void setBMLBlockState(String bmlId,
                             PlanUnitState state)
Specified by:
setBMLBlockState in interface Player

getEndTime

public double getEndTime(String behId,
                         String bmlId)
Specified by:
getEndTime in interface Player

getBehaviours

public Set<String> getBehaviours(String bmlId)
Specified by:
getBehaviours in interface Player

interruptBehaviourBlock

public void interruptBehaviourBlock(String bmlId,
                                    double time)
Description copied from interface: Player
Interrupts all behaviors in the block; that is: calls their stop and removes them from the plan

Specified by:
interruptBehaviourBlock in interface Player

setParameterValue

public void setParameterValue(String behId,
                              String bmlId,
                              String paramId,
                              float value)
Specified by:
setParameterValue in interface Player

setParameterValue

public void setParameterValue(String behId,
                              String bmlId,
                              String paramId,
                              String value)
Specified by:
setParameterValue in interface Player