public class AbstractCustomer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
carbonEmissionRate
>=0 - gram CO2 per kW/h
|
protected long |
custId
The id of the Abstract Customer
|
protected ArrayList<org.powertac.common.CustomerInfo> |
customerInfos
The Customer specifications
|
protected org.powertac.common.repo.CustomerRepo |
customerRepo |
protected static org.apache.log4j.Logger |
log |
protected double |
lowerPowerCap
>0: min power consumption (think refrigerator); <0: max power production
(think power plant with max capacity)
|
protected String |
name
The name of the Abstract Customer
|
protected RandomSeedRepo |
randomSeedRepo |
protected RandomSeed |
rs1
Random Number Generator
|
protected double |
sunToPowerConversion
measures how sun intensity changes translate into load /generation changes
of the customer
|
protected TariffMarket |
tariffMarketService |
protected TariffSubscriptionRepo |
tariffSubscriptionRepo |
protected double |
tempToPowerConversion
measures how temperature changes translate into load / generation changes
of the customer
|
protected double |
upperPowerCap
>0: max power consumption (think consumer with fuse limit); <0: min power
production (think nuclear power plant with min output)
|
protected double |
windToPowerConversion
measures how wind changes translate into load / generation changes of the
customer
|
| Constructor and Description |
|---|
AbstractCustomer(String name)
Abstract Customer constructor.
|
AbstractCustomer(String name,
ArrayList<org.powertac.common.CustomerInfo> customers)
Overload of the above constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomerInfo(org.powertac.common.CustomerInfo customer) |
void |
changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.Tariff newTariff,
org.powertac.common.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.
|
void |
consumePower()
The first implementation of the power consumption function.
|
double |
getCarbonEmissionRate() |
long |
getCustId() |
ArrayList<org.powertac.common.CustomerInfo> |
getCustomerInfo() |
long |
getId()
Synonym for getCustId()
|
double |
getLowerPowerCap() |
String |
getName() |
int |
getPopulation(org.powertac.common.CustomerInfo customer) |
double |
getSunToPowerConversion() |
double |
getTempToPowerConversion() |
double |
getUpperPowerCap() |
double |
getWindToPowerConversion() |
void |
producePower()
The first implementation of the power consumption function.
|
void |
step() |
void |
subscribe(org.powertac.common.Tariff tariff,
int customerCount,
org.powertac.common.CustomerInfo customer)
Subscribing a certain population amount to a certain subscription
|
void |
subscribeDefault()
Function utilized at the beginning in order to subscribe to the default
tariff
|
String |
toString() |
void |
unsubscribe(TariffSubscription subscription,
int customerCount)
Unsubscribing a certain population amount from a certain subscription
|
protected static org.apache.log4j.Logger log
protected TariffMarket tariffMarketService
protected TariffSubscriptionRepo tariffSubscriptionRepo
protected org.powertac.common.repo.CustomerRepo customerRepo
protected RandomSeedRepo randomSeedRepo
protected long custId
protected String name
protected ArrayList<org.powertac.common.CustomerInfo> customerInfos
protected double upperPowerCap
protected double lowerPowerCap
protected double carbonEmissionRate
protected double windToPowerConversion
protected double tempToPowerConversion
protected double sunToPowerConversion
protected RandomSeed rs1
public AbstractCustomer(String name)
public int getPopulation(org.powertac.common.CustomerInfo customer)
public long getCustId()
public long getId()
public String getName()
public ArrayList<org.powertac.common.CustomerInfo> getCustomerInfo()
public double getUpperPowerCap()
public double getLowerPowerCap()
public double getCarbonEmissionRate()
public double getWindToPowerConversion()
public double getTempToPowerConversion()
public double getSunToPowerConversion()
public void addCustomerInfo(org.powertac.common.CustomerInfo customer)
public void subscribeDefault()
public void consumePower()
public void producePower()
public void step()
public void changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.Tariff newTariff,
org.powertac.common.CustomerInfo customer)
tariff - public void subscribe(org.powertac.common.Tariff tariff,
int customerCount,
org.powertac.common.CustomerInfo customer)
public void unsubscribe(TariffSubscription subscription, int customerCount)
Copyright © 2014 Power TAC. All Rights Reserved.