| Package | Description |
|---|---|
| org.powertac.common | |
| org.powertac.common.interfaces | |
| org.powertac.common.msg | |
| org.powertac.common.repo | |
| org.powertac.customer |
Generic customer model components.
|
| Modifier and Type | Method and Description |
|---|---|
CustomerInfo |
TariffSubscription.getCustomer() |
CustomerInfo |
TariffTransaction.getCustomerInfo() |
CustomerInfo |
CustomerInfo.withCanNegotiate(boolean value)
Fluent setter for the canNegotiate flag.
|
CustomerInfo |
CustomerInfo.withControllableKW(double value)
Fluent setter for controllable kWh.
|
CustomerInfo |
CustomerInfo.withCustomerClass(CustomerInfo.CustomerClass cClass)
Fluent setter for customerClass attribute.
|
CustomerInfo |
CustomerInfo.withDownRegulationKW(double value)
Fluent setter for down-regulation kW.
|
CustomerInfo |
CustomerInfo.withMultiContracting(boolean value)
Fluent setter for the multiContracting property.
|
CustomerInfo |
CustomerInfo.withPowerType(PowerType type)
Fluent setter to set PowerType for this CustomerInfo.
|
CustomerInfo |
CustomerInfo.withStorageCapacity(double value)
Fluent setter for storage capacity.
|
CustomerInfo |
CustomerInfo.withUpRegulationKW(double value)
Fluent setter for up-regulation kW.
|
| Modifier and Type | Method and Description |
|---|---|
List<CustomerInfo> |
Competition.getCustomers()
The list of customers (or more precisely, customer models) in the
simulation environment.
|
| Modifier and Type | Method and Description |
|---|---|
Competition |
Competition.addCustomer(CustomerInfo customer)
Adds a customer to the Competition.
|
TariffTransaction |
TransactionFactory.makeTariffTransaction(Broker broker,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Creates a tariff transaction that is not a regulation transaction.
|
TariffTransaction |
TransactionFactory.makeTariffTransaction(Broker broker,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge,
boolean isRegulation)
Creates a tariff transaction that could be a regulation transaction,
depending on the value of the isRegulation parameter.
|
| Constructor and Description |
|---|
TariffSubscription(CustomerInfo customer,
Tariff tariff)
You need a CustomerInfo and a Tariff to create one of these.
|
TariffTransaction(Broker broker,
int when,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Deprecated.
|
TariffTransaction(Broker broker,
int when,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge,
boolean regulation)
Creates a new TariffTransaction for broker of type txType against
a particular tariff spec and customer.
|
| Modifier and Type | Method and Description |
|---|---|
CustomerInfo |
CustomerModelAccessor.getCustomerInfo()
Returns the CustomerInfo instance for this customer model.
|
| Modifier and Type | Method and Description |
|---|---|
TariffTransaction |
Accounting.addRegulationTransaction(Tariff tariff,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Adds a tariff transaction representing a curtailment or balancing action
to the current-hour transaction list.
|
TariffTransaction |
Accounting.addTariffTransaction(TariffTransaction.Type txType,
Tariff tariff,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Adds a tariff transaction to the current-hour transaction list.
|
void |
TariffMarket.subscribeToTariff(Tariff tariff,
CustomerInfo customer,
int customerCount)
Subscribes a block of Customers from a single Customer model to
the specified Tariff, as long as the Tariff has not expired.
|
| Constructor and Description |
|---|
CustomerBootstrapData(CustomerInfo customer,
PowerType powerType,
double[] netUsage) |
| Modifier and Type | Method and Description |
|---|---|
CustomerInfo |
CustomerRepo.createCustomerInfo(String name,
int population) |
CustomerInfo |
CustomerRepo.findById(long id) |
CustomerInfo |
CustomerRepo.findByNameAndPowerType(String name,
PowerType type) |
| Modifier and Type | Method and Description |
|---|---|
List<CustomerInfo> |
CustomerRepo.findByName(String name) |
Collection<CustomerInfo> |
CustomerRepo.list() |
| Modifier and Type | Method and Description |
|---|---|
void |
CustomerRepo.add(CustomerInfo customer) |
List<TariffSubscription> |
TariffSubscriptionRepo.findActiveSubscriptionsForCustomer(CustomerInfo customer)
Returns the list of active subscriptions for a given customer.
|
TariffSubscription |
TariffSubscriptionRepo.findSubscriptionForTariffAndCustomer(Tariff tariff,
CustomerInfo customer)
Returns the subscription, if any, for the specified tariff and customer.
|
List<TariffSubscription> |
TariffSubscriptionRepo.findSubscriptionsForCustomer(CustomerInfo customer)
Returns the list of subscriptions for a given customer.
|
List<TariffSubscription> |
TariffSubscriptionRepo.getRevokedSubscriptionList(CustomerInfo customer)
Returns the list of subscriptions for this customer that have been
revoked and have non-zero committed customer counts.
|
TariffSubscription |
TariffSubscriptionRepo.getSubscription(CustomerInfo customer,
Tariff tariff)
Returns the TariffSubscription for the given Tariff/Customer pair, creating
it if necessary.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<CustomerInfo> |
AbstractCustomer.allCustomerInfos |
protected HashMap<PowerType,List<CustomerInfo>> |
AbstractCustomer.customerInfos |
| Modifier and Type | Method and Description |
|---|---|
CustomerInfo |
AbstractCustomer.getCustomerInfo(PowerType pt)
Returns the first CustomerInfo associated with this instance and PowerType.
|
| Modifier and Type | Method and Description |
|---|---|
List<CustomerInfo> |
AbstractCustomer.getCustomerInfoList(PowerType pt)
Returns the list of CustomerInfos associated with this instance and
PowerType.
|
List<CustomerInfo> |
AbstractCustomer.getCustomerInfos()
Returns the list of CustomerInfo records associated with this customer
model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractCustomer.addCustomerInfo(CustomerInfo info)
Adds an additional CustomerInfo to the list
|
void |
AbstractCustomer.changeSubscription(Tariff tariff,
Tariff newTariff,
CustomerInfo customer)
In this overloaded implementation of the changing subscription function,
Here we just put the tariff we want to change and the whole population is
moved to another random tariff.
|
int |
AbstractCustomer.getPopulation(CustomerInfo customer) |
Copyright © 2017 Power TAC. All rights reserved.