public class Village
extends org.powertac.customer.AbstractCustomer
| Modifier and Type | Class and Description |
|---|---|
class |
Village.TariffEvaluationWrapper |
| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
Village(String name)
This is the constructor function of the Village customer
|
| Modifier and Type | Method and Description |
|---|---|
void |
consumePower() |
void |
evaluateTariffs(List<org.powertac.common.Tariff> tariffs)
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.
|
Map<org.powertac.common.CustomerInfo,String> |
getHouseMapping()
This function returns the inertia Map variable of the village.
|
Vector<Household> |
getHouses()
This function returns a vector with all the houses that are present in this
village.
|
Vector<Household> |
getHouses(String type)
This function returns a vector with all the households of a certain type
that are present in this village.
|
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.log4j.Logger log
protected final org.powertac.common.TariffEvaluationHelper tariffEvalHelper
public Village(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)
conf - gen - public void subscribeDefault(org.powertac.common.interfaces.TariffMarket tariffMarketService)
public void consumePower()
public Map<org.powertac.common.CustomerInfo,String> getHouseMapping()
public Map<org.powertac.common.CustomerInfo,org.powertac.common.TariffEvaluator> getTariffEvaluators()
public Vector<Household> getHouses()
public Vector<Household> getHouses(String type)
public void evaluateTariffs(List<org.powertac.common.Tariff> tariffs)
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 © 2015 Power TAC. All Rights Reserved.