edu.indiana.iucbrf.adaptation
Class NullAdapter

java.lang.Object
  extended by edu.indiana.iucbrf.adaptation.Adaptation
      extended by edu.indiana.iucbrf.adaptation.NullAdapter
All Implemented Interfaces:
java.io.Serializable

public class NullAdapter
extends Adaptation

This class is a filler for when no adaptation is desired. That is, the solution to the best retrieved case is returned unaltered.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.indiana.iucbrf.adaptation.Adaptation
debugMode, wts
 
Constructor Summary
NullAdapter()
          Creates new NullAdapter.
NullAdapter(boolean debugMode)
          Creates new NullAdapter
 
Method Summary
 Solution adaptTo(RetrievalResults retrieved, Problem currentProblem, Domain domain)
          Return the unaltered solution of the best retrieved case as the "adapted" solution.
 
Methods inherited from class edu.indiana.iucbrf.adaptation.Adaptation
setDebugMode, setWeights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullAdapter

public NullAdapter()
Creates new NullAdapter. debugMode is set to false.


NullAdapter

public NullAdapter(boolean debugMode)
Creates new NullAdapter

Parameters:
debugMode - Set to true to print debugging information, false otherwise.
Method Detail

adaptTo

public Solution adaptTo(RetrievalResults retrieved,
                        Problem currentProblem,
                        Domain domain)
Return the unaltered solution of the best retrieved case as the "adapted" solution.

Specified by:
adaptTo in class Adaptation
Parameters:
Retrieved - A RetrievalResults of Case objects deemed relevant to this problem
Problem - The Problem to which this adaptation will apply. This parameter is ignored in this method implementation.
Returns:
A Solution object that is the same as the best retrieved case (which is the first case in the ArrayList retrieved).