dLife Home Page

dlife.ga
Class UnrecognizedFitnessFunctionTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by dlife.ga.UnrecognizedFitnessFunctionTypeException
All Implemented Interfaces:
Serializable

public class UnrecognizedFitnessFunctionTypeException
extends RuntimeException

Thrown by the Population class if the FitnessFunction used to create the Population is not a recognized sub-type of FitnessFunction. The most likely cause is that a new sub-class of FitnessFuntion was created instead of creating a sub-class of BatchFitnessFunction or IndividualFitnessFunction. If the problem is not easily fixed by making the new FitnessFunction a sub-class of BatchFitnessFunction or IndividualFitnessFunction then the Population class will need to be edited to recognize the new type of fitness function.

Version:
May 27, 2008
Author:
Grant Braught, Dickinson College
See Also:
Serialized Form

Constructor Summary
UnrecognizedFitnessFunctionTypeException(String msg)
          Construct a new UnrecognizedFitnessFunctionTypeException with the specified message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnrecognizedFitnessFunctionTypeException

public UnrecognizedFitnessFunctionTypeException(String msg)
Construct a new UnrecognizedFitnessFunctionTypeException with the specified message.

Parameters:
msg - the message.

dLife Home Page