public class OfficeComplex
extends org.powertac.customer.AbstractCustomer
| Modifier and Type | Class and Description |
|---|---|
class |
OfficeComplex.TariffEvaluationWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.logging.log4j.Logger |
log
logger for trace logging -- use log.info(), log.warn(), and log.error()
appropriately.
|
protected org.powertac.common.TariffEvaluationHelper |
tariffEvalHelper |
| Constructor and Description |
|---|
OfficeComplex(String name)
This is the constructor function of the OfficeComplex customer
|
| Modifier and Type | Method and Description |
|---|---|
void |
consumePower() |
void |
evaluateTariffs(List<org.powertac.common.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
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() |
void |
initialize(Properties conf,
int seed,
Map<org.powertac.common.CustomerInfo,String> mapping)
This is the initialization function.
|
void |
step() |
void |
subscribeDefault(org.powertac.common.interfaces.TariffMarket tariffMarketService) |
String |
toString() |
addCustomerInfo, changeSubscription, getCurrentSubscriptions, getCurrentSubscriptions, getCustId, getCustomerInfo, getCustomerInfoList, getCustomerInfos, getId, getName, getPopulation, lastSunday, nextStartOfDay, saveBootstrapState, setName, setServiceAccessor, setTariffMarket, startOfDayprotected static org.apache.logging.log4j.Logger log
protected final org.powertac.common.TariffEvaluationHelper tariffEvalHelper
public OfficeComplex(String name)
public void initialize()
initialize in class org.powertac.customer.AbstractCustomerpublic void initialize(Properties conf, int seed, Map<org.powertac.common.CustomerInfo,String> mapping)
public void subscribeDefault(org.powertac.common.interfaces.TariffMarket tariffMarketService)
public void consumePower()
public 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 evaluateTariffs(List<org.powertac.common.Tariff> newTariffs)
evaluateTariffs in class org.powertac.customer.AbstractCustomerpublic void step()
step in class org.powertac.customer.AbstractCustomerpublic String toString()
toString in class org.powertac.customer.AbstractCustomerCopyright © 2016 Power TAC. All Rights Reserved.