edu.indiana.iucbrf.domain
Class CCBRDomain

java.lang.Object
  extended by edu.indiana.iucbrf.domain.Domain
      extended by edu.indiana.iucbrf.domain.CCBRDomain
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConversationDomain, QuadrantCCBRDomain

public class CCBRDomain
extends Domain

The Domain definition for Conversational CBR systems (instead of merely CBR systems). In CCBR, problems have a question associated with them, and so the addition of problems must be handled differently than for regular CBR.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.indiana.iucbrf.domain.Domain
booleanSolutionCutoff, caseTitleBase, componentFactory, dbInfo, featureKeyFactory, filename, haveBooleanSolutionCutoff, haveReferenceSolution, minAcceptableQuality, problemDifferentiator, problemEquivalenceClasses, problemFeatureSpecCollection, problemSpace, problemTitle, rdbCollectionIDFactory, retrievedCasesTitle, solutionFeatureSpecCollection, solutionTitle, title
 
Constructor Summary
CCBRDomain()
          Creates a new instance of CCBRDomain
CCBRDomain(DBInfo dbInfo, CCBRFeatureSpecRDBInfo problemSpecInfo, FeatureSpecRDBInfo solutionSpecInfo, RDBCollectionInfo collectionInfo)
          Construct a domain that will use a database for storage, rather than structures existing in memory.
CCBRDomain(DBInfo dbInfo, CCBRFeatureSpecRDBInfo problemSpecInfo, FeatureSpecRDBInfo solutionSpecInfo, RDBCollectionInfo collectionInfo, ComponentFactory componentFactory)
          Construct a domain that will use a database for storage, rather than structures existing in memory.
CCBRDomain(DBInfo dbInfo, CCBRFeatureSpecRDBInfo problemSpecInfo, FeatureSpecRDBInfo solutionSpecInfo, RDBCollectionInfo collectionInfo, ComponentFactory componentFactory, FeatureKeyFactory featureKeyFactory)
          Construct a domain that will use a database for storage, rather than structures existing in memory.
CCBRDomain(DBInfo dbInfo, CCBRFeatureSpecRDBInfo problemSpecInfo, FeatureSpecRDBInfo solutionSpecInfo, RDBCollectionInfo collectionInfo, FeatureKeyFactory featureKeyFactory)
          Construct a domain that will use a database for storage, rather than structures existing in memory.
CCBRDomain(double minAcceptableQuality)
           
CCBRDomain(double minAcceptableQuality, ComponentFactory componentFactory)
           
CCBRDomain(double minAcceptableQuality, ComponentFactory componentFactory, FeatureKeyFactory featureKeyFactory)
           
CCBRDomain(double minAcceptableQuality, FeatureKeyFactory featureKeyFactory)
           
 
Method Summary
protected  FeatureKey addFeature(FeatureSpecCollection fsc, java.lang.String featureDescription, java.lang.String featureTypeName)
           
protected  FeatureKey addFeature(FeatureSpecCollection fsc, java.lang.String featureDescription, java.lang.String questionText, java.lang.String featureTypeName)
           
protected  FeatureKey addFeature(FeatureSpecCollection fsc, java.lang.String featureDescription, java.lang.String questionText, java.lang.String featureTypeName, FeatureKey featureKey)
           
 FeatureKey addProblemFeature(java.lang.String featureDescription, java.lang.String featureTypeName, double similarityWeight, boolean isIndex)
          Add a problem feature to this domain, after the existing features.
 FeatureKey addProblemFeature(java.lang.String featureDescription, java.lang.String featureTypeName, double similarityWeight, boolean isIndex, FeatureKey featureKey)
          Add a problem feature to this domain, after the existing features.
 FeatureKey addProblemFeature(java.lang.String featureDescription, java.lang.String questionText, java.lang.String featureTypeName, double similarityWeight, boolean isIndex)
          Add a problem feature to this domain, after the existing features.
 FeatureKey addProblemFeature(java.lang.String featureDescription, java.lang.String questionText, java.lang.String featureTypeName, double similarityWeight, boolean isIndex, FeatureKey featureKey)
          Add a problem feature to this domain, after the existing features.
 Question getQuestion(FeatureKey key)
           
 
Methods inherited from class edu.indiana.iucbrf.domain.Domain
addDisplayMapFeature, addFeature, addIndex, addSimilarityWeight, addSolutionFeature, addSolutionFeature, addTableFeature, calcDifference, close, determineSolutionQuality, equalEquivalenceClasses, equals, findNearestEquivalenceClass, finishProblemFeatureAddition, generateProblem, getCaseTitleBase, getComponentFactory, getDBInfo, getEquivalenceClasses, getFeatureDescription, getFeatureDescriptionAsHTML, getFeatureInputPanel, getFeatureInputPanel, getFeatureKeyFactory, getFeatureSpecCollection, getFilename, getMinAcceptableQuality, getNumberOfEquivalenceClasses, getProblemDifferentiator, getProblemFeatureCount, getProblemFeatureInputPanel, getProblemFeatureSpecCollection, getProblemFeatureType, getProblemTitle, getRDBCollectionIDFactory, getReferenceSolution, getRetrievedCasesTitle, getSolutionFeatureCount, getSolutionFeatureInputPanel, getSolutionFeatureSpecCollection, getSolutionFeatureType, getSolutionTitle, getStandardConstructor, getTitle, hashCode, haveReferenceSolution, isProblemSpaceSet, registerExtraFeatureSpecData, removeProblemFeature, removeSolutionFeature, replaceFeature, replaceFeature, replaceFeature, replaceFeature, setBooleanSolutionCutoff, setCaseTitleBase, setDBInfo, setEquivalenceClasses, setEquivalenceClasses, setFeatureValueFormat, setFilename, setMinAcceptableQuality, setProblemDifferentiator, setProblemSpace, setProblemTitle, setRetrievedCasesTitle, setSolutionTitle, setStandardConstructor, setTitle, standardInit, standardInit, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CCBRDomain

public CCBRDomain()
Creates a new instance of CCBRDomain


CCBRDomain

public CCBRDomain(double minAcceptableQuality)

CCBRDomain

public CCBRDomain(double minAcceptableQuality,
                  FeatureKeyFactory featureKeyFactory)

CCBRDomain

public CCBRDomain(double minAcceptableQuality,
                  ComponentFactory componentFactory)

CCBRDomain

public CCBRDomain(double minAcceptableQuality,
                  ComponentFactory componentFactory,
                  FeatureKeyFactory featureKeyFactory)

CCBRDomain

public CCBRDomain(DBInfo dbInfo,
                  CCBRFeatureSpecRDBInfo problemSpecInfo,
                  FeatureSpecRDBInfo solutionSpecInfo,
                  RDBCollectionInfo collectionInfo)
Construct a domain that will use a database for storage, rather than structures existing in memory.


CCBRDomain

public CCBRDomain(DBInfo dbInfo,
                  CCBRFeatureSpecRDBInfo problemSpecInfo,
                  FeatureSpecRDBInfo solutionSpecInfo,
                  RDBCollectionInfo collectionInfo,
                  ComponentFactory componentFactory)
Construct a domain that will use a database for storage, rather than structures existing in memory.


CCBRDomain

public CCBRDomain(DBInfo dbInfo,
                  CCBRFeatureSpecRDBInfo problemSpecInfo,
                  FeatureSpecRDBInfo solutionSpecInfo,
                  RDBCollectionInfo collectionInfo,
                  FeatureKeyFactory featureKeyFactory)
Construct a domain that will use a database for storage, rather than structures existing in memory.


CCBRDomain

public CCBRDomain(DBInfo dbInfo,
                  CCBRFeatureSpecRDBInfo problemSpecInfo,
                  FeatureSpecRDBInfo solutionSpecInfo,
                  RDBCollectionInfo collectionInfo,
                  ComponentFactory componentFactory,
                  FeatureKeyFactory featureKeyFactory)
Construct a domain that will use a database for storage, rather than structures existing in memory.

Method Detail

addProblemFeature

public FeatureKey addProblemFeature(java.lang.String featureDescription,
                                    java.lang.String featureTypeName,
                                    double similarityWeight,
                                    boolean isIndex)
Add a problem feature to this domain, after the existing features. Does not update any existing problemSpace, nor the problem equivalence classes for the reference solution.

Overrides:
addProblemFeature in class Domain
Returns:
the FeatureKey assigned to the new feature.

addProblemFeature

public FeatureKey addProblemFeature(java.lang.String featureDescription,
                                    java.lang.String questionText,
                                    java.lang.String featureTypeName,
                                    double similarityWeight,
                                    boolean isIndex)
Add a problem feature to this domain, after the existing features. Does not update any existing problemSpace, nor the problem equivalence classes for the reference solution.

Returns:
the FeatureKey assigned to the new feature.

addProblemFeature

public FeatureKey addProblemFeature(java.lang.String featureDescription,
                                    java.lang.String featureTypeName,
                                    double similarityWeight,
                                    boolean isIndex,
                                    FeatureKey featureKey)
Add a problem feature to this domain, after the existing features. Does not update any existing problemSpace, nor the problem equivalence classes for the reference solution.

Overrides:
addProblemFeature in class Domain
Returns:
the FeatureKey assigned to the new feature.

addProblemFeature

public FeatureKey addProblemFeature(java.lang.String featureDescription,
                                    java.lang.String questionText,
                                    java.lang.String featureTypeName,
                                    double similarityWeight,
                                    boolean isIndex,
                                    FeatureKey featureKey)
Add a problem feature to this domain, after the existing features. Does not update any existing problemSpace, nor the problem equivalence classes for the reference solution.

Returns:
the FeatureKey assigned to the new feature.

addFeature

protected FeatureKey addFeature(FeatureSpecCollection fsc,
                                java.lang.String featureDescription,
                                java.lang.String featureTypeName)
Overrides:
addFeature in class Domain

addFeature

protected FeatureKey addFeature(FeatureSpecCollection fsc,
                                java.lang.String featureDescription,
                                java.lang.String questionText,
                                java.lang.String featureTypeName)

addFeature

protected FeatureKey addFeature(FeatureSpecCollection fsc,
                                java.lang.String featureDescription,
                                java.lang.String questionText,
                                java.lang.String featureTypeName,
                                FeatureKey featureKey)

getQuestion

public Question getQuestion(FeatureKey key)