@Service public class SimpleGencoService extends TimeslotPhaseProcessor implements ContextService, InitializationService, BootstrapState
org.powertac.server.CompetitionControlService once each timeslot.| Constructor and Description |
|---|
SimpleGencoService()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.joda.time.Instant now,
int phase)
Called once/timeslot, simply calls updateModel() and generateOrders() on
each of the gencos.
|
Object |
getBean(String beanName)
Retrieves a Spring component instance by name
|
void |
init(List<Genco> gencos)
Simply receives and stores the list of genco and buyer instances generated
by the initialization service.
|
String |
initialize(Competition competition,
List<String> completedInits)
Creates the gencos and the buyer using the server configuration service.
|
void |
saveBootstrapState()
Saves state at the conclusion of a bootstrap session as configuration
items.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext appContext) |
init, setTimeslotPhasepublic String initialize(Competition competition, List<String> completedInits)
initialize in interface InitializationServicepublic void init(List<Genco> gencos)
public void activate(org.joda.time.Instant now,
int phase)
activate in class TimeslotPhaseProcessorpublic void saveBootstrapState()
BootstrapStateConfigurableInstance.saveBootstrapState in interface BootstrapStatepublic void setApplicationContext(org.springframework.context.ApplicationContext appContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic Object getBean(String beanName)
getBean in interface ContextServiceCopyright © 2017 Power TAC. All rights reserved.