public class Village extends AbstractCustomer
| Modifier and Type | Class and Description |
|---|---|
class |
Village.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 TariffEvaluationHelper |
tariffEvalHelper |
allCustomerInfos, customerInfos, name, rs1, service| 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<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<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<CustomerInfo,TariffEvaluator> |
getTariffEvaluators()
This function returns the period Map variable of the village.
|
void |
initialize()
Initializes the instance.
|
void |
initialize(Properties conf,
int seed,
Map<CustomerInfo,String> mapping)
This is the initialization function.
|
void |
step()
Called to run the model forward one step.
|
void |
subscribeDefault(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 TariffEvaluationHelper tariffEvalHelper
public Village(String name)
public void initialize()
AbstractCustomerinitialize in class AbstractCustomerpublic void initialize(Properties conf, int seed, Map<CustomerInfo,String> mapping)
conf - seed - mapping - public void subscribeDefault(TariffMarket tariffMarketService)
public void consumePower()
public Map<CustomerInfo,String> getHouseMapping()
public Map<CustomerInfo,TariffEvaluator> getTariffEvaluators()
public Vector<Household> getHouses()
public Vector<Household> getHouses(String type)
public void evaluateTariffs(List<Tariff> tariffs)
evaluateTariffs in class AbstractCustomerpublic void step()
AbstractCustomerstep in class AbstractCustomerpublic String toString()
toString in class AbstractCustomerCopyright © 2017 Power TAC. All rights reserved.