edu.indiana.iucbrf.examples.quadrantRDBTemplate
Class QuadrantDomainRDB

java.lang.Object
  extended by edu.indiana.iucbrf.domain.Domain
      extended by edu.indiana.iucbrf.examples.quadrantRDBTemplate.QuadrantDomainRDB
All Implemented Interfaces:
java.io.Serializable

public class QuadrantDomainRDB
extends Domain

This class extends the standard Domain class, so that a custom reference method can be created for the Quadrant system. See introductory paper for details on reference methods.

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
QuadrantDomainRDB(DBInfo dbInfo, FeatureSpecRDBInfo problemSpecInfo, FeatureSpecRDBInfo solutionSpecInfo)
           
 
Method Summary
 SolutionQuality determineSolutionQuality(Problem p, Solution s, Solution expectedSolution)
          Overrides Domain.determineSolutionQuality(), to have very strict ratings requirements.
 Solution getReferenceSolution(Problem p)
          This method overrides the one involving equivalence classes in Domain.
 void prepareReferenceSolution(FeatureKey xKey, FeatureKey yKey)
          Prepare the reference solution for use.
 
Methods inherited from class edu.indiana.iucbrf.domain.Domain
addDisplayMapFeature, addFeature, addFeature, addIndex, addProblemFeature, addProblemFeature, addSimilarityWeight, addSolutionFeature, addSolutionFeature, addTableFeature, calcDifference, close, 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, 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

QuadrantDomainRDB

public QuadrantDomainRDB(DBInfo dbInfo,
                         FeatureSpecRDBInfo problemSpecInfo,
                         FeatureSpecRDBInfo solutionSpecInfo)
Method Detail

prepareReferenceSolution

public void prepareReferenceSolution(FeatureKey xKey,
                                     FeatureKey yKey)
Prepare the reference solution for use. This is done by recording the feature keys needed.


getReferenceSolution

public Solution getReferenceSolution(Problem p)
This method overrides the one involving equivalence classes in Domain. It returns the solution to the problem sent to it.

Overrides:
getReferenceSolution in class Domain

determineSolutionQuality

public SolutionQuality determineSolutionQuality(Problem p,
                                                Solution s,
                                                Solution expectedSolution)
Overrides Domain.determineSolutionQuality(), to have very strict ratings requirements.

Overrides:
determineSolutionQuality in class Domain