inpro.incremental.unit
Class TextualWordIU

java.lang.Object
  extended by inpro.incremental.unit.IU
      extended by inpro.incremental.unit.WordIU
          extended by inpro.incremental.unit.TextualWordIU
All Implemented Interfaces:
java.lang.Comparable<IU>

public class TextualWordIU
extends WordIU


Nested Class Summary
 
Nested classes/interfaces inherited from class inpro.incremental.unit.IU
IU.IUUpdateListener, IU.Progress
 
Field Summary
 int counter
           
static TextualWordIU FIRST_ATOMIC_WORD_IU
           
 
Fields inherited from class inpro.incremental.unit.WordIU
avPairs, isSilence, pron, word
 
Fields inherited from class inpro.incremental.unit.IU
creationTime, FIRST_IU, groundedIn, grounds, nextSameLevelLinks, previousSameLevelLink, updateListeners
 
Constructor Summary
private TextualWordIU(java.lang.String word)
           
  TextualWordIU(java.lang.String word, TextualWordIU sll)
           
  TextualWordIU(java.lang.String word, TextualWordIU sll, int counter)
           
 
Method Summary
 double endTime()
          return the end of the timespan this IU covers
 java.lang.String getWord()
           
 boolean hasProsody()
          AtomicWordIUs have prosody if they end in either + or -
 boolean pitchIsRising()
          precondition: only call this if hasProsody()
 boolean pronunciationEquals(WordIU iu)
           
 double startTime()
          return the start of the timespan this IU covers
 void updateTimings(WordIU otherWord)
          update the end time of this word
 
Methods inherited from class inpro.incremental.unit.WordIU
appendMaryXML, getAVPairs, getFirstSegment, getLastSegment, getSegments, getValues, getWER, hasAVPairs, isBackchannel, isSilence, pronunciationEquals, removeSilentWords, setAVPairs, shiftBy, spellingEqual, spellingEquals, toMbrolaLines, toPayLoad, updateSegments, wordsToString
 
Methods inherited from class inpro.incremental.unit.IU
addNextSameLevelLink, addUpdateListener, commit, compareTo, connectSLL, deepToString, duration, equals, getAge, getAmongNextSameLevelLinks, getCreationTime, getID, getNextSameLevelLink, getNextSameLevelLinks, getOngoingGroundedIU, getProgress, getSameLevelLink, ground, groundedIn, groundIn, groundIn, grounds, hashCode, isCommitted, isCompleted, isOngoing, isRevoked, isUpcoming, notifyListeners, payloadEquals, removeAllNextSameLevelLinks, removeGrin, removeGrin, reorderNextSameLevelLink, revoke, setAsTopNextSameLevelLink, setSameLevelLink, toLabelLine, toString, toTEDviewXML, updateOnGrinUpdates
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRST_ATOMIC_WORD_IU

public static final TextualWordIU FIRST_ATOMIC_WORD_IU

counter

public int counter
Constructor Detail

TextualWordIU

public TextualWordIU(java.lang.String word,
                     TextualWordIU sll,
                     int counter)

TextualWordIU

public TextualWordIU(java.lang.String word,
                     TextualWordIU sll)

TextualWordIU

private TextualWordIU(java.lang.String word)
Method Detail

endTime

public double endTime()
Description copied from class: IU
return the end of the timespan this IU covers

Overrides:
endTime in class IU
Returns:
NaN if time is unavailable, a time (in seconds) otherwise

startTime

public double startTime()
Description copied from class: IU
return the start of the timespan this IU covers

Overrides:
startTime in class IU
Returns:
NaN if time is unavailable, a time (in seconds) otherwise

hasProsody

public boolean hasProsody()
AtomicWordIUs have prosody if they end in either + or -

Overrides:
hasProsody in class WordIU

pronunciationEquals

public boolean pronunciationEquals(WordIU iu)
Overrides:
pronunciationEquals in class WordIU

pitchIsRising

public boolean pitchIsRising()
precondition: only call this if hasProsody()

Overrides:
pitchIsRising in class WordIU

getWord

public java.lang.String getWord()
Overrides:
getWord in class WordIU

updateTimings

public void updateTimings(WordIU otherWord)
update the end time of this word

Overrides:
updateTimings in class WordIU
Parameters:
otherWord - the word to base the new timings on