diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/ComponentGroup.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/ComponentGroup.cs index 21df5948848baabccb06f6dbee08b7ff4184209b..50116ac1d35dbb24e4a08392ee5aab6c169f4157 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/ComponentGroup.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/ComponentGroup.cs @@ -227,4 +227,25 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF #endregion } + + public class IepcComponentVIFType : ComponentVIFType + { + public IepcComponentVIFType(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-IEPC_ComponentsVIFType"), + _vifReportFactory.GetIepcType().GetElement(inputData), + _vifReportFactory.GetElectricEnergyStorageType().GetElement(inputData), + _vifReportFactory.GetAxlegearType().GetElement(inputData), + _vifReportFactory.GetAxleWheelsType().GetElement(inputData), + _vifReportFactory.GetAuxiliaryIEPCType().GetElement(inputData)); + } + + #endregion + } + } diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/IVIFReportFactory.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/IVIFReportFactory.cs index 034d133a9026718228a7728dadf3acbfce187376..257c74c9dbcb9dc7c0be2bbc462212762e9e06d4 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/IVIFReportFactory.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/IVIFReportFactory.cs @@ -32,6 +32,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF IXmlTypeWriter GetPevE2ComponentVIFType(); IXmlTypeWriter GetPevE3ComponentVIFType(); IXmlTypeWriter GetPevE4ComponentVIFType(); + IXmlTypeWriter GetIepcComponentVIFType(); #endregion diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/VIFNinjectModule.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/VIFNinjectModule.cs index b94bd6bdfb963913566301f049a4b806921898f0..e45ddbd9f2f85e5bfb7729314c0c0efb7507e826 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/VIFNinjectModule.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/VIFNinjectModule.cs @@ -60,6 +60,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF Bind<IXmlTypeWriter>().To<PevE4ComponentVIFType>().When(AccessedViaVIFFactory) .NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetPevE4ComponentVIFType()); + Bind<IXmlTypeWriter>().To<IepcComponentVIFType>().When(AccessedViaVIFFactory) + .NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetIepcComponentVIFType()); + #endregion #region Vehicle Group