eu.semaine.datatypes.stateinfo
Class DialogStateInfo
java.lang.Object
eu.semaine.datatypes.stateinfo.StateInfo
eu.semaine.datatypes.stateinfo.DialogStateInfo
public class DialogStateInfo
- extends StateInfo
- Author:
- marc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DialogStateInfo
public DialogStateInfo(org.w3c.dom.Document doc)
throws MessageFormatException
- Parameters:
doc
-
- Throws:
MessageFormatException
JMSException
DialogStateInfo
public DialogStateInfo(java.util.Map<java.lang.String,java.lang.String> infoItems,
java.util.Collection<DialogStateInfo.DialogAct> dialogActs)
throws JMSException
- Parameters:
infoItems
- dialogActs
- a collection of dialog acts for the dialog history, or null.
- Throws:
JMSException
createDocumentFromInfo
protected void createDocumentFromInfo()
throws SystemConfigurationException
- Overrides:
createDocumentFromInfo
in class StateInfo
- Throws:
SystemConfigurationException
- See Also:
StateInfo.createDocumentFromInfo()
analyseDocument
protected void analyseDocument(java.lang.String rootName,
java.lang.String rootNamespace)
throws MessageFormatException
- Description copied from class:
StateInfo
- Read information from the message document and fill our info
as much as possible.
If information is found that cannot be interpreted,
the code will emit a warning but continue to work.
- Overrides:
analyseDocument
in class StateInfo
- Throws:
MessageFormatException
- if the structure of the document is
inconsistent, i.e. structure expectations are violated.
getDialogHistory
public java.util.SortedSet<DialogStateInfo.DialogAct> getDialogHistory()
- Get read-only access to the dialog history. The iterator of the sorted
set will return the dialog acts sorted by time, most recent first.
- Returns:
- a set of dialog acts, or null if the message doesn't contain a dialog history.