Class SamplePredictor
java.lang.Object
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.
|
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 |
agent
private SamplePredictorAgent agent
gamesInCurrentSet
private int gamesInCurrentSet
SamplePredictor
public SamplePredictor()
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