package de.spektrumprojekt.i.timebased.config;

import de.spektrumprojekt.configuration.ConfigurationDescriptable;

public class EnergyCalculationConfiguration implements ConfigurationDescriptable {

    private final float k;
    private final double d;
    private final NutritionCalculationStrategy strategy;
    private final int energyHistoryLength;
    private final int nutritionHistLength;

    public EnergyCalculationConfiguration(float k, double d, int energyHistoryLength,
            int nutritionHistLength, NutritionCalculationStrategy strategy) {
        super();
        this.k = k;
        this.d = d;
        this.energyHistoryLength = energyHistoryLength;
        this.strategy = strategy;
        this.nutritionHistLength = nutritionHistLength;
    }

    @Override
    public String getConfigurationDescription() {
        return "EnergyCalculationConfiguration [k=" + k + ", d=" + d + ", strategy=" + strategy
                + ", energyHistoryLength=" + energyHistoryLength + ", nutritionHistLength"
                + nutritionHistLength + "]";
    }

    public double getD() {
        return d;
    }

    public int getEnergyHistoryLength() {
        return energyHistoryLength;
    }

    public int getG() {
        return 1;
    }

    public double getK() {
        return k;
    }

    public int getNutritionHistLength() {
        return nutritionHistLength;
    }

    public NutritionCalculationStrategy getStrategy() {
        return strategy;
    }

    @Override
    public String toString() {
        return getConfigurationDescription();
    }

}

@@ -205,22 +205,16 @@
 private 
-final 
 float k;
@@ -226,22 +226,16 @@
 private 
-final 
 double d
@@ -248,22 +248,16 @@
 private 
-final 
 Nutritio
@@ -295,30 +295,24 @@
     private 
-final 
 int energyHi
@@ -340,14 +340,8 @@
 ate 
-final 
 int 
@@ -408,26 +408,63 @@
 ion(
-float k, double d,
+%0A            float k,%0A            double d,%0A           
  int
@@ -521,16 +521,28 @@
 tLength,
+%0A           
  Nutriti
@@ -579,25 +579,8 @@
 ) %7B%0A
-        super();%0A
     
@@ -1474,32 +1474,519 @@
 trategy;%0A    %7D%0A%0A
+    public void setD(double d) %7B%0A        this.d = d;%0A    %7D%0A%0A    public void setEnergyHistoryLength(int energyHistoryLength) %7B%0A        this.energyHistoryLength = energyHistoryLength;%0A    %7D%0A%0A    public void setK(float k) %7B%0A        this.k = k;%0A    %7D%0A%0A    public void setNutritionHistLength(int nutritionHistLength) %7B%0A        this.nutritionHistLength = nutritionHistLength;%0A    %7D%0A%0A    public void setStrategy(NutritionCalculationStrategy strategy) %7B%0A        this.strategy = strategy;%0A    %7D%0A%0A
     @Override%0A  

Set values in EnergyCalcConf