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

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

added HEV S2 Component Group

parent 10b5716a
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......@@ -25,10 +25,12 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
IXmlTypeWriter GetConventionalComponentType();
IXmlTypeWriter GetHevIepcSComponentVIFType();
IXmlTypeWriter GetHevPxComponentVIFType();
IXmlTypeWriter GetHevS2ComponentVIFType();
#endregion
#region Components
IXmlTypeWriter GetAdasType();
......
......@@ -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
......
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