|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.ccbr.conversationblock.ConversationBlockCollection
public class ConversationBlockCollection
A ConversationBlockCollection is a collection of conversation blocks that are related in particular ways. Specifically, the blocks are governed by a ConversationBlockSelector, and the blocks together define a certain context. That is, the questions in a ConversationBlockCollection may be presented in any context, and they will make sense. In addition, the context is complete and closed once the ConversationBlockCollection has presented all its questions. There may optionally also be a summary question that summarizes the answers given to the Collection's questions.
Field Summary | |
---|---|
protected ConversationBlockSelector |
selector
|
protected FeatureKey |
summaryFeatureKey
|
protected java.lang.String |
title
|
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
TITLE_FONT |
Constructor Summary | |
---|---|
ConversationBlockCollection(ConversationBlockSelector selector)
Creates a new instance of ConversationBlockCollection |
Method Summary | |
---|---|
ConversationBlock |
getNextBlock(Problem problemSoFar,
RetrievalResults casesUnderConsideration,
CCBRDomain domain)
The conversation block returned should not be a question to which problemSoFar already has an answer. |
Question |
getSummaryQuestion()
|
java.lang.String |
getTitle()
|
void |
reset()
Reset the state of the conversation block selector, to prepare for a new conversation. |
void |
setTitle(java.lang.String title)
|
javax.swing.JComponent |
toSwing(Domain domain)
Obtain a JComponent representation of this ConversationBlockSelector. |
javax.swing.JComponent |
toSwing(int detailLevel)
Detail level may be ignored by implementations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConversationBlockSelector selector
protected java.lang.String title
protected FeatureKey summaryFeatureKey
Constructor Detail |
---|
public ConversationBlockCollection(ConversationBlockSelector selector)
Method Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public ConversationBlock getNextBlock(Problem problemSoFar, RetrievalResults casesUnderConsideration, CCBRDomain domain)
public Question getSummaryQuestion()
public void reset()
public javax.swing.JComponent toSwing(Domain domain)
toSwing
in interface SwingRepresentableWithDomain
public javax.swing.JComponent toSwing(int detailLevel)
toSwing
in interface SwingRepresentable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |