wodka.ga.fitfunc
Class NullFitnessFunction

java.lang.Object
  extended bywodka.ga.fitfunc.NullFitnessFunction
All Implemented Interfaces:
FitnessFunction, wwan.commons.param.Informative, java.io.Serializable, StreamPersistable

public class NullFitnessFunction
extends java.lang.Object
implements FitnessFunction, wwan.commons.param.Informative, StreamPersistable

A fitness function that concerns only about racer fitness.

See Also:
Serialized Form

Constructor Summary
NullFitnessFunction()
           
 
Method Summary
 int calculate(Model model, int racerFitness)
           
 void fromStream(java.io.DataInputStream s, int version)
           
 java.lang.String getInfo()
           
 java.lang.String getLabel()
           
 int getVersion()
           
 void toStream(java.io.DataOutputStream s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullFitnessFunction

public NullFitnessFunction()
Method Detail

calculate

public int calculate(Model model,
                     int racerFitness)
Specified by:
calculate in interface FitnessFunction

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface wwan.commons.param.Informative

getInfo

public java.lang.String getInfo()
Specified by:
getInfo in interface wwan.commons.param.Informative

fromStream

public void fromStream(java.io.DataInputStream s,
                       int version)
                throws java.io.IOException
Specified by:
fromStream in interface StreamPersistable
Throws:
java.io.IOException

getVersion

public int getVersion()
Specified by:
getVersion in interface StreamPersistable

toStream

public void toStream(java.io.DataOutputStream s)
              throws java.io.IOException
Specified by:
toStream in interface StreamPersistable
Throws:
java.io.IOException