hmi.elckerlyc.speechengine
Class AbstractSpeechUnit

java.lang.Object
  extended by hmi.elckerlyc.planunit.AbstractPlanUnit
      extended by hmi.elckerlyc.speechengine.AbstractSpeechUnit
All Implemented Interfaces:
PlanUnit, SpeechUnit
Direct Known Subclasses:
TextSpeechUnit, TTSUnit

public abstract class AbstractSpeechUnit
extends AbstractPlanUnit
implements SpeechUnit


Field Summary
protected  double bmlStartTime
           
private  TimePeg endSync
           
private static org.slf4j.Logger logger
           
protected  String speechText
           
private  TimePeg startSync
           
 
Fields inherited from class hmi.elckerlyc.planunit.AbstractPlanUnit
bmlBlockPeg
 
Constructor Summary
AbstractSpeechUnit(BMLBlockPeg bbPeg, String text, String id, String bmlId)
           
 
Method Summary
 TimePeg getEndPeg()
           
 double getEndTime()
          Get the global end time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet)
 TimePeg getStartPeg()
           
 double getStartTime()
          Get the global start time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet)
 void sendEndProgress(double time)
          Send the end progress feedback info, should be called only from the VerbalPlanPlayer.
protected  void sendStartProgress(double time)
           
 void setEnd(TimePeg s)
           
 void setStart(TimePeg s)
           
 
Methods inherited from class hmi.elckerlyc.planunit.AbstractPlanUnit
addFeedbackListener, feedback, getAvailableSyncs, getBMLBlockPeg, getBMLId, getId, getPreferedDuration, getRelativeTime, getReplacementGroup, getState, getTime, isDone, isLurking, isPlaying, isSubUnit, play, playUnit, reset, resetUnit, setState, setSubUnit, start, startUnit, stop, stopUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hmi.elckerlyc.speechengine.SpeechUnit
sendProgress, setParameterValue
 
Methods inherited from interface hmi.elckerlyc.planunit.PlanUnit
addFeedbackListener, feedback, getAvailableSyncs, getBMLBlockPeg, getBMLId, getId, getPreferedDuration, getRelativeTime, getReplacementGroup, getState, getTime, getTimePeg, hasValidTiming, isDone, isLurking, isPlaying, isSubUnit, play, reset, setParameterValue, setState, setTimePeg, start, stop
 

Field Detail

startSync

private TimePeg startSync

endSync

private TimePeg endSync

speechText

protected String speechText

bmlStartTime

protected double bmlStartTime

logger

private static org.slf4j.Logger logger
Constructor Detail

AbstractSpeechUnit

AbstractSpeechUnit(BMLBlockPeg bbPeg,
                   String text,
                   String id,
                   String bmlId)
Method Detail

getStartTime

public double getStartTime()
Description copied from interface: PlanUnit
Get the global start time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet)

Specified by:
getStartTime in interface PlanUnit

getEndTime

public double getEndTime()
Description copied from interface: PlanUnit
Get the global end time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet)

Specified by:
getEndTime in interface PlanUnit

getEndPeg

public TimePeg getEndPeg()

getStartPeg

public TimePeg getStartPeg()

setStart

public void setStart(TimePeg s)
Specified by:
setStart in interface SpeechUnit

setEnd

public void setEnd(TimePeg s)
Specified by:
setEnd in interface SpeechUnit

sendStartProgress

protected void sendStartProgress(double time)

sendEndProgress

public void sendEndProgress(double time)
Send the end progress feedback info, should be called only from the VerbalPlanPlayer.

Specified by:
sendEndProgress in interface SpeechUnit
Parameters:
time - time since start of BML execution