wodka.ga.fitfunc
Class NullFitnessFunction
java.lang.Object
wodka.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullFitnessFunction
public NullFitnessFunction()
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