|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.interfaces.TimeslotPhaseProcessor
public abstract class TimeslotPhaseProcessor
Plugins must extend this class in order to be invoked during timeslot processing by the CompetitionControl. Each subclass must implement the activate() method to do its thing during a timeslot, and must call its superclass init() method during per-game initialization. Per-timeslot processing takes place in phases. See https://github.com/powertac/powertac-server/wiki/Competition-controller-timeslot-process for a summary of this process.
| Constructor Summary | |
|---|---|
TimeslotPhaseProcessor()
|
|
| Method Summary | |
|---|---|
abstract void |
activate(org.joda.time.Instant time,
int phaseNumber)
This method gets called once during each timeslot. |
protected void |
init()
This method must be called in the per-game initialization code in each implementing class. |
void |
setTimeslotPhase(int newValue)
This is the Spring-accessible setter for the phase number |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeslotPhaseProcessor()
| Method Detail |
|---|
protected void init()
public void setTimeslotPhase(int newValue)
public abstract void activate(org.joda.time.Instant time,
int phaseNumber)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||