inpro.incremental.unit
Class SegmentIU

java.lang.Object
  extended by inpro.incremental.unit.IU
      extended by inpro.incremental.unit.SegmentIU
All Implemented Interfaces:
java.lang.Comparable<IU>
Direct Known Subclasses:
SysSegmentIU

public class SegmentIU
extends IU


Nested Class Summary
static class SegmentIU.SegmentType
           
 
Nested classes/interfaces inherited from class inpro.incremental.unit.IU
IU.IUUpdateListener, IU.Progress
 
Field Summary
static java.util.Set<java.lang.String> CONSONANTS
           
(package private)  Label l
           
static java.util.Map<java.lang.String,SegmentIU.SegmentType> TYPE_MAPPING
           
static java.util.Set<java.lang.String> VOWELS
           
 
Fields inherited from class inpro.incremental.unit.IU
creationTime, FIRST_IU, groundedIn, grounds, nextSameLevelLinks, previousSameLevelLink, updateListeners
 
Constructor Summary
SegmentIU(Label l)
           
SegmentIU(java.lang.String segment, SegmentIU sll)
           
 
Method Summary
 void appendMaryXML(java.lang.StringBuilder sb)
           
 double endTime()
          return the end of the timespan this IU covers
 boolean isSilence()
           
 boolean isVowel()
           
 void shiftBy(double offset, boolean recurse)
           
 double startTime()
          return the start of the timespan this IU covers
 java.lang.StringBuilder toMbrolaLine()
          this segment represented as an mbrola line
 java.lang.String toPayLoad()
           
 SegmentIU.SegmentType type()
           
 void updateLabel(Label l)
           
 
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

TYPE_MAPPING

public static final java.util.Map<java.lang.String,SegmentIU.SegmentType> TYPE_MAPPING

VOWELS

public static final java.util.Set<java.lang.String> VOWELS

CONSONANTS

public static final java.util.Set<java.lang.String> CONSONANTS

l

Label l
Constructor Detail

SegmentIU

public SegmentIU(java.lang.String segment,
                 SegmentIU sll)

SegmentIU

public SegmentIU(Label l)
Method Detail

updateLabel

public void updateLabel(Label l)

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

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

isSilence

public boolean isSilence()

isVowel

public boolean isVowel()

toPayLoad

public java.lang.String toPayLoad()
Specified by:
toPayLoad in class IU

toMbrolaLine

public java.lang.StringBuilder toMbrolaLine()
this segment represented as an mbrola line


type

public SegmentIU.SegmentType type()

appendMaryXML

public void appendMaryXML(java.lang.StringBuilder sb)

shiftBy

public void shiftBy(double offset,
                    boolean recurse)