Uses of Class
org.powertac.common.CustomerInfo
-
Packages that use CustomerInfo Package Description org.powertac.accounting org.powertac.common Power TAC domain types, shared between simulation server and brokers.org.powertac.common.interfaces org.powertac.common.msg Message types exchanged between the Power TAC simulation server and brokers.org.powertac.common.repo Repositories that need to exist in both the Power TAC simulation server and in brokers.org.powertac.customer org.powertac.tariffmarket -
-
Uses of CustomerInfo in org.powertac.accounting
Methods in org.powertac.accounting with parameters of type CustomerInfo Modifier and Type Method Description TariffTransaction
AccountingService. addRegulationTransaction(Tariff tariff, CustomerInfo customer, int customerCount, double kWh, double charge)
TariffTransaction
AccountingService. addTariffTransaction(TariffTransaction.Type txType, Tariff tariff, CustomerInfo customer, int customerCount, double kWh, double charge)
-
Uses of CustomerInfo in org.powertac.common
Methods in org.powertac.common that return CustomerInfo Modifier and Type Method 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.Methods in org.powertac.common that return types with arguments of type CustomerInfo Modifier and Type Method Description List<CustomerInfo>
Competition. getCustomers()
The list of customers (or more precisely, customer models) in the simulation environment.Methods in org.powertac.common with parameters of type CustomerInfo Modifier and Type Method 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.Constructors in org.powertac.common with parameters of type CustomerInfo Constructor Description TariffSubscription(CustomerInfo customer, long tariffId)
Alternate constructor for logtool analyzers in which Tariffs cannot be reconstructed.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. -
Uses of CustomerInfo in org.powertac.common.interfaces
Methods in org.powertac.common.interfaces that return CustomerInfo Modifier and Type Method Description CustomerInfo
CustomerModelAccessor. getCustomerInfo()
Returns the CustomerInfo instance for this customer model.Methods in org.powertac.common.interfaces with parameters of type CustomerInfo Modifier and Type Method 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. -
Uses of CustomerInfo in org.powertac.common.msg
Constructors in org.powertac.common.msg with parameters of type CustomerInfo Constructor Description CustomerBootstrapData(CustomerInfo customer, PowerType powerType, double[] netUsage)
-
Uses of CustomerInfo in org.powertac.common.repo
Methods in org.powertac.common.repo that return CustomerInfo Modifier and Type Method Description CustomerInfo
CustomerRepo. createCustomerInfo(String name, int population)
CustomerInfo
CustomerRepo. findById(long id)
CustomerInfo
CustomerRepo. findByNameAndPowerType(String name, PowerType type)
Methods in org.powertac.common.repo that return types with arguments of type CustomerInfo Modifier and Type Method Description List<CustomerInfo>
CustomerRepo. findByName(String name)
Collection<CustomerInfo>
CustomerRepo. list()
Methods in org.powertac.common.repo with parameters of type CustomerInfo Modifier and Type Method 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. -
Uses of CustomerInfo in org.powertac.customer
Fields in org.powertac.customer with type parameters of type CustomerInfo Modifier and Type Field Description protected List<CustomerInfo>
AbstractCustomer. allCustomerInfos
protected HashMap<PowerType,List<CustomerInfo>>
AbstractCustomer. customerInfos
Methods in org.powertac.customer that return CustomerInfo Modifier and Type Method Description CustomerInfo
AbstractCustomer. getCustomerInfo(PowerType pt)
Returns the first CustomerInfo associated with this instance and PowerType.Methods in org.powertac.customer that return types with arguments of type CustomerInfo Modifier and Type Method 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.Methods in org.powertac.customer with parameters of type CustomerInfo Modifier and Type Method Description void
AbstractCustomer. addCustomerInfo(CustomerInfo info)
Adds an additional CustomerInfo to the listvoid
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)
-
Uses of CustomerInfo in org.powertac.tariffmarket
Methods in org.powertac.tariffmarket with parameters of type CustomerInfo Modifier and Type Method Description void
TariffMarketService. subscribeToTariff(Tariff tariff, CustomerInfo customer, int customerCount)
If customerCount is positive, subscribes a block of Customers from a single Customer model to the specified Tariff, as long as the Tariff is not expired or revoked.
-