Class LoadedScenarioStudyStep


public class LoadedScenarioStudyStep extends ScenarioStudyStep
  • Constructor Details

    • LoadedScenarioStudyStep

      public LoadedScenarioStudyStep(StudyStep parent, org.eclipse.emf.ecore.EObject scenario, String filePath, int replicationsCount)
  • Method Details

    • filePath

      public String filePath()
    • scenario

      public org.eclipse.emf.ecore.EObject scenario()
      Specified by:
      scenario in class ScenarioStudyStep
    • name

      public String name()
      Specified by:
      name in class StudyStep
    • copy

      public LoadedScenarioStudyStep copy(StudyStep parent)
      Description copied from class: StudyStep
      Creates a deep copy of this StudyStep and all its children, establishing the specified parent for the cloned StudyStep. This method performs a recursive clone of the entire subtree, maintaining the hierarchical structure.

      The cloning process includes:

      • Creating a new StudyStep instance with the same name and data as this node
      • Setting the specified parent for the cloned StudyStep
      • Creating deep copies of all child nodes, with each child having its parent set to the newly created clone of this node
      Specified by:
      copy in class StudyStep
      Parameters:
      parent - the StudyStep that will become the parent of the cloned StudyStep.
      Returns:
      a new StudyStep instance that is a deep copy of this StudyStep, with all child nodes recursively cloned and the specified parent set