From a560e1a8d59639ff9745c7b3843a486588cb101e Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Fri, 5 Aug 2022 10:47:38 +0200 Subject: [PATCH] removing conflicting file --- .../Components/MRFIEPCSpecificationsType.cs | 59 ------------------ .../Components/MRFIepcSpecificationsType.cs | 60 ------------------- 2 files changed, 119 deletions(-) delete mode 100644 VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIEPCSpecificationsType.cs delete mode 100644 VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIepcSpecificationsType.cs diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIEPCSpecificationsType.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIEPCSpecificationsType.cs deleted file mode 100644 index 9acaae31c7..0000000000 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIEPCSpecificationsType.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Linq; -using TUGraz.VectoCommon.InputData; -using TUGraz.VectoCommon.Resources; -using TUGraz.VectoCommon.Utils; - -namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.ManufacturerReport_0_9.ManufacturerReportXMLTypeWriter.Components -{ - internal class MrfiepcSpecificationsTypeWriter : AbstractMrfXmlType, IXmlTypeWriter - { - public MrfiepcSpecificationsTypeWriter(IManufacturerReportFactory mrfFactory) : base(mrfFactory) { } - - #region Overrides of AbstractMrfXmlType - - public XElement GetElement(IDeclarationInputDataProvider inputData) - { - var iepcData = inputData.JobInputData.Vehicle.Components.IEPC; - - - var iepcXElement = new XElement(_mrf + "IEPCSpecifications", - new XElement(_mrf + XMLNames.Component_Model, iepcData.Model), - new XElement(_mrf + XMLNames.Component_CertificationNumber, iepcData.CertificationNumber), - new XElement(_mrf + XMLNames.DI_Signature_Reference_DigestValue, iepcData.DigestValue?.DigestValue ?? ""), - new XElement(_mrf + XMLNames.Engine_RatedPower, iepcData.R85RatedPower.ToXMLFormat())); - //new XElement(_mrf + "MaxContinuousPower",(iepcData.ContinuousTorque*iepcData.ContinuousTorqueSpeed).ToXMLFormat()), - - var voltageLevels = new XElement(_mrf + "VoltageLevels"); - iepcXElement.Add(voltageLevels); - - foreach (var electricMotorVoltageLevel in iepcData.VoltageLevels) { - var voltageLevel = new XElement(_mrf + XMLNames.ElectricMachine_VoltageLevel, - new XAttribute("voltage", electricMotorVoltageLevel.VoltageLevel.ToXMLFormat(0)), - new XElement(_mrf + "MaxContinuousPower", - (electricMotorVoltageLevel.ContinuousTorque * electricMotorVoltageLevel.ContinuousTorqueSpeed) - .ToXMLFormat(0))); - - - voltageLevels.Add(voltageLevel); - } - - iepcXElement.Add( - new XElement(_mrf + "NrOfGears", iepcData.Gears.Count), - new XElement(_mrf + "LowestTotalTransmissionRatio", (iepcData.Gears.OrderByDescending(g => g.GearNumber).First().Ratio - * inputData.JobInputData.Vehicle.Components.AxleGearInputData.Ratio).ToXMLFormat(3)), - new XElement(_mrf + XMLNames.IEPC_DifferentialIncluded, iepcData.DifferentialIncluded), - new XElement(_mrf + XMLNames.Component_CertificationMethod, iepcData.CertificationMethod) - ); - - - return iepcXElement; - } - - #endregion - } -} diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIepcSpecificationsType.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIepcSpecificationsType.cs deleted file mode 100644 index 7befe40ca1..0000000000 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFIepcSpecificationsType.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Linq; -using TUGraz.VectoCommon.InputData; -using TUGraz.VectoCommon.Resources; -using TUGraz.VectoCommon.Utils; - -namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.ManufacturerReport_0_9.ManufacturerReportXMLTypeWriter.Components -{ - internal class MrfiepcSpecificationsTypeWriter : AbstractMrfXmlType, IXmlTypeWriter - { - public MrfiepcSpecificationsTypeWriter(IManufacturerReportFactory mrfFactory) : base(mrfFactory) { } - - #region Overrides of AbstractMrfXmlType - - public XElement GetElement(IDeclarationInputDataProvider inputData) - { - var iepcData = inputData.JobInputData.Vehicle.Components.IEPC; - - - var iepcXElement = new XElement(_mrf + "IEPCSpecifications", - new XElement(_mrf + XMLNames.Component_Model, iepcData.Model), - new XElement(_mrf + XMLNames.Component_CertificationNumber, iepcData.CertificationNumber), - new XElement(_mrf + XMLNames.DI_Signature_Reference_DigestValue, iepcData.DigestValue?.DigestValue ?? ""), - new XElement(_mrf + XMLNames.Engine_RatedPower, iepcData.R85RatedPower.ConvertToKiloWatt().ToXMLFormat(0))); - //new XElement(_mrf + "MaxContinuousPower",(iepcData.ContinuousTorque*iepcData.ContinuousTorqueSpeed).ToXMLFormat()), - - var voltageLevels = new XElement(_mrf + "VoltageLevels"); - iepcXElement.Add(voltageLevels); - - foreach (var electricMotorVoltageLevel in iepcData.VoltageLevels) { - var voltageLevel = new XElement(_mrf + XMLNames.ElectricMachine_VoltageLevel, - new XAttribute("voltage", electricMotorVoltageLevel.VoltageLevel.ToXMLFormat(0)), - new XElement(_mrf + "MaxContinuousPower", - (electricMotorVoltageLevel.ContinuousTorque * electricMotorVoltageLevel.ContinuousTorqueSpeed).ConvertToKiloWatt() - .ToXMLFormat(0))); - - - voltageLevels.Add(voltageLevel); - } - - iepcXElement.Add( - new XElement(_mrf + "NrOfGears", iepcData.Gears.Count), - new XElement(_mrf + "LowestTotalTransmissionRatio", (iepcData.Gears.OrderByDescending(g => g.GearNumber).First().Ratio - * inputData.JobInputData.Vehicle.Components.AxleGearInputData.Ratio).ToXMLFormat(3)), - new XElement(_mrf + XMLNames.IEPC_DifferentialIncluded, iepcData.DifferentialIncluded), - new XElement(_mrf + XMLNames.IEPC_DesignTypeWheelMotor, iepcData.DesignTypeWheelMotor), - new XElement(_mrf + XMLNames.Component_CertificationMethod, iepcData.CertificationMethod) - ); - - - return iepcXElement; - } - - #endregion - } -} -- GitLab