Class OfficeComplex
java.lang.Object
org.powertac.customer.AbstractCustomer
org.powertac.officecomplexcustomer.customers.OfficeComplex
public class OfficeComplex extends AbstractCustomer
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.
- Version:
- 1.5, Date: 2.25.12
- Author:
- Antonios Chrysopoulos
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classOfficeComplex.TariffEvaluationWrapper -
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.Loggerloglogger for trace logging -- use log.info(), log.warn(), and log.error() appropriately.protected TariffEvaluationHelpertariffEvalHelperFields inherited from class org.powertac.customer.AbstractCustomer
allCustomerInfos, customerInfos, name, rs1, service -
Constructor Summary
Constructors Constructor Description OfficeComplex(String name)This is the constructor function of the OfficeComplex customer -
Method Summary
Modifier and Type Method Description voidconsumePower()voidevaluateTariffs(List<Tariff> newTariffs)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 housesdouble[]getNonDominantLoad(String type)This function returns the non dominant Consumption Load for a certain type of housesMap<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<CustomerInfo,TariffEvaluator>getTariffEvaluators()This function returns the period Map variable of the village.voidinitialize()voidinitialize(Properties conf, int seed, Map<CustomerInfo,String> mapping)This is the initialization function.voidstep()voidsubscribeDefault(TariffMarket tariffMarketService)StringtoString()Methods inherited from class org.powertac.customer.AbstractCustomer
addCustomerInfo, changeSubscription, createTariffEvaluator, getCurrentSubscriptions, getCurrentSubscriptions, getCustId, getCustomerInfo, getCustomerInfoList, getCustomerInfos, getId, getName, getPopulation, lastSunday, nextStartOfDay, saveBootstrapState, setName, setServiceAccessor, setTariffMarket, startOfDay
-
Field Details
-
log
protected static org.apache.logging.log4j.Logger loglogger for trace logging -- use log.info(), log.warn(), and log.error() appropriately. Use log.debug() for output you want to see in testing or debugging. -
tariffEvalHelper
-
-
Constructor Details
-
OfficeComplex
This is the constructor function of the OfficeComplex customer
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classAbstractCustomer
-
initialize
This is the initialization function. It uses the variable values for the configuration file to create the office complex with its offices and then fill them with persons and appliances. -
subscribeDefault
-
consumePower
public void consumePower() -
getOfficeMapping
This function returns the inertia Map variable of the village. -
getTariffEvaluators
This function returns the period Map variable of the village. -
getDominantLoad
This function returns the dominant Consumption Load for a certain type of houses -
getNonDominantLoad
This function returns the non dominant Consumption Load for a certain type of houses -
getOffices
This function returns a vector with all the offices that are present in this office complex. -
getOffices
This function returns a vector with all the offices of a certain type that are present in this office complex. -
evaluateTariffs
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. The better tariffs have more chances to be chosen.- Specified by:
evaluateTariffsin classAbstractCustomer
-
step
public void step()- Specified by:
stepin classAbstractCustomer
-
toString
- Overrides:
toStringin classAbstractCustomer
-