Class OfficeComplex.TariffEvaluationWrapper
- java.lang.Object
-
- org.powertac.officecomplexcustomer.customers.OfficeComplex.TariffEvaluationWrapper
-
- All Implemented Interfaces:
CustomerModelAccessor
- Enclosing class:
- OfficeComplex
public class OfficeComplex.TariffEvaluationWrapper extends Object implements CustomerModelAccessor
-
-
Constructor Summary
Constructors Constructor Description TariffEvaluationWrapper(String type, CustomerInfo customer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBrokerSwitchFactor(boolean isSuperseding)
Returns a [0,1] value representing the inconvenience of switching brokers.CapacityProfile
getCapacityProfile(Tariff tariff)
Returns a capacity profile for the given tariff.CustomerInfo
getCustomerInfo()
Returns the CustomerInfo instance for this customer model.double
getInertiaSample()
Returns a [0,1] random value used to choose whether individual customers evaluate tariffs or not.int
getPopulation()
double
getShiftingInconvenienceFactor(Tariff tariff)
Returns a [0,1] value representing the inconvenience of dealing with curtailment in exchange for a lower price.double
getTariffChoiceSample()
Returns a [0,1] random value used to make choices using the logit choice model.String
getType()
-
-
-
Constructor Detail
-
TariffEvaluationWrapper
public TariffEvaluationWrapper(String type, CustomerInfo customer)
-
-
Method Detail
-
getCustomerInfo
public CustomerInfo getCustomerInfo()
Description copied from interface:CustomerModelAccessor
Returns the CustomerInfo instance for this customer model.- Specified by:
getCustomerInfo
in interfaceCustomerModelAccessor
-
getType
public String getType()
-
getPopulation
public int getPopulation()
-
getCapacityProfile
public CapacityProfile getCapacityProfile(Tariff tariff)
Description copied from interface:CustomerModelAccessor
Returns a capacity profile for the given tariff. This must represent the usage of a single individual in a population model over some model-specific time period.- Specified by:
getCapacityProfile
in interfaceCustomerModelAccessor
-
getBrokerSwitchFactor
public double getBrokerSwitchFactor(boolean isSuperseding)
Description copied from interface:CustomerModelAccessor
Returns a [0,1] value representing the inconvenience of switching brokers. The value may depend on whether the current subscription is being switched to a superseding tariff as a result of revocation.- Specified by:
getBrokerSwitchFactor
in interfaceCustomerModelAccessor
-
getTariffChoiceSample
public double getTariffChoiceSample()
Description copied from interface:CustomerModelAccessor
Returns a [0,1] random value used to make choices using the logit choice model.- Specified by:
getTariffChoiceSample
in interfaceCustomerModelAccessor
-
getInertiaSample
public double getInertiaSample()
Description copied from interface:CustomerModelAccessor
Returns a [0,1] random value used to choose whether individual customers evaluate tariffs or not.- Specified by:
getInertiaSample
in interfaceCustomerModelAccessor
-
getShiftingInconvenienceFactor
public double getShiftingInconvenienceFactor(Tariff tariff)
Description copied from interface:CustomerModelAccessor
Returns a [0,1] value representing the inconvenience of dealing with curtailment in exchange for a lower price.- Specified by:
getShiftingInconvenienceFactor
in interfaceCustomerModelAccessor
-
-