Class Config


  • public final class Config
    extends Object
    Singleton configuration class shared by all the ev-customer types
    Author:
    Konstantina Valogiani, Govert Buijs, and John Collins
    • Method Detail

      • getEpsilon

        public double getEpsilon()
      • getLambda

        public double getLambda()
      • getTouFactor

        public double getTouFactor()
      • getInterruptibilityFactor

        public double getInterruptibilityFactor()
      • getVariablePricingFactor

        public double getVariablePricingFactor()
      • getTieredRateFactor

        public double getTieredRateFactor()
      • getMinDefaultDuration

        public int getMinDefaultDuration()
      • getMaxDefaultDuration

        public int getMaxDefaultDuration()
      • getRationalityFactor

        public double getRationalityFactor()
      • getNsInertia

        public double getNsInertia()
      • getBrokerSwitchFactor

        public double getBrokerSwitchFactor()
      • getWeightInconvenience

        public double getWeightInconvenience()
      • getTariffCount

        public int getTariffCount()
      • getProfileLength

        public int getProfileLength()
      • configure

        @Deprecated
        public void configure()
        Deprecated.
        Configures this singleton when it's needed. Not called during instance creation to allow testing without a full Spring setup. This version is Deprecated! Please use configure(ServerConfiguration) instead.
      • configure

        public void configure​(ServerConfiguration configSource)
        Configures this instance from the given configuration service.
      • getBeans

        public Map<String,​Collection<?>> getBeans()
        Retrieves the list of configured beans
      • getInstance

        public static Config getInstance()
        Singleton accessor
      • recycle

        public static void recycle()