public interface InitializationService
Because some plugins may depend on the initialization of other plugins (for example, the default broker may depend on the tariff market and accounting service so that it can successfully publish its tariffs), the completedInits argument contains the list of plugin roles that have already been successfully initialized. If the completedInits list contains the names of all the plugins that must be initialized before the plugin being initialized, then the initialization can proceed, and the plugin must return its role name. If a plugin returns null, then it will be assumed that its dependencies are not satisfied, and it will be called again after all other plugins have been initialized. As long as there are no cycles in the dependency graph, this approach will terminate.
To make it easy to configure individual games through a web interface, they must be re-created before the configuration process begins. This is accomplished by calling the setDefaults method at bootstrap time and after the end of each game. There should be no sequence dependencies for this process.
| Modifier and Type | Method and Description |
|---|---|
String |
initialize(org.powertac.common.Competition competition,
List<String> completedInits)
Initializes a plugin prior to the beginning of a game.
|
String initialize(org.powertac.common.Competition competition, List<String> completedInits)
Copyright © 2016 Power TAC. All Rights Reserved.