|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.AbstractCustomer
org.powertac.officecomplexcustomer.customers.OfficeComplex
public class OfficeComplex
The office complex domain class is a set of offices that comprise a office building that consumes aggregated energy by the appliances installed in each office.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
logger for trace logging -- use log.info(), log.warn(), and log.error() appropriately. |
protected org.powertac.common.TariffEvaluationHelper |
tariffEvalHelper
|
| Fields inherited from class org.powertac.common.AbstractCustomer |
|---|
carbonEmissionRate, custId, customerInfos, customerRepo, lowerPowerCap, name, randomSeedRepo, rs1, sunToPowerConversion, tariffMarketService, tariffSubscriptionRepo, tempToPowerConversion, upperPowerCap, windToPowerConversion |
| Constructor Summary | |
|---|---|
OfficeComplex(String name)
This is the constructor function of the OfficeComplex customer |
|
OfficeComplex(String name,
ArrayList<org.powertac.common.CustomerInfo> customerInfo)
This is the second constructor function of the OfficeComplex customer |
|
| Method Summary | |
|---|---|
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,
String type,
org.powertac.common.CustomerInfo customer)
The second implementation of the changing subscription function only for certain type of the households. |
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,
String type,
org.powertac.common.CustomerInfo customer)
In this overloaded implementation of the changing subscription function only certain type of the households. |
void |
checkRevokedSubscriptions()
|
void |
consumePower()
|
HashMap<String,org.powertac.common.TariffSubscription> |
getControllableSubscriptionMap()
This function returns the subscription Map variable of the OfficeComplex. |
double[] |
getDominantLoad(String type)
This function returns the dominant Consumption Load for a certain type of houses |
HashMap<String,Double> |
getInertiaMap()
This function returns the inertia Map variable of the office complex. |
double[] |
getNonDominantLoad(String type)
This function returns the non dominant Consumption Load for a certain type of houses |
Vector<Office> |
getOffices()
This function returns a vector with all the offices that are present in this office complex. |
Vector<Office> |
getOffices(String type)
This function returns a vector with all the offices of a certain type that are present in this office complex. |
HashMap<String,Integer> |
getPeriodMap()
This function returns the period Map variable of the office complex. |
HashMap<String,org.powertac.common.TariffSubscription> |
getSubscriptionMap()
This function returns the subscription Map variable of the office complex. |
void |
initialize(Properties conf,
Random generator)
This is the initialization function. |
void |
possibilityEvaluationNewTariffs(List<org.powertac.common.Tariff> newTariffs,
String type)
This is the basic evaluation function, taking into consideration the minimum cost without shifting the appliances' load but the tariff chosen is picked up randomly by using a possibility pattern. |
void |
showAggDailyLoad(String type,
int day)
This function is used in order to print the aggregated hourly load of the office complex offices for a certain type of offices. |
void |
step()
|
void |
subscribeDefault()
|
String |
toString()
|
| Methods inherited from class org.powertac.common.AbstractCustomer |
|---|
addCustomerInfo, changeSubscription, getCarbonEmissionRate, getCustId, getCustomerInfo, getId, getLowerPowerCap, getName, getPopulation, getSunToPowerConversion, getTempToPowerConversion, getUpperPowerCap, getWindToPowerConversion, producePower, selectTariff, subscribe, unsubscribe |
| 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 final org.powertac.common.TariffEvaluationHelper tariffEvalHelper
| Constructor Detail |
|---|
public OfficeComplex(String name)
public OfficeComplex(String name,
ArrayList<org.powertac.common.CustomerInfo> customerInfo)
| Method Detail |
|---|
public void initialize(Properties conf,
Random generator)
conf - gen - public void subscribeDefault()
subscribeDefault in class org.powertac.common.AbstractCustomer
public void changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer)
changeSubscription in class org.powertac.common.AbstractCustomertariff -
public void changeSubscription(org.powertac.common.Tariff tariff,
String type,
org.powertac.common.CustomerInfo customer)
tariff -
public void changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.Tariff newTariff,
org.powertac.common.CustomerInfo customer)
changeSubscription in class org.powertac.common.AbstractCustomertariff -
public void changeSubscription(org.powertac.common.Tariff tariff,
org.powertac.common.Tariff newTariff,
String type,
org.powertac.common.CustomerInfo customer)
tariff - public void checkRevokedSubscriptions()
checkRevokedSubscriptions in class org.powertac.common.AbstractCustomer
public void showAggDailyLoad(String type,
int day)
type - public void consumePower()
consumePower in class org.powertac.common.AbstractCustomerpublic HashMap<String,org.powertac.common.TariffSubscription> getSubscriptionMap()
public HashMap<String,org.powertac.common.TariffSubscription> getControllableSubscriptionMap()
public HashMap<String,Double> getInertiaMap()
public HashMap<String,Integer> getPeriodMap()
public double[] getDominantLoad(String type)
public double[] getNonDominantLoad(String type)
public Vector<Office> getOffices()
public Vector<Office> getOffices(String type)
public void possibilityEvaluationNewTariffs(List<org.powertac.common.Tariff> newTariffs,
String type)
public void step()
step in class org.powertac.common.AbstractCustomerpublic String toString()
toString in class org.powertac.common.AbstractCustomer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||