|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.AbstractCustomer
public class AbstractCustomer
Abstract customer implementation
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AbstractCustomer(String name)
Abstract Customer constructor. |
|
AbstractCustomer(String name,
ArrayList<org.powertac.common.CustomerInfo> customers)
Overload of the above constructor |
|
| Method Summary | |
|---|---|
void |
addCustomerInfo(org.powertac.common.CustomerInfo customer)
|
void |
changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer)
The first implementation of the changing subscription function. |
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 |
changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.Tariff newTariff,
int populationCount,
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 amount of the population we want to move to the new tariff. |
void |
checkRevokedSubscriptions()
The first implementation of the checking for revoked subscriptions function. |
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()
|
double |
getSunToPowerConversion()
|
double |
getTempToPowerConversion()
|
double |
getUpperPowerCap()
|
double |
getWindToPowerConversion()
|
void |
producePower()
The first implementation of the power consumption function. |
org.powertac.common.Tariff |
selectTariff(org.powertac.common.enumerations.PowerType powerType)
The first implementation of the tariff selection 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public AbstractCustomer(String name)
public AbstractCustomer(String name,
ArrayList<org.powertac.common.CustomerInfo> customers)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic int getPopulation()
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 subscribe(org.powertac.common.Tariff tariff,
int customerCount,
org.powertac.common.CustomerInfo customer)
public void unsubscribe(TariffSubscription subscription,
int customerCount)
public void consumePower()
public void producePower()
public void changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer)
tariff -
public void changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.Tariff newTariff,
org.powertac.common.CustomerInfo customer)
tariff -
public void changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.Tariff newTariff,
int populationCount,
org.powertac.common.CustomerInfo customer)
tariff - public org.powertac.common.Tariff selectTariff(org.powertac.common.enumerations.PowerType powerType)
public void checkRevokedSubscriptions()
public void step()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||