/// <summary>
        /// Create the analysis instance.
        /// </summary>
        /// <param name="group">group object.</param>
        /// <returns>New BifurcationAnalysis.</returns>
        public IAnalysisModule CreateNewInstance(JobGroup group)
        {
            BifurcationAnalysis instance = new BifurcationAnalysis(m_owner);
            instance.Group = group;

            return instance;
        }
Beispiel #2
0
 /// <summary>
 /// This program execute the program of bifurcation analysis.
 /// </summary>
 public void ExecuteBifurcationAnalysis()
 {
     if (m_env.PluginManager.Status == ProjectStatus.Uninitialized)
         return;
     m_bifurcateParameter = m_bifurcationDialog.GetParameter();
     ShowGridStatusDialog();
     string modelName = m_env.DataManager.CurrentProject.Model.ModelID;
     List<EcellObject> sysObj = new List<EcellObject>();
     foreach (EcellObject e in m_env.DataManager.CurrentProject.SystemDic[modelName])
     {
         sysObj.Add(e.Clone());
     }
     List<EcellObject> stepperObj = new List<EcellObject>();
     foreach (EcellObject e in m_env.DataManager.CurrentProject.StepperDic[modelName])
     {
         stepperObj.Add(e.Clone());
     }
     JobGroup g = m_env.JobManager.CreateJobGroup(BifurcationAnalysis.s_analysisName, sysObj, stepperObj);
     BifurcationAnalysis bifurcationAnalysis = new BifurcationAnalysis(this);
     bifurcationAnalysis.Group = g;
     bifurcationAnalysis.AnalysisParameter = m_bifurcateParameter;
     bifurcationAnalysis.ExecuteAnalysis();
 }