@ConfigurableInstance public abstract class AbstractCustomer extends Object implements org.powertac.common.interfaces.CustomerModelAccessor
| Modifier and Type | Field and Description |
|---|---|
protected org.powertac.common.CustomerInfo |
customerInfo |
protected String |
name |
protected org.powertac.common.repo.RandomSeedRepo |
randomSeedRepo |
protected org.powertac.common.repo.TariffRepo |
tariffRepo |
protected org.powertac.common.repo.TariffSubscriptionRepo |
tariffSubscriptionRepo |
protected org.powertac.common.repo.WeatherReportRepo |
weatherReportRepo |
| Constructor and Description |
|---|
AbstractCustomer() |
AbstractCustomer(String name)
Sets up basic attributes.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
evaluateTariffs(List<org.powertac.common.Tariff> tariffs)
Called to evaluate tariffs.
|
List<org.powertac.common.TariffSubscription> |
getCurrentSubscriptions()
Returns the current tariff subscriptions for this model
|
org.powertac.common.CustomerInfo |
getCustomerInfo()
Returns the CustomerInfo associated with this instance.
|
String |
getName()
Returns the name of this customer instance.
|
void |
initialize()
Initializes the instance.
|
void |
setName(String name) |
void |
setServices(org.powertac.common.repo.RandomSeedRepo randomSeedRepo,
org.powertac.common.repo.WeatherReportRepo weatherReportRepo,
org.powertac.common.repo.TariffRepo tariffRepo,
org.powertac.common.repo.TariffSubscriptionRepo tariffSubscriptionRepo)
Populates the instance with service pointers to avoid Spring dependency.
|
abstract void |
step()
Called to run the model forward one step.
|
protected String name
protected org.powertac.common.CustomerInfo customerInfo
protected org.powertac.common.repo.WeatherReportRepo weatherReportRepo
protected org.powertac.common.repo.RandomSeedRepo randomSeedRepo
protected org.powertac.common.repo.TariffRepo tariffRepo
protected org.powertac.common.repo.TariffSubscriptionRepo tariffSubscriptionRepo
public AbstractCustomer()
public AbstractCustomer(String name)
public void setServices(org.powertac.common.repo.RandomSeedRepo randomSeedRepo,
org.powertac.common.repo.WeatherReportRepo weatherReportRepo,
org.powertac.common.repo.TariffRepo tariffRepo,
org.powertac.common.repo.TariffSubscriptionRepo tariffSubscriptionRepo)
public void initialize()
randomSeedRepo - public abstract void step()
public abstract void evaluateTariffs(List<org.powertac.common.Tariff> tariffs)
public String getName()
public org.powertac.common.CustomerInfo getCustomerInfo()
getCustomerInfo in interface org.powertac.common.interfaces.CustomerModelAccessor@ConfigurableValue(valueType="String",
description="instance name - required")
public void setName(String name)
public List<org.powertac.common.TariffSubscription> getCurrentSubscriptions()
Copyright © 2014 Power TAC. All Rights Reserved.