@Service
public class OfficeComplexCustomerService
extends org.powertac.common.interfaces.TimeslotPhaseProcessor
implements org.powertac.common.interfaces.NewTariffListener, org.powertac.common.interfaces.InitializationService, org.powertac.common.interfaces.CustomerServiceAccessor
| Constructor and Description |
|---|
OfficeComplexCustomerService()
This is the constructor of the Office Consumer Service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.joda.time.Instant time,
int phaseNumber) |
void |
clearConfiguration()
This function cleans the configuration files in case they have not been
cleaned at the beginning of the game
|
List<org.powertac.common.CustomerInfo> |
generateCustomerInfoList()
This function finds all the available Office Consumers in the competition
and creates a list of their customerInfo.
|
String |
getConfigFile1()
Getter method for the first configuration file
|
org.powertac.common.repo.CustomerRepo |
getCustomerRepo() |
List<OfficeComplex> |
getOfficeComplexList()
This function returns the list of the villages created at the beginning of
the game by the service
|
org.powertac.common.repo.RandomSeedRepo |
getRandomSeedRepo() |
org.powertac.common.interfaces.ServerConfiguration |
getServerConfiguration() |
org.powertac.common.repo.TariffRepo |
getTariffRepo() |
org.powertac.common.repo.TariffSubscriptionRepo |
getTariffSubscriptionRepo() |
org.powertac.common.TimeService |
getTimeService() |
org.powertac.common.repo.TimeslotRepo |
getTimeslotRepo() |
org.powertac.common.repo.WeatherReportRepo |
getWeatherReportRepo() |
String |
initialize(org.powertac.common.Competition competition,
List<String> completedInits)
This function called once at the beginning of each game by the server
initialization service.
|
void |
publishNewTariffs(List<org.powertac.common.Tariff> tariffs) |
void |
setConfigFile1(String config) |
public OfficeComplexCustomerService()
public String initialize(org.powertac.common.Competition competition, List<String> completedInits)
initialize in interface org.powertac.common.interfaces.InitializationServicepublic void publishNewTariffs(List<org.powertac.common.Tariff> tariffs)
publishNewTariffs in interface org.powertac.common.interfaces.NewTariffListenerpublic String getConfigFile1()
@ConfigurableValue(valueType="String",
description="first configuration file of the office complex customers")
public void setConfigFile1(String config)
public List<OfficeComplex> getOfficeComplexList()
public void clearConfiguration()
public List<org.powertac.common.CustomerInfo> generateCustomerInfoList()
public void activate(org.joda.time.Instant time,
int phaseNumber)
activate in class org.powertac.common.interfaces.TimeslotPhaseProcessorpublic org.powertac.common.repo.CustomerRepo getCustomerRepo()
getCustomerRepo in interface org.powertac.common.interfaces.CustomerServiceAccessorpublic org.powertac.common.repo.RandomSeedRepo getRandomSeedRepo()
getRandomSeedRepo in interface org.powertac.common.interfaces.CustomerServiceAccessorpublic org.powertac.common.repo.TariffRepo getTariffRepo()
getTariffRepo in interface org.powertac.common.interfaces.CustomerServiceAccessorpublic org.powertac.common.repo.TariffSubscriptionRepo getTariffSubscriptionRepo()
getTariffSubscriptionRepo in interface org.powertac.common.interfaces.CustomerServiceAccessorpublic org.powertac.common.repo.TimeslotRepo getTimeslotRepo()
getTimeslotRepo in interface org.powertac.common.interfaces.CustomerServiceAccessorpublic org.powertac.common.TimeService getTimeService()
getTimeService in interface org.powertac.common.interfaces.CustomerServiceAccessorpublic org.powertac.common.repo.WeatherReportRepo getWeatherReportRepo()
getWeatherReportRepo in interface org.powertac.common.interfaces.CustomerServiceAccessorpublic org.powertac.common.interfaces.ServerConfiguration getServerConfiguration()
getServerConfiguration in interface org.powertac.common.interfaces.CustomerServiceAccessorCopyright © 2016 Power TAC. All Rights Reserved.