wodka.ga.racer.soda
Class SodaRacer
java.lang.Object
wodka.ga.racer.soda.SodaRacer
- All Implemented Interfaces:
- wwan.commons.param.Configurable, wwan.commons.param.Informative, Racer, java.io.Serializable, StreamPersistable
- Direct Known Subclasses:
- MinsRacer
- public class SodaRacer
- extends java.lang.Object
- implements Racer
A racer that is testing his models with in real sodaraces.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SodaRacer
public SodaRacer()
reset
public void reset()
- Specified by:
reset
in interface Racer
startRacer
protected void startRacer()
getInfo
public java.lang.String getInfo()
- Specified by:
getInfo
in interface Racer
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface Racer
addModel
public void addModel(Model m,
int wodkaId,
GeneticAlgorithm genAlgo,
int timeout)
throws WodkaException
- Specified by:
addModel
in interface Racer
- Throws:
WodkaException
calculateFitness
protected int calculateFitness(double val)
setRacerListener
public void setRacerListener(RacerListener rl)
- Specified by:
setRacerListener
in interface Racer
finishedAdding
public void finishedAdding()
- Specified by:
finishedAdding
in interface Racer
setExceptionHandler
public void setExceptionHandler(ExceptionHandler handler)
- Specified by:
setExceptionHandler
in interface Racer
getParameterDescription
public wwan.commons.param.ListParamDesc getParameterDescription()
- Specified by:
getParameterDescription
in interface wwan.commons.param.Configurable
setFieldsFromParameterList
public void setFieldsFromParameterList(wwan.commons.param.ListParam listParam)
- Specified by:
setFieldsFromParameterList
in interface wwan.commons.param.Configurable
setParameterListFromFields
public void setParameterListFromFields(wwan.commons.param.ListParam listParam)
- Specified by:
setParameterListFromFields
in interface wwan.commons.param.Configurable
fromStream
public void fromStream(java.io.DataInputStream inStream,
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 outStream)
throws java.io.IOException
- Specified by:
toStream
in interface StreamPersistable
- Throws:
java.io.IOException
checkParameterList
public void checkParameterList(wwan.commons.param.ListParam lp)
throws wwan.commons.param.ParamException
- Nothing to be checked.
- Specified by:
checkParameterList
in interface wwan.commons.param.Configurable
- Throws:
wwan.commons.param.ParamException
- See Also:
wodka.param.Configurable#checkParameterList(wodka.param.ListParam)
setTerrainXml
public void setTerrainXml(java.lang.String terrainXml)
throws WodkaException
- Specified by:
setTerrainXml
in interface Racer
- Throws:
WodkaException
resetTimeoutOptimization
public void resetTimeoutOptimization()