org.powertac.factoredcustomer
Class FactoredCustomerInitializationService

java.lang.Object
  extended by org.powertac.factoredcustomer.FactoredCustomerInitializationService
All Implemented Interfaces:
org.powertac.common.interfaces.InitializationService

@Service
public class FactoredCustomerInitializationService
extends Object
implements org.powertac.common.interfaces.InitializationService

Author:
Prashant Reddy

Constructor Summary
FactoredCustomerInitializationService()
           
 
Method Summary
 String initialize(org.powertac.common.Competition competition, List<String> completedInits)
          Called during game startup to set initial conditions for Generic Customer Service.
 void setDefaults()
          This method is called during pre-game to set defaults.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoredCustomerInitializationService

public FactoredCustomerInitializationService()
Method Detail

setDefaults

public void setDefaults()
This method is called during pre-game to set defaults. In this example the default value of the parameter is hard-coded, but in general it would make sense to take it from a config file. The result is a PluginConfig instance that can be viewed and modified through the web interface before a game is started.

Specified by:
setDefaults in interface org.powertac.common.interfaces.InitializationService

initialize

public String initialize(org.powertac.common.Competition competition,
                         List<String> completedInits)
Called during game startup to set initial conditions for Generic Customer Service. In order to begin this Service the Default Broker must be initialized first.

Specified by:
initialize in interface org.powertac.common.interfaces.InitializationService


Copyright © 2011 Power TAC. All Rights Reserved.