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

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

added iepc Compoenent Group

parent 98281dfd
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......@@ -32,6 +32,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
IXmlTypeWriter GetPevE2ComponentVIFType();
IXmlTypeWriter GetPevE3ComponentVIFType();
IXmlTypeWriter GetPevE4ComponentVIFType();
IXmlTypeWriter GetIepcComponentVIFType();
#endregion
......
......@@ -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
......
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