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

Skip to content
Snippets Groups Projects
Commit af21e17a authored by Franz KOBER josef's avatar Franz KOBER josef
Browse files

adjusted ElectrichMachineGENType and adde electric machine system

parent 63108cb3
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
#region Implementation of IXmlTypeWriter
public XElement GetElement(IDeclarationInputDataProvider inputData)
public virtual XElement GetElement(IDeclarationInputDataProvider inputData)
{
foreach (var entry in inputData.JobInputData.Vehicle.Components.ElectricMachines.Entries) {
if (entry.Position == PowertrainPosition.GEN)
......@@ -35,10 +36,11 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
return new XElement(_vif + XMLNames.Component_ElectricMachineGEN,
new XElement(_vif + XMLNames.ElectricMachine_PowertrainPosition, electricMachineData.Position.ToXmlFormat()),
new XElement(_vif + XMLNames.ElectricMachine_Count, electricMachineData.Count),
_vifFactory.GetElectricMachineSystemType().GetElement(electricMachineData.ElectricMachine),
GetADC(electricMachineData.ADC));
}
private XElement GetADC(IADCDeclarationInputData adcData)
protected virtual XElement GetADC(IADCDeclarationInputData adcData)
{
if (adcData == null)
return null;
......
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