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

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

added PEV E2 Component Group

parent 3e7ec8a8
No related branches found
No related tags found
No related merge requests found
......@@ -161,4 +161,29 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
#endregion
}
public class PevE2ComponentVIFType : ComponentVIFType
{
public PevE2ComponentVIFType(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-E2_ComponentsVIFType"),
_vifReportFactory.GetElectricMachineType().GetElement(inputData),
_vifReportFactory.GetElectricEnergyStorageType().GetElement(inputData),
_vifReportFactory.GetTransmissionType().GetElement(inputData),
_vifReportFactory.GetTorqueConvertType().GetElement(inputData),
_vifReportFactory.GetAngelDriveType().GetElement(inputData),
_vifReportFactory.GetAxlegearType().GetElement(inputData),
_vifReportFactory.GetAxleWheelsType().GetElement(inputData),
_vifReportFactory.GetAuxiliaryPEVType().GetElement(inputData));
}
#endregion
}
}
......@@ -29,6 +29,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
IXmlTypeWriter GetHevS2ComponentVIFType();
IXmlTypeWriter GetHevS3ComponentVIFType();
IXmlTypeWriter GetHevS4ComponentVIFType();
IXmlTypeWriter GetPevE2ComponentVIFType();
#endregion
......
......@@ -51,6 +51,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
Bind<IXmlTypeWriter>().To<HevS4ComponentVIFType>().When(AccessedViaVIFFactory)
.NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetHevS4ComponentVIFType());
Bind<IXmlTypeWriter>().To<PevE2ComponentVIFType>().When(AccessedViaVIFFactory)
.NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetPevE2ComponentVIFType());
#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