Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 37b228ea authored by David AMO GONZALEZ's avatar David AMO GONZALEZ
Browse files

Make IResultEntry WeightingFactor setter private

parent 8749bd41
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ namespace TUGraz.VectoCore.OutputData
Watt MaxChargingPower { get; }
double WeightingFactor { get; set; }
double WeightingFactor { get; }
Meter ActualChargeDepletingRange { get; }
......@@ -143,6 +143,8 @@ namespace TUGraz.VectoCore.OutputData
string StackTrace { get; }
BatterySystemData BatteryData { get; }
void SetResultWeightingFactor(double weightingFactor);
}
public interface IWeightedResult
......
......@@ -189,12 +189,18 @@ namespace TUGraz.VectoCore.OutputData.XML
public double AverageAxlegearEfficiency { get; private set; }
public double WeightingFactor { get; set; }
public double WeightingFactor { get; private set; }
public Meter ActualChargeDepletingRange { get; set; }
public Meter EquivalentAllElectricRange { get; set; }
public Meter ZeroCO2EmissionsRange { get; set; }
public IFuelProperties AuxHeaterFuel { get; set; }
public Kilogram ZEV_FuelConsumption_AuxHtr { get; set; }
public Kilogram ZEV_CO2 { get; set; }
public OvcHevMode OVCMode { get; set; }
......@@ -285,6 +291,11 @@ namespace TUGraz.VectoCore.OutputData.XML
WeightingFactor = weightingFactor;
}
public void SetResultWeightingFactor(double weightingFactor)
{
WeightingFactor = weightingFactor;
}
}
......@@ -340,7 +351,7 @@ namespace TUGraz.VectoCore.OutputData.XML
foreach(var result in orderedeResults)
{
result.WeightingFactor = _weightingFactors[Tuple.Create(result.Mission, result.LoadingType)];
result.SetResultWeightingFactor(_weightingFactors[Tuple.Create(result.Mission, result.LoadingType)]);
}
}
......
......@@ -347,6 +347,11 @@ namespace TUGraz.VectoCore.OutputData.XML
throw new NotImplementedException();
}
public void SetResultWeightingFactor(double weightingFactor)
{
throw new NotImplementedException();
}
public string Error { get; set; }
public string StackTrace { get; set; }
public BatterySystemData BatteryData
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment