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 b8b25b2fb83d9524f9a41bb89892e20faf02bee6..b480394be9409bbba5975346d6e64c47ddfba444 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 @@ -118,7 +118,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF } - public class HevS3ComponentVIFType: ComponentVIFType + public class HevS3ComponentVIFType : ComponentVIFType { public HevS3ComponentVIFType(IVIFReportFactory vifReportFactory) : base(vifReportFactory) { } @@ -139,4 +139,26 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF #endregion } + + + public class HevS4ComponentVIFType : ComponentVIFType + { + public HevS4ComponentVIFType(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_HEV-S4_ComponentsVIFType"), + _vifReportFactory.GetEngineType().GetElement(inputData), + _vifReportFactory.GetElectricMachineGENType().GetElement(inputData), + _vifReportFactory.GetElectricEnergyStorageType().GetElement(inputData), + _vifReportFactory.GetElectricMachineType().GetElement(inputData), + _vifReportFactory.GetAxleWheelsType().GetElement(inputData), + _vifReportFactory.GetAuxiliaryHevSType().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 44b2af0c640a5637587fb0d694258cb6cbdc524e..3b72dec5dd2730c7309ab3350a3404465674d6c1 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 @@ -28,6 +28,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF IXmlTypeWriter GetHevPxComponentVIFType(); IXmlTypeWriter GetHevS2ComponentVIFType(); IXmlTypeWriter GetHevS3ComponentVIFType(); + IXmlTypeWriter GetHevS4ComponentVIFType(); #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 24999cfbf8b19f98e6df78701797926b07071ee9..4bd6d15e23852f199ae10d8b318237bf1cca4248 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 @@ -48,6 +48,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF Bind<IXmlTypeWriter>().To<HevS3ComponentVIFType>().When(AccessedViaVIFFactory) .NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetHevS3ComponentVIFType()); + Bind<IXmlTypeWriter>().To<HevS4ComponentVIFType>().When(AccessedViaVIFFactory) + .NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetHevS4ComponentVIFType()); + #endregion