Пример #1
0
        public static TestBenchModel.TestBenchBase CreateTestBenchModel(string type,
                                                                        CyPhy2CADSettings cadSetting,
                                                                        string outputdir,
                                                                        string projectdir,
                                                                        bool Automation)
        {
            TestBenchModel.TestBenchBase testBenchModel = null;

            if (type == "TestBench")
            {
                testBenchModel = new TestBenchModel.TestBench(cadSetting,
                                                              outputdir,
                                                              projectdir,
                                                              Automation);
                return testBenchModel;
            }
            
            if (type == "BallisticTestBench")
            {
                testBenchModel = new TestBenchModel.BallisticTestBench(cadSetting,
                                                              outputdir,
                                                              projectdir,
                                                              Automation);
                return testBenchModel;
            }
            
            if (type == "CFDTestBench")
            {
                testBenchModel = new TestBenchModel.CFDTestBenchData(cadSetting,
                                                              outputdir,
                                                              projectdir,
                                                              Automation);
                return testBenchModel;
            }
            
            if (type == "BlastTestBench")
            {
                testBenchModel = new TestBenchModel.BlastTestBench(cadSetting,
                                                              outputdir,
                                                              projectdir,
                                                              Automation);
                return testBenchModel;
            }
            if (type == "CADTestBench")
            {
                testBenchModel = new TestBenchModel.FEATestBench(cadSetting,
                                                             outputdir,
                                                             projectdir,
                                                             Automation);
                return testBenchModel;
            }

            
            if (type == "KinematicTestBench")
            {
                testBenchModel = new TestBenchModel.KinematicTestBench(cadSetting,
                                                             outputdir,
                                                             projectdir,
                                                             Automation);
                return testBenchModel;
            }
            

            return testBenchModel;
        }
Пример #2
0
        public static TestBenchModel.TestBenchBase CreateTestBenchModel(string type,
                                                                        CyPhy2CADSettings cadSetting,
                                                                        string outputdir,
                                                                        string projectdir,
                                                                        bool Automation)
        {
            TestBenchModel.TestBenchBase testBenchModel = null;

            if (type == "TestBench")
            {
                testBenchModel = new TestBenchModel.TestBench(cadSetting,
                                                              outputdir,
                                                              projectdir,
                                                              Automation);
                return(testBenchModel);
            }

            if (type == "BallisticTestBench")
            {
                testBenchModel = new TestBenchModel.BallisticTestBench(cadSetting,
                                                                       outputdir,
                                                                       projectdir,
                                                                       Automation);
                return(testBenchModel);
            }

            if (type == "CFDTestBench")
            {
                testBenchModel = new TestBenchModel.CFDTestBenchData(cadSetting,
                                                                     outputdir,
                                                                     projectdir,
                                                                     Automation);
                return(testBenchModel);
            }

            if (type == "BlastTestBench")
            {
                testBenchModel = new TestBenchModel.BlastTestBench(cadSetting,
                                                                   outputdir,
                                                                   projectdir,
                                                                   Automation);
                return(testBenchModel);
            }
            if (type == "CADTestBench")
            {
                testBenchModel = new TestBenchModel.FEATestBench(cadSetting,
                                                                 outputdir,
                                                                 projectdir,
                                                                 Automation);
                return(testBenchModel);
            }


            if (type == "KinematicTestBench")
            {
                testBenchModel = new TestBenchModel.KinematicTestBench(cadSetting,
                                                                       outputdir,
                                                                       projectdir,
                                                                       Automation);
                return(testBenchModel);
            }


            return(testBenchModel);
        }