org.powertac.du
Class DefaultBrokerInitializationService
java.lang.Object
org.powertac.du.DefaultBrokerInitializationService
- All Implemented Interfaces:
- org.powertac.common.interfaces.InitializationService
@Service
public class DefaultBrokerInitializationService
- extends Object
- implements org.powertac.common.interfaces.InitializationService
Here we support the pre-game and start-of-game behaviors driven by the
CompetitionControlService. This class is instantiated by Spring, so in
general the constructor can be omitted.
- Author:
- John Collins
|
Method Summary |
String |
initialize(org.powertac.common.Competition competition,
List<String> completedInits)
Initializes the default broker service. |
void |
setDefaults()
Creates the default broker instance, and a PluginConfig instance that
includes rates for standard default tariffs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBrokerInitializationService
public DefaultBrokerInitializationService()
setDefaults
public void setDefaults()
- Creates the default broker instance, and a PluginConfig instance that
includes rates for standard default tariffs.
- Specified by:
setDefaults in interface org.powertac.common.interfaces.InitializationService
initialize
public String initialize(org.powertac.common.Competition competition,
List<String> completedInits)
- Initializes the default broker service.
- Specified by:
initialize in interface org.powertac.common.interfaces.InitializationService
Copyright © 2011 Power TAC. All Rights Reserved.