inpro.incremental.unit
Class PhraseIU
java.lang.Object
inpro.incremental.unit.IU
inpro.incremental.unit.PhraseIU
- All Implemented Interfaces:
- java.lang.Comparable<IU>
public class PhraseIU
- extends IU
an IU that binds several WordIUs together to form a phrase.
phrases are a convenient level for synthesis output if they contain words in
units that roughly correspond to prosodic phrases
- Author:
- timo
Methods inherited from class inpro.incremental.unit.IU |
addNextSameLevelLink, addUpdateListener, commit, compareTo, connectSLL, deepToString, duration, endTime, equals, getAge, getAmongNextSameLevelLinks, getCreationTime, getID, getNextSameLevelLink, getNextSameLevelLinks, getOngoingGroundedIU, getSameLevelLink, ground, groundedIn, groundIn, grounds, hashCode, isCommitted, isCompleted, isOngoing, isRevoked, isUpcoming, notifyListeners, payloadEquals, removeAllNextSameLevelLinks, removeGrin, removeGrin, reorderNextSameLevelLink, revoke, setAsTopNextSameLevelLink, setSameLevelLink, startTime, toLabelLine, toString, toTEDviewXML, updateOnGrinUpdates |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
phrase
final java.lang.String phrase
type
private PhraseIU.PhraseType type
status
private PhraseIU.PhraseStatus status
progress
IU.Progress progress
- the state of delivery that this unit is in
PhraseIU
public PhraseIU(WordIU word)
PhraseIU
public PhraseIU(java.lang.String phrase,
PhraseIU.PhraseStatus status)
PhraseIU
public PhraseIU(java.lang.String phrase,
PhraseIU.PhraseStatus status,
PhraseIU.PhraseType type)
toPayLoad
public java.lang.String toPayLoad()
- Specified by:
toPayLoad
in class IU
expectedWordCount
public int expectedWordCount()
- the number of white-space delimited tokens in the payload
groundIn
public void groundIn(java.util.List<IU> ius)
- grounds in the list of wordIUs, which must have the expected number of elements
- Overrides:
groundIn
in class IU
setProgress
public void setProgress(IU.Progress p)
getProgress
public IU.Progress getProgress()
- Description copied from class:
IU
- by default, an IU
- is complete if the last grounding unit is complete,
- is upcoming if the first grounding unit is upcoming,
- is ongoing if inbetween those two states
- is null if there are no grounding units.
- Overrides:
getProgress
in class IU
setFinal
public void setFinal()
getStatus
public PhraseIU.PhraseStatus getStatus()
setStatus
public void setStatus(PhraseIU.PhraseStatus status)
getType
public PhraseIU.PhraseType getType()