|
||||||||||
| 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.
| Nested Class Summary | |
|---|---|
class |
OfficeComplex.TariffEvaluationWrapper
|
| 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 |
|
| Method Summary | |
|---|---|
void |
addCustomerInfo(org.powertac.common.CustomerInfo customer)
|
void |
consumePower()
|
void |
evaluateNewTariffs()
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. |
double[] |
getDominantLoad(String type)
This function returns the dominant Consumption Load for a certain type of houses |
double[] |
getNonDominantLoad(String type)
This function returns the non dominant Consumption Load for a certain type of houses |
Map<org.powertac.common.CustomerInfo,String> |
getOfficeMapping()
This function returns the inertia Map variable of the village. |
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. |
Map<org.powertac.common.CustomerInfo,org.powertac.common.TariffEvaluator> |
getTariffEvaluators()
This function returns the period Map variable of the village. |
void |
initialize(Properties conf,
int seed,
Map<org.powertac.common.CustomerInfo,String> mapping)
This is the initialization function. |
void |
step()
|
void |
subscribeDefault()
|
String |
toString()
|
| Methods inherited from class org.powertac.common.AbstractCustomer |
|---|
changeSubscription, getCarbonEmissionRate, getCustId, getCustomerInfo, getId, getLowerPowerCap, getName, getPopulation, getSunToPowerConversion, getTempToPowerConversion, getUpperPowerCap, getWindToPowerConversion, producePower, 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)
| Method Detail |
|---|
public void initialize(Properties conf,
int seed,
Map<org.powertac.common.CustomerInfo,String> mapping)
conf - gen - public void addCustomerInfo(org.powertac.common.CustomerInfo customer)
addCustomerInfo in class org.powertac.common.AbstractCustomerpublic void subscribeDefault()
subscribeDefault in class org.powertac.common.AbstractCustomerpublic void consumePower()
consumePower in class org.powertac.common.AbstractCustomerpublic Map<org.powertac.common.CustomerInfo,String> getOfficeMapping()
public Map<org.powertac.common.CustomerInfo,org.powertac.common.TariffEvaluator> getTariffEvaluators()
public double[] getDominantLoad(String type)
public double[] getNonDominantLoad(String type)
public Vector<Office> getOffices()
public Vector<Office> getOffices(String type)
public void evaluateNewTariffs()
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 | |||||||||