|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.adaptation.Adaptation
public abstract class Adaptation
This abstract class is a super class to all adaptation classes. It describes, in a given domain, how to adapt a ArrayList of retrieved cases into a solution for a given problem.
Field Summary | |
---|---|
protected boolean |
debugMode
When true, debugging information is printed to the screen. |
protected double[] |
wts
An array of doubles, describing the weights (relative importance), starting with the most similar case retrieved. |
Constructor Summary | |
---|---|
Adaptation()
Creates new Adaptation. |
|
Adaptation(boolean debugMode)
Creates new Adaptation |
|
Adaptation(double[] wts,
boolean debugMode)
Creates new Adaptation |
Method Summary | |
---|---|
abstract Solution |
adaptTo(RetrievalResults retrieved,
Problem currentProblem,
Domain domain)
This abstract method adapts retrieved cases to solve the given problem. |
void |
setDebugMode(boolean debugMode)
Set the debug mode to true to see debugging messages during program execution. |
void |
setWeights(double[] wts)
Set the weights according to the provided array of doubles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] wts
protected boolean debugMode
Constructor Detail |
---|
public Adaptation()
public Adaptation(boolean debugMode)
debugMode
- Set to true to print debugging information, false otherwise.public Adaptation(double[] wts, boolean debugMode)
The
- similarity weights to be used in adaptation.debugMode
- Set to true to print debugging information, false otherwise.Method Detail |
---|
public abstract Solution adaptTo(RetrievalResults retrieved, Problem currentProblem, Domain domain)
retrieved
- RetrievalResults of cases retrieved that are relevant to the solution.currentProblem
- The Problem object being adapted to. In some adaptation implementations, this parameter may be ignored.domain
- The domain in which the adaptation is taking place.
public void setWeights(double[] wts)
public void setDebugMode(boolean debugMode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |