edu.indiana.iucbrf.problem
Class DevelopingProblem

java.lang.Object
  extended by edu.indiana.iucbrf.problem.Problem
      extended by edu.indiana.iucbrf.problem.DevelopingProblem
All Implemented Interfaces:
Featured, SwingRepresentableWithDomain, SwingRepresentable, XMLRepresentable, java.io.Serializable, java.lang.Comparable

public class DevelopingProblem
extends Problem

A DevelopingProblem is a Problem that can gradually have features "revealed", simulating a conversational experience for experimental purposes.

See Also:
Serialized Form

Field Summary
protected  ConversationBlockSelector conBlockSelector
           
protected  CCBRDomain domain
           
protected  Problem known
           
protected  Problem partial
           
 
Fields inherited from class edu.indiana.iucbrf.problem.Problem
features
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
DevelopingProblem(Problem known, ConversationBlockSelector conBlockSelector, CCBRDomain domain)
          Creates a new instance of DevelopingProblem.
DevelopingProblem(Problem known, Problem partial, ConversationBlockSelector conBlockSelector, CCBRDomain domain)
           
 
Method Summary
protected  FeatureKey chooseFeatureToReveal(RetrievalResults casesUnderConsideration)
           
 Problem getKnownProblem()
           
 Problem getPartialProblem()
           
 void revealFeature(FeatureKey toReveal)
           
 void revealNextFeature(RetrievalResults casesUnderConsideration)
           
 
Methods inherited from class edu.indiana.iucbrf.problem.Problem
compareTo, constructIndices, equals, fromXML, getFeature, getFeatures, getUnestimatedCopy, toString, toString, toSwing, toSwing, toXML, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

known

protected Problem known

partial

protected Problem partial

domain

protected CCBRDomain domain

conBlockSelector

protected ConversationBlockSelector conBlockSelector
Constructor Detail

DevelopingProblem

public DevelopingProblem(Problem known,
                         Problem partial,
                         ConversationBlockSelector conBlockSelector,
                         CCBRDomain domain)

DevelopingProblem

public DevelopingProblem(Problem known,
                         ConversationBlockSelector conBlockSelector,
                         CCBRDomain domain)
Creates a new instance of DevelopingProblem. The partial problem has no known features.

Method Detail

revealFeature

public void revealFeature(FeatureKey toReveal)

revealNextFeature

public void revealNextFeature(RetrievalResults casesUnderConsideration)

chooseFeatureToReveal

protected FeatureKey chooseFeatureToReveal(RetrievalResults casesUnderConsideration)

getKnownProblem

public Problem getKnownProblem()

getPartialProblem

public Problem getPartialProblem()