public override Engine Recognize(VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.FuelType      = FuelType.Diesel;
            result.InjectionType = InjectionType.Indirect;
            result.Family        = Family;
            string engineModelValue = characteristics.GetEngineModelString();
            string generalInfoValue = characteristics.GeneralVehicleInfo;

            if (engineModelValue.Contains("XUD7"))
            {
                RecognizeXud7(engineModelValue, result);
            }
            else if (engineModelValue.Contains("XUD9"))
            {
                RecognizeXud9(engineModelValue, generalInfoValue, result);
            }
            else if (engineModelValue.Contains("XUD11"))
            {
                RecognizeXud11(engineModelValue, result);
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            return(result);
        }
        public override Engine Recognize(VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family        = Family;
            result.FuelType      = FuelType.Diesel;
            result.InjectionType = InjectionType.Injector;
            string engineModelValue = characteristics.GetEngineModelString();

            //string generalInfoValue = characteristics.GeneralVehicleInfo;
            if (engineModelValue.Contains("ATE"))
            {
                result.Type        = EngineType.DK5ATE;
                result.DisplayName = "DK5 ATE";
            }
            else if (engineModelValue.Contains("5"))
            {
                result.Type        = EngineType.DK5;
                result.DisplayName = "DK5";
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            return(result);
        }
Esempio n. 3
0
        public override Engine Recognize(VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.FuelType      = FuelType.Petrol;
            result.InjectionType = InjectionType.Injector;
            result.Family        = Family;
            string engineModelValue = characteristics.GetEngineModelString();

            //string generalInfoValue = characteristics.GeneralVehicleInfo;
            if (engineModelValue.Contains("J4S"))
            {
                result.DisplayName = "ES9 J4S";
                result.Type        = EngineType.ES9J4S;
            }
            else if (engineModelValue.Contains("J4") ||
                     engineModelValue.Contains("L7X"))
            {
                result.DisplayName = "ES9 J4/L7X";
                result.Type        = EngineType.ES9J4L7X;
            }
            else if (engineModelValue.Contains("A"))
            {
                result.DisplayName = "ES9 IA";
                result.Type        = EngineType.ES9IA;
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            return(result);
        }
        public override Engine Recognize(VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family = Family;
            string engineModelValue = characteristics.GetEngineModelString();

            //string generalInfoValue = characteristics.GeneralVehicleInfo;
            if (engineModelValue.ToUpper().Contains("M"))
            {
                result.Type          = EngineType.EB2M;
                result.DisplayName   = "EB2 M";
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
            }
            else if (engineModelValue.Contains("0"))
            {
                result.Type          = EngineType.EB0;
                result.DisplayName   = "EB0";
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            return(result);
        }
        public EngineFamilyType Recognize()
        {
            string engineFamilyString =
                characteristics.GetEngineFamilyString();
            string engineModelString =
                characteristics.GetEngineModelString();
            EngineFamilyType engineFamilyType = RecognizeEngineFamily(
                engineFamilyString, engineModelString);

            return(engineFamilyType);
        }
Esempio n. 6
0
        public override Engine Recognize(VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family        = Family;
            result.FuelType      = FuelType.Unknown;
            result.InjectionType = InjectionType.Injector;
            string engineModelValue = characteristics.GetEngineModelString();

            //string generalInfoValue = characteristics.GeneralVehicleInfo;
            if (engineModelValue.ToUpper().Contains("MMC") &&
                engineModelValue.ToUpper().Contains("2.4L"))
            {
                result.Type        = EngineType.MMC24;
                result.DisplayName = "Mitsubishi 2.4L";
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            return(result);
        }
        public override Engine Recognize(
            VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family        = Family;
            result.FuelType      = FuelType.Petrol;
            result.InjectionType = InjectionType.Injector;
            string engineModelValue = characteristics.GetEngineModelString();
            string generalInfoValue = characteristics.GeneralVehicleInfo;

            if (engineModelValue.Contains("XU5"))
            {
                RecognizeXu5(engineModelValue, result);
            }
            else if (engineModelValue.Contains("XU7"))
            {
                RecognizeXu7(engineModelValue, result);
            }
            else if (engineModelValue.Contains("XU8"))
            {
                RecognizeXu8(engineModelValue, result);
            }
            else if (engineModelValue.Contains("XU9"))
            {
                RecognizeXu9(engineModelValue, generalInfoValue, result);
            }
            else if (engineModelValue.Contains("XU10"))
            {
                RecognizeXu10(engineModelValue, generalInfoValue, result);
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            return(result);
        }
        public override Engine Recognize(VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family = Family;
            string engineModelValue = characteristics.GetEngineModelString();
            string generalInfoValue = characteristics.GeneralVehicleInfo;

            if (Ew7J4(engineModelValue))
            {
                result.Type = EngineType.EW7J4;
            }
            else if (engineModelValue.ToUpper().Contains("EW") &&
                     engineModelValue.ToUpper().Contains("7A"))
            {
                result.Type = EngineType.EW7A;
            }
            else if (Ew10D(engineModelValue))
            {
                result.Type = EngineType.EW10D;
            }
            else if (Ew10J4Rfn(engineModelValue, generalInfoValue))
            {
                result.Type = EngineType.EW10J4RFN;
            }
            else if (Ew10J4Rfr(engineModelValue, generalInfoValue))
            {
                result.Type = EngineType.EW10J4RFR;
            }
            else if (Ew10J4S(engineModelValue))
            {
                result.Type = EngineType.EW10J4S;
            }
            else if (Ew10A(engineModelValue))
            {
                result.Type = EngineType.EW10A;
            }
            else if (Ew12J4(engineModelValue))
            {
                result.Type = EngineType.EW12J4;
            }
            else if (Dw8B(engineModelValue))
            {
                result.Type = EngineType.DW8B;
            }
            else if (Dw8(engineModelValue))
            {
                result.Type = EngineType.DW8;
            }
            else if (Dw10Ated4(engineModelValue))
            {
                // FIRST BEFORE ATED!!
                result.Type = EngineType.DW10ATED4;
            }
            else if (Dw10Ated(engineModelValue))
            {
                result.Type = EngineType.DW10ATED;
            }
            else if (Dw10Td(engineModelValue))
            {
                result.Type = EngineType.DW10TD;
            }
            else if (Dw10Bted4(engineModelValue))
            {
                result.Type = EngineType.DW10BTED4;
            }
            else if (engineModelValue.ToUpper().Contains("BTED"))
            {
                result.Type          = EngineType.DW10BTED;
                result.DisplayName   = "DW10 BTED";
                result.InjectionType = InjectionType.CommonRail;
                result.FuelType      = FuelType.Diesel;
            }
            else if (engineModelValue.Contains("CTED4"))
            {
                result.Type        = EngineType.DW10CTED4;
                result.DisplayName = "DW10 CTED4";
            }
            else if (Dw12Uted(engineModelValue))
            {
                result.Type = EngineType.DW12UTED;
            }
            else if (Dw12Mted4(engineModelValue))
            {
                result.Type = EngineType.DW12MTED4;
            }
            else if (Dw12Ted4(engineModelValue))
            {
                result.Type = EngineType.DW12TED4;
            }
            else if (engineModelValue.Contains("DW12C"))
            {
                result.Type          = EngineType.DW12C;
                result.FuelType      = FuelType.Diesel;
                result.InjectionType = InjectionType.CommonRail;
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            UpdateEngineDetails(result);
            return(result);
        }
        public override Engine Recognize(VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family        = Family;
            result.FuelType      = FuelType.Diesel;
            result.InjectionType = InjectionType.CommonRail;
            string engineModelValue = characteristics.GetEngineModelString();

            if (Dv4Td(engineModelValue))
            {
                result.Type        = EngineType.DV4TD;
                result.DisplayName = "DV4 TD (DLD-414)";
            }
            else if (Dv4Ted4(engineModelValue))
            {
                result.Type        = EngineType.DV4TED4;
                result.DisplayName = "DV4 TED4 (DLD-414)";
            }
            else if (Dv6Ated4(engineModelValue))
            {
                result.Type        = EngineType.DV6ATED4;
                result.DisplayName = "DV6 ATED4 (DLD-416)";
            }
            else if (engineModelValue.ToUpper().Contains("DV4") &&
                     engineModelValue.ToUpper().Contains("TED"))
            {
                result.Type        = EngineType.DV4TED;
                result.DisplayName = "DV4TED (8HS)";
            }
            else if (Dv6b(engineModelValue))
            {
                result.Type        = EngineType.DV6B;
                result.DisplayName = "DV6 B (DLD-416)";
            }
            else if (Dv6c(engineModelValue))
            {
                result.Type        = EngineType.DV6C;
                result.DisplayName = "DV6 C (DLD-416)";
            }
            else if (Dv6d(engineModelValue))
            {
                result.Type        = EngineType.DV6D;
                result.DisplayName = "DV6 D (DLD-416)";
            }
            else if (Dv6Ted4(engineModelValue))
            {
                result.Type        = EngineType.DV6TED4;
                result.DisplayName = "DV6 TED4 (DLD-416)";
            }
            else if (engineModelValue.ToUpper().Contains("DV4C"))
            {
                result.Type        = EngineType.DV4C;
                result.DisplayName = "DV4C";
            }
            else if (engineModelValue.ToUpper().Contains("PUMA"))
            {
                result.InjectionType = InjectionType.Direct;
                if (engineModelValue.IndexOf("20DT",
                                             StringComparison.InvariantCultureIgnoreCase) >= 0)
                {
                    result.Type        = EngineType.ZSD420;
                    result.DisplayName = "ZSD-420 (Duratorq TDCi)";
                }
                else if (engineModelValue.IndexOf("22DT",
                                                  StringComparison.InvariantCultureIgnoreCase) >= 0)
                {
                    result.Type        = EngineType.ZSD422;
                    result.DisplayName = "ZSD-422 (Duratorq TDCi)";
                }
                else if (engineModelValue.IndexOf("24DT",
                                                  StringComparison.InvariantCultureIgnoreCase) >= 0)
                {
                    result.Type        = EngineType.ZSD424;
                    result.DisplayName = "ZSD-424 (Duratorq TDCi)";
                }
            }
            return(result);
        }
Esempio n. 10
0
        public override Engine Recognize(
            VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family = Family;
            string engineModelValue = characteristics.GetEngineModelString();
            string generalInfoValue = characteristics.GeneralVehicleInfo;

            if (engineModelValue.ToUpper().Contains("EP3"))
            {
                result.Type          = EngineType.EP3;
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
                result.DisplayName   = "EP3";
            }
            else if (engineModelValue.ToUpper().Contains("EP6") &&
                     engineModelValue.ToUpper().Contains("DTS"))
            {
                result.Type          = EngineType.EP6DTS;
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
                result.DisplayName   = "EP6 DTS";
            }
            else if (engineModelValue.ToUpper().Contains("EP6") &&
                     engineModelValue.ToUpper().Contains("CDTX"))
            {
                result.Type          = EngineType.EP6CDTX;
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
                result.DisplayName   = "EP6 CDTX";
            }
            else if (engineModelValue.ToUpper().Contains("EP6DT"))
            {
                if (generalInfoValue.Contains("140"))
                {
                    result.Type = EngineType.EP6DT140;
                }
                else if (generalInfoValue.Contains("150"))
                {
                    result.Type = EngineType.EP6DT;
                }
                else
                {
                    // TODO: exception?
                    result.Type = EngineType.EP6DT140;
                }
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
                result.DisplayName   = "EP6 DT";
            }
            else if (engineModelValue.ToUpper().Contains("EP6") &&
                     engineModelValue.ToUpper().Contains("CDT"))
            {
                result.Type          = EngineType.EP6CDT;
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
                result.DisplayName   = "EP6 CDT";
            }
            else if (engineModelValue.ToUpper().Contains("EP6C") ||
                     engineModelValue.ToUpper().Contains("EP6"))
            {
                result.Type          = EngineType.EP6;
                result.FuelType      = FuelType.Petrol;
                result.InjectionType = InjectionType.Injector;
                result.DisplayName   = "EP6";
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }

            return(result);
        }
Esempio n. 11
0
        public override Engine Recognize(
            VehicleCharacteristics characteristics)
        {
            Engine result = new Engine();

            result.Family = Family;
            string engineModelValue = characteristics.GetEngineModelString();

            //string generalInfoValue = characteristics.GeneralVehicleInfo;
            if (engineModelValue.Contains("TU9"))
            {
                result.Type          = EngineType.TU9K;
                result.InjectionType = InjectionType.Carburettor;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU9";
            }
            else if (engineModelValue.Contains("TU1F"))
            {
                result.Type          = EngineType.TU1F2K;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU1 F2K";
            }
            else if (engineModelValue.Contains("TU1JP"))
            {
                result.Type          = EngineType.TU1JP;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU1 JP";
            }
            else if (engineModelValue.Contains("TU1M") ||
                     engineModelValue.Contains("TU1Z"))
            {
                result.Type          = EngineType.TU1MZ;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU1 M/Z";
            }
            else if (engineModelValue.Contains("TU1K"))
            {
                result.Type          = EngineType.TU1K;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU1 K";
            }
            else if (engineModelValue.Contains("TU2"))
            {
                // Not very much supported
                // old rally engines
                result.Type = EngineType.TU2A;
            }
            else if (engineModelValue.Contains("TU3A"))
            {
                result.Type          = EngineType.TU3A;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU3 A";
            }
            else if (engineModelValue.Contains("TU3F2K"))
            {
                result.Type          = EngineType.TU3FJ2K;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU3 F2/K";
            }
            else if (engineModelValue.Contains("TU3FJ2"))
            {
                result.Type          = EngineType.TU3FJ2Z;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU3 FJ2/Z";
            }
            else if (engineModelValue.Contains("TU3JP"))
            {
                result.Type          = EngineType.TU3JP;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU3 JP";
            }
            else if (engineModelValue.Contains("TU3M"))
            {
                result.Type          = EngineType.TU3MZ;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU3 M/Z";
            }
            else if (engineModelValue.Contains("TU3S"))
            {
                result.Type          = EngineType.TU3S;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU3 S";
            }
            else if (engineModelValue.Contains("ET3J4"))
            {
                result.Type          = EngineType.ET3J4;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "ET3 J4";
            }
            else if (engineModelValue.Contains("TU5J4"))
            {
                result.Type          = EngineType.TU5J4;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU5 J4";
            }
            else if (engineModelValue.Contains("TU5") &&
                     engineModelValue.Contains("JP4S"))
            {
                result.Type          = EngineType.TU5JP4S;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU5 JP4S";
            }
            else if (engineModelValue.Contains("TU5") &&
                     engineModelValue.Contains("JP4"))
            {
                result.Type          = EngineType.TU5JP4;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU5 JP4";
            }
            else if (engineModelValue.Contains("TU5") &&
                     engineModelValue.Contains("JP"))
            {
                result.Type          = EngineType.TU5JP;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU5 JP";
            }
            else if (engineModelValue.Contains("TU5J2") ||
                     engineModelValue.Contains("TU5L3"))
            {
                result.Type          = EngineType.TU5J2L3;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU5 J2/L3";
            }
            else if (engineModelValue.Contains("TU1") &&
                     engineModelValue.Contains("A"))
            {
                result.Type          = EngineType.TU1A;
                result.InjectionType = InjectionType.Injector;
                result.FuelType      = FuelType.Petrol;
                result.DisplayName   = "TU1A";
            }
            else
            {
                throw new NotSupportedException(engineModelValue);
            }
            return(result);
        }