Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

added PEV E4 Component Group

parent c0af2efb
No related branches found
No related tags found
No related merge requests found
......@@ -207,4 +207,24 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
#endregion
}
public class PevE4ComponentVIFType : ComponentVIFType
{
public PevE4ComponentVIFType(IVIFReportFactory vifReportFactory) : base(vifReportFactory) { }
#region Overrides of ComponentVIFType
public override XElement GetElement(IDeclarationInputDataProvider inputData)
{
return new XElement(_vif + XMLNames.Vehicle_Components,
new XAttribute(_xsi + "type", "vif:Vehicle_PEV-E4_ComponentsVIFType"),
_vifReportFactory.GetElectricMachineType().GetElement(inputData),
_vifReportFactory.GetElectricEnergyStorageType().GetElement(inputData),
_vifReportFactory.GetAxleWheelsType().GetElement(inputData),
_vifReportFactory.GetAuxiliaryPEVType().GetElement(inputData));
}
#endregion
}
}
......@@ -31,6 +31,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
IXmlTypeWriter GetHevS4ComponentVIFType();
IXmlTypeWriter GetPevE2ComponentVIFType();
IXmlTypeWriter GetPevE3ComponentVIFType();
IXmlTypeWriter GetPevE4ComponentVIFType();
#endregion
......
......@@ -57,6 +57,8 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
Bind<IXmlTypeWriter>().To<PevE3ComponentVIFType>().When(AccessedViaVIFFactory)
.NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetPevE3ComponentVIFType());
Bind<IXmlTypeWriter>().To<PevE4ComponentVIFType>().When(AccessedViaVIFFactory)
.NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetPevE4ComponentVIFType());
#endregion
......
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