AVM.DDP.MetaAvmProject.SaveTestBenchManifest C# (CSharp) Method

SaveTestBenchManifest() public method

public SaveTestBenchManifest ( string designName, string configurationName, ISIS.GME.Dsml.CyPhyML.Interfaces expandedTestBenchType, string outputDir, ISIS.GME.Dsml.CyPhyML.Interfaces origialTestBenchType, System.DateTime analysisStartTime ) : bool
designName string
configurationName string
expandedTestBenchType ISIS.GME.Dsml.CyPhyML.Interfaces
outputDir string
origialTestBenchType ISIS.GME.Dsml.CyPhyML.Interfaces
analysisStartTime System.DateTime
return bool
        public bool SaveTestBenchManifest(string designName, string configurationName, CyPhy.TestBenchType expandedTestBenchType, string outputDir, CyPhy.TestBenchType origialTestBenchType, DateTime analysisStartTime)
        {
            if (expandedTestBenchType == null)
            {
                throw new ArgumentNullException("expandedTestBenchType");
            }

            if (outputDir == null)
            {
                throw new ArgumentNullException("outputDirectory");
            }

            if (origialTestBenchType == null)
            {
                expandedTestBenchType = origialTestBenchType;
            }

            try
            {
                AVM.DDP.MetaTBManifest manifest = new AVM.DDP.MetaTBManifest();
                manifest.MakeManifest(expandedTestBenchType, outputDir);

                // design name fixture
                manifest.DesignName = designName;

                // test bench name fixture
                manifest.TestBench = origialTestBenchType.Name;

                manifest.CfgID = configurationName;

                manifest.Serialize(outputDir);

                this.UpdateResultsJson(expandedTestBenchType.Impl as MgaFCO, outputDir);

                return true;
            }
            catch (Exception)
            {
                // TODO: log exception/store last exception
                return false;
            }
        }

Same methods

MetaAvmProject::SaveTestBenchManifest ( string outputDirectory, ISIS.GME.Dsml.CyPhyML.Interfaces testBenchType ) : void
MetaAvmProject::SaveTestBenchManifest ( string outputDirectory, ISIS.GME.Dsml.CyPhyML.Interfaces testBenchType, List dependencies ) : void