/// <summary> /// Creates a new instance of class ExperimentDataReference. /// </summary> /// <param name="experimentStepId">The identifier of the referenced ExperimentStep.</param> /// <param name="role">Role the experiment data plays within the current ExperimentStep.</param> /// <param name="experimentDataPurpose">Specifies whether the referenced experiment data is produced or consumed by the current ExperimentStep.</param> public ExperimentDataReference(string experimentStepId, string role, ExperimentDataPurpose experimentDataPurpose) { Guard.AgainstNullOrEmpty(nameof(experimentStepId), experimentStepId); Guard.AgainstNullOrEmpty(nameof(role), role);; this.ExperimentStepId = experimentStepId; this.Role = role; this.DataPurpose = experimentDataPurpose; }
internal static string GetXmlRepresentation(this ExperimentDataPurpose experimentDataPurpose) { switch (experimentDataPurpose) { case ExperimentDataPurpose.Produced: { return("produced"); } case ExperimentDataPurpose.Consumed: { return("consumed"); } default: { throw new ArgumentException("Specified ExperimentDataPurpose value is not valid."); } } }
public ExperimentDataReferenceBuilder(string experimentStepId, string role, ExperimentDataPurpose experimentDataPurpose) { this.experimentDataReference = new ExperimentDataReference(experimentStepId, role, experimentDataPurpose); }
/// <summary> /// Creates a new instance of class ExperimentDataBulkReference. /// </summary> /// <param name="experimentStepIdPrefix">The prefix that is used to match the identifiers of the referenced ExperimentSteps.</param> /// <param name="role">Role the experiment data plays within the current ExperimentStep.</param> /// <param name="experimentDataPurpose">Specifies whether the referenced experiment data is produced or consumed by the current ExperimentStep.</param> public ExperimentDataBulkReference(string experimentStepIdPrefix, string role, ExperimentDataPurpose experimentDataPurpose) { Guard.AgainstNullOrEmpty(nameof(experimentStepIdPrefix), experimentStepIdPrefix); Guard.AgainstNullOrEmpty(nameof(role), role); this.ExperimentStepIdPrefix = experimentStepIdPrefix; this.Role = role; this.DataPurpose = experimentDataPurpose; }