|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinpro.incremental.unit.IU
inpro.incremental.unit.InstallmentIU
public class InstallmentIU
A simple wrapper for both system and user uttered installments - for user installments references to recognized WordIUs are kept used to infer the spoken text in toPayload() - for system installments a reference to the corresponding dialogueAct is kept and the spoken text is stored in the variable @see{tts}.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class inpro.incremental.unit.IU |
---|
IU.IUUpdateListener, IU.Progress |
Field Summary | |
---|---|
(package private) boolean |
systemProduced
Variable specifying who produced this installment |
protected java.lang.String |
tts
String holding the system reponse |
Fields inherited from class inpro.incremental.unit.IU |
---|
creationTime, FIRST_IU, groundedIn, grounds, nextSameLevelLinks, previousSameLevelLink, updateListeners |
Constructor Summary | |
---|---|
InstallmentIU(IU dialogueAct,
java.lang.String tts)
Constructor for an installment produced by the system, grounded in a dialogueAct. |
|
InstallmentIU(java.util.List<WordIU> currentInstallment)
Constructor for an installment produced by the user, grounded in a list of spoken words. |
Method Summary | |
---|---|
boolean |
systemProduced()
Determines whether the installment is a 'system' one. |
java.lang.String |
toPayLoad()
Returns a string representation of the payload of this IU. |
boolean |
userProduced()
Determines whether the installment is a 'user' one. |
Methods inherited from class inpro.incremental.unit.IU |
---|
addNextSameLevelLink, addUpdateListener, commit, compareTo, connectSLL, deepToString, duration, endTime, 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, startTime, toLabelLine, toString, toTEDviewXML, updateOnGrinUpdates |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String tts
boolean systemProduced
Constructor Detail |
---|
public InstallmentIU(java.util.List<WordIU> currentInstallment)
currentInstallment
- the list of wordIUs grounding this installmentpublic InstallmentIU(IU dialogueAct, java.lang.String tts)
dialogueAct
- the dialogue act grounding this installmenttts
- the spoken stringMethod Detail |
---|
public boolean systemProduced()
public boolean userProduced()
public java.lang.String toPayLoad()
toPayLoad
in class IU
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |