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

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

added PEV E3 Component Group

parent 17926c0f
No related tags found
No related merge requests found
......@@ -186,4 +186,25 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
#endregion
}
public class PevE3ComponentVIFType : ComponentVIFType
{
public PevE3ComponentVIFType(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-E3_ComponentsVIFType"),
_vifReportFactory.GetElectricMachineType().GetElement(inputData),
_vifReportFactory.GetElectricEnergyStorageType().GetElement(inputData),
_vifReportFactory.GetAxlegearType().GetElement(inputData),
_vifReportFactory.GetAxleWheelsType().GetElement(inputData),
_vifReportFactory.GetAuxiliaryPEVType().GetElement(inputData));
}
#endregion
}
}
......@@ -30,6 +30,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
IXmlTypeWriter GetHevS3ComponentVIFType();
IXmlTypeWriter GetHevS4ComponentVIFType();
IXmlTypeWriter GetPevE2ComponentVIFType();
IXmlTypeWriter GetPevE3ComponentVIFType();
#endregion
......
......@@ -54,6 +54,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
Bind<IXmlTypeWriter>().To<PevE2ComponentVIFType>().When(AccessedViaVIFFactory)
.NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetPevE2ComponentVIFType());
Bind<IXmlTypeWriter>().To<PevE3ComponentVIFType>().When(AccessedViaVIFFactory)
.NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetPevE3ComponentVIFType());
#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