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 8df3e7ff070f5da78b7901a769a5b0cf2eedf59f..6b66a31c5acd1e04f52748cbfa36ff0c266f3cab 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 @@ -94,4 +94,26 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF #endregion } + + public class HevS2ComponentVIFType: ComponentVIFType + { + public HevS2ComponentVIFType(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-S2_ComponentsVIFType"), + _vifReportFactory.GetEngineType().GetElement(inputData), + _vifReportFactory.GetElectricMachineGENType().GetElement(inputData), + _vifReportFactory.GetElectricEnergyStorageType().GetElement(inputData), + _vifReportFactory.GetElectricMachineType().GetElement(inputData), + _vifReportFactory.GetAxlegearType().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 d7ccd5081faea6eaf2e68e769b26aae23e2e7882..a58932f309ac5b3311c86e7c758234bb8fe81a5a 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 @@ -25,10 +25,12 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF IXmlTypeWriter GetConventionalComponentType(); IXmlTypeWriter GetHevIepcSComponentVIFType(); + IXmlTypeWriter GetHevPxComponentVIFType(); + IXmlTypeWriter GetHevS2ComponentVIFType(); #endregion - + #region Components IXmlTypeWriter GetAdasType(); 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 e4c9dce18aab12eec83ecc9afa464c049640b905..982f2c0f282cd41875a3e47788a3dd93b44cdaa1 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 @@ -42,6 +42,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF Bind<IXmlTypeWriter>().To<HevPxComponentVIFType>().When(AccessedViaVIFFactory) .NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetHevPxComponentVIFType()); + Bind<IXmlTypeWriter>().To<HevS2ComponentVIFType>().When(AccessedViaVIFFactory) + .NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetHevS2ComponentVIFType()); + #endregion @@ -75,8 +78,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF .NamedLikeFactoryMethod((IVIFReportFactory f) => f.GetPEVVehicleGroup()); #endregion - - + #region Components