Class SamplePredictor

java.lang.Object
  extended by SamplePredictor
All Implemented Interfaces:
SCMPredictor

public class SamplePredictor
extends java.lang.Object
implements SCMPredictor

This is a sample predictor for the prediction challenge. It maintains no state between games other than a count of the number of games in the current set (against the same competitors), and it creates a new instance of a SamplePredictorAgent for each game.


Field Summary
private  SamplePredictorAgent agent
           
private  int gamesInCurrentSet
           
 
Constructor Summary
SamplePredictor()
           
 
Method Summary
 void nextDay(java.util.Vector messagesIn, java.util.Vector messagesOut, PredictionObject predictions)
          called by the parser on each new game day
 void nextGame(boolean newAgents)
          called by the parser when a new game begins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

private SamplePredictorAgent agent

gamesInCurrentSet

private int gamesInCurrentSet
Constructor Detail

SamplePredictor

public SamplePredictor()
Method Detail

nextGame

public void nextGame(boolean newAgents)
called by the parser when a new game begins

Specified by:
nextGame in interface SCMPredictor

nextDay

public void nextDay(java.util.Vector messagesIn,
                    java.util.Vector messagesOut,
                    PredictionObject predictions)
called by the parser on each new game day

Specified by:
nextDay in interface SCMPredictor