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

Skip to content
Snippets Groups Projects
Commit 12bcf47f authored by Michael KRISPER's avatar Michael KRISPER
Browse files

GearboxType formatted Names of GearboxType Enum

parent 99e42d2b
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,9 @@ namespace TUGraz.VectoCommon.Models
switch (type) {
case GearboxType.MT: return "Manual Transmission (MT)";
case GearboxType.AMT: return "Automated Transmission (AMT)";
case GearboxType.ATSerial: return "Automatic Transmission - Serial (AT-S)";
case GearboxType.ATPowerSplit: return "Automatic Transmission - PowerSplit (AT-P)";
case GearboxType.APTN: return "Automatic Transmission - No TorqueConverter (APT-N)";
case GearboxType.ATSerial: return "Automatic Transmission - Serial (AT-S)"; //todo mk20211210 shouldn't we call it APT-S?
case GearboxType.ATPowerSplit: return "Automatic Transmission - PowerSplit (AT-P)";//todo mk20211210 shouldn't we call it APT-P?
case GearboxType.APTN: return "Automatic Transmission - No Torque Converter (APT-N)";
case GearboxType.DrivingCycle: return "Gear from Driving Cycle";
default: throw new ArgumentOutOfRangeException("GearboxType", type, null);
}
......@@ -84,12 +84,12 @@ namespace TUGraz.VectoCommon.Models
public static string ToXMLFormat(this GearboxType type)
{
switch (type) {
case GearboxType.MT: return "SMT";
case GearboxType.AMT: return "AMT";
case GearboxType.DrivingCycle: return type.ToString();
case GearboxType.ATSerial: return "APT-S";
case GearboxType.MT: return "SMT";
case GearboxType.AMT: return "AMT";
case GearboxType.DrivingCycle: return "DrivingCycle";
case GearboxType.ATSerial: return "APT-S";
case GearboxType.ATPowerSplit: return "APT-P";
case GearboxType.APTN: return "APT-N";
case GearboxType.APTN: return "APT-N";
default: throw new ArgumentOutOfRangeException("GearboxType", type, null);
}
}
......
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