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

Skip to content
Snippets Groups Projects
Commit 9f3705b5 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix: pass along ADC Lossmap

parent 17e98f7c
No related tags found
No related merge requests found
......@@ -853,6 +853,9 @@ namespace TUGraz.VectoCommon.InputData
public PowertrainPosition Position { get; set; }
private double? _ratioADC = null;
private TableData _lossMapADC = null;
/// <summary>
/// If not overridden RatioADC == ADC?.Ratio ?? 1;
/// Can only be overridden when ADC == null;
......@@ -874,7 +877,21 @@ namespace TUGraz.VectoCommon.InputData
public double MechanicalTransmissionEfficiency { get; set; }
public TableData MechanicalTransmissionLossMap { get; set; }
public TableData MechanicalTransmissionLossMap
{
get
{
if (_lossMapADC != null && ADC == null) {
return _lossMapADC;
} else {
return ADC?.LossMap;
}
}
set
{
_lossMapADC = value;
}
}
public IADCDeclarationInputData ADC {get; set; }
}
......
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