|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.ccbr.conversationblock.selector.AbstractConversationBlockSelector edu.indiana.iucbrf.ccbr.conversationblock.selector.FrequencyConversationBlockSelector
public class FrequencyConversationBlockSelector
This ConversationBlockSelector will always return a Question, the one corresponding to the FeatureKey most frequently appearing in the cases under consideration.
Field Summary |
---|
Fields inherited from class edu.indiana.iucbrf.ccbr.conversationblock.selector.AbstractConversationBlockSelector |
---|
differentiator |
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
TITLE_FONT |
Constructor Summary | |
---|---|
FrequencyConversationBlockSelector()
Creates a new instance of FrequencyConversationBlockSelector |
Method Summary | |
---|---|
protected edu.indiana.iucbrf.ccbr.conversationblock.selector.FrequencyConversationBlockSelector.FrequencyCounter |
countFrequencies(Problem problemSoFar,
RetrievalResults casesUnderConsideration)
|
void |
decisionMade(java.lang.Object decision)
The decision indicates the key chosen by the ensemble. |
java.util.ArrayList |
getFeatureKeyOrdering(Problem problemSoFar,
RetrievalResults casesUnderConsideration)
|
protected FeatureKey |
getNextFeatureKeyImpl(Problem problemSoFar,
RetrievalResults casesUnderConsideration,
CCBRDomain domain)
|
protected void |
initConversationImpl(Problem initialProblem)
|
SuggestionSet |
makeSuggestions(java.lang.Object[] args,
double totalStrength)
By default, a conversation block selector as an ensemble member gives all its strength to its single greatest suggestion. |
void |
reset()
Reset the state of the conversation block selector, to prepare for a new conversation. |
javax.swing.JComponent |
toSwing(Domain domain)
|
javax.swing.JComponent |
toSwing(int detailLevel)
Detail level may be ignored by implementations. |
Methods inherited from class edu.indiana.iucbrf.ccbr.conversationblock.selector.AbstractConversationBlockSelector |
---|
getNextBlock, getNextFeatureKey, initConversation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrequencyConversationBlockSelector()
Method Detail |
---|
protected FeatureKey getNextFeatureKeyImpl(Problem problemSoFar, RetrievalResults casesUnderConsideration, CCBRDomain domain)
getNextFeatureKeyImpl
in class AbstractConversationBlockSelector
protected edu.indiana.iucbrf.ccbr.conversationblock.selector.FrequencyConversationBlockSelector.FrequencyCounter countFrequencies(Problem problemSoFar, RetrievalResults casesUnderConsideration)
public java.util.ArrayList getFeatureKeyOrdering(Problem problemSoFar, RetrievalResults casesUnderConsideration)
public void reset()
ConversationBlockSelector
reset
in interface ConversationBlockSelector
protected void initConversationImpl(Problem initialProblem)
initConversationImpl
in class AbstractConversationBlockSelector
public javax.swing.JComponent toSwing(Domain domain)
toSwing
in interface SwingRepresentableWithDomain
public javax.swing.JComponent toSwing(int detailLevel)
SwingRepresentable
toSwing
in interface SwingRepresentable
public SuggestionSet makeSuggestions(java.lang.Object[] args, double totalStrength)
makeSuggestions
in interface EnsembleMember
args
- The arguments take the following form:
totalStrength
- The total amount of strength that this ensemble member
may divide among its suggestions. The simplest case has each ensemble member
with totalStrength = 1.0, giving all its strength to its single strongest
suggestion.public void decisionMade(java.lang.Object decision)
decisionMade
in interface EnsembleMember
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |