コード例 #1
0
 public XTMFRun(Project project, int modelSystemIndex, ModelSystemModel root, Configuration config, string runName)
 {
     Project = project;
     ModelSystemStructureModelRoot = root.Root;
     Configuration    = new XTMF.RunProxy.ConfigurationProxy(config, Project);
     RunName          = runName;
     RunDirectory     = Path.Combine(Configuration.ProjectDirectory, Project.Name, RunName);
     ModelSystemIndex = modelSystemIndex;
     Project.ModelSystemStructure[ModelSystemIndex] = root.ClonedModelSystemRoot;
     Project.LinkedParameters[ModelSystemIndex]     = root.LinkedParameters.GetRealLinkedParameters();
 }
コード例 #2
0
ファイル: XTMFRun.cs プロジェクト: dianatle/XTMF
 public XTMFRun(Project project, int modelSystemIndex, ModelSystemModel root, Configuration config, string runName)
 {
     Project = project;
     ModelSystemStructureModelRoot = root.Root;
     Configuration = new XTMF.RunProxy.ConfigurationProxy(config, Project);
     RunName = runName;
     RunDirectory = Path.Combine(Configuration.ProjectDirectory, Project.Name, RunName);
     ModelSystemIndex = modelSystemIndex;
     Project.ModelSystemStructure[ModelSystemIndex] = root.ClonedModelSystemRoot;
     Project.LinkedParameters[ModelSystemIndex] = root.LinkedParameters.GetRealLinkedParameters();
 }
コード例 #3
0
        public XTMFRun(Project project, ModelSystemStructureModel root, Configuration configuration, string runName)
        {
            // we don't make a clone for this type of run
            Project = project;
            ModelSystemStructureModelRoot = root;
            var index = project.ModelSystemStructure.IndexOf(root.RealModelSystemStructure);

            if (index >= 0)
            {
                Configuration = new XTMF.RunProxy.ConfigurationProxy(configuration, Project);
            }
            RunName      = runName;
            RunDirectory = Path.Combine(Configuration.ProjectDirectory, Project.Name, RunName);
        }
コード例 #4
0
ファイル: Project.cs プロジェクト: Cocotus/XTMF
        public IModelSystemTemplate CreateModelSystem(ref string error, IModelSystemStructure modelSystemStructure)
        {
            if(!modelSystemStructure.Validate(ref error))
            {
                return null;
            }

            IModelSystemTemplate modelSystem = null;
            IConfiguration proxy = new XTMF.RunProxy.ConfigurationProxy(Configuration as Configuration, this);
            if(CreateModule(proxy, modelSystemStructure, modelSystemStructure, ref error))
            {
                modelSystem = modelSystemStructure.Module as IModelSystemTemplate;
            }
            return modelSystem;
        }
コード例 #5
0
ファイル: XTMFRun.cs プロジェクト: dianatle/XTMF
 public XTMFRun(Project project, ModelSystemStructureModel root, Configuration configuration, string runName)
 {
     // we don't make a clone for this type of run
     Project = project;
     ModelSystemStructureModelRoot = root;
     var index = project.ModelSystemStructure.IndexOf(root.RealModelSystemStructure);
     if(index >= 0)
     Configuration = new XTMF.RunProxy.ConfigurationProxy(configuration, Project);
     RunName = runName;
     RunDirectory = Path.Combine(Configuration.ProjectDirectory, Project.Name, RunName);
 }