private void InstantiateExperiment(Component agent) { this.experiment = ExperimentBase.Instantiate(this.environment, this.presentationEnvironment, agent); this.experimentParameterControl.Initialize(this.experiment, false); this.reportingConfigurationControl.Experiment = this.experiment; }
public ExperimentBase Clone() { Component environment = this.Environment.Clone(); Component presentationEnvironment = this.PresentationEnvironment.Clone(); Component agent = this.Agent.Clone(); ExperimentBase result = ExperimentBase.Instantiate(environment, presentationEnvironment, agent); Reporter reporter = this.Reporter.CloneFor(result); result.Reporter = reporter; result.CopyParametersFrom(this); return(result); }