Exemple #1
0
 public ModelSystemModel(ModelSystemEditingSession session, ModelSystem modelSystem)
 {
     ModelSystem      = modelSystem;
     Name             = modelSystem.Name;
     _Description     = modelSystem.Description;
     Root             = new ModelSystemStructureModel(session, modelSystem.CreateEditingClone(out List <ILinkedParameter> editingLinkedParameters) as ModelSystemStructure);
     LinkedParameters = new LinkedParametersModel(session, this, editingLinkedParameters);
 }
Exemple #2
0
 /// <summary>
 /// Create a model system model for a previous run.
 /// </summary>
 /// <param name="modelSystemEditingSession">The session to use</param>
 /// <param name="project">The project the previous run is in.</param>
 /// <param name="runFile">The path to the run file.</param>
 public ModelSystemModel(XTMFRuntime runtime, ModelSystemEditingSession modelSystemEditingSession, Project project, string runFile)
 {
     Project          = project;
     ModelSystemIndex = -1;
     Name             = Path.GetFileName(runFile);
     _Description     = "Previous run";
     Root             = new ModelSystemStructureModel(modelSystemEditingSession, runtime.ModelSystemController.LoadFromRunFile(runFile));
     LinkedParameters = new LinkedParametersModel(modelSystemEditingSession, this, new List <ILinkedParameter>());
 }
Exemple #3
0
 /// <summary>
 /// Create a model system model for a previous run.
 /// </summary>
 /// <param name="modelSystemEditingSession">The session to use</param>
 /// <param name="project">The project the previous run is in.</param>
 /// <param name="runFile">The path to the run file.</param>
 public ModelSystemModel(XTMFRuntime runtime, ModelSystemEditingSession modelSystemEditingSession, Project project, string runFile)
 {
     Project = project;
     ModelSystemIndex = -1;
     Name = Path.GetFileName(runFile);
     _Description = "Previous run";
     Root = new ModelSystemStructureModel(modelSystemEditingSession, runtime.ModelSystemController.LoadFromRunFile(runFile));
     LinkedParameters = new LinkedParametersModel(modelSystemEditingSession, this, new List<ILinkedParameter>());
 }
Exemple #4
0
 public ModelSystemModel(ModelSystemEditingSession session, ModelSystem modelSystem)
 {
     ModelSystem = modelSystem;
     Name = modelSystem.Name;
     _Description = modelSystem.Description;
     List<ILinkedParameter> editingLinkedParameters;
     Root = new ModelSystemStructureModel(session, modelSystem.CreateEditingClone(out editingLinkedParameters) as ModelSystemStructure);
     LinkedParameters = new LinkedParametersModel(session, this, editingLinkedParameters);
 }
Exemple #5
0
 public ModelSystemModel(ModelSystemEditingSession session, Project project, int modelSystemIndex)
 {
     _Project          = project;
     _ModelSystemIndex = modelSystemIndex;
     Name             = project.ModelSystemStructure[modelSystemIndex].Name;
     _Description     = project.ModelSystemDescriptions[modelSystemIndex];
     Root             = new ModelSystemStructureModel(session, (project.CloneModelSystemStructure(out List <ILinkedParameter> editingLinkedParameters, modelSystemIndex) as ModelSystemStructure));
     _Description     = _Project.ModelSystemDescriptions[modelSystemIndex];
     LinkedParameters = new LinkedParametersModel(session, this, editingLinkedParameters);
 }
Exemple #6
0
 public ModelSystemModel(ModelSystemEditingSession session, Project project, int modelSystemIndex)
 {
     Project = project;
     ModelSystemIndex = modelSystemIndex;
     Name = project.ModelSystemStructure[modelSystemIndex].Name;
     _Description = project.ModelSystemDescriptions[modelSystemIndex];
     List<ILinkedParameter> editingLinkedParameters;
     Root = new ModelSystemStructureModel(session, (project.CloneModelSystemStructure(out editingLinkedParameters, modelSystemIndex) as ModelSystemStructure));
     _Description = Project.ModelSystemDescriptions[modelSystemIndex];
     LinkedParameters = new LinkedParametersModel(session, this, editingLinkedParameters);
 }