/// <summary> /// Modifies <see cref="SessionExportInstruction.FieldNames"/> /// </summary> /// <param name="instruction"> /// The instruction to be modified /// </param> /// <param name="fieldNames"> /// The names of the fields to be plotted. /// </param> /// <returns> /// <paramref name="instruction"/> /// </returns> public static SessionExportInstruction WithFields( this SessionExportInstruction instruction, params string[] fieldNames) { instruction.FieldNames = fieldNames.ToList(); return(instruction); }
/// <summary> /// Modifies <see cref="SessionExportInstruction.TimeSteps"/> /// </summary> /// <param name="instruction"> /// The instruction to be modified /// </param> /// <param name="timeSteps"> /// The time-steps to be plotted /// </param> /// <returns> /// <paramref name="instruction"/> /// </returns> public static SessionExportInstruction WithTimesteps( this SessionExportInstruction instruction, params TimestepNumber[] timeSteps) { instruction.TimeSteps = timeSteps.ToList(); return(instruction); }
/// <summary> /// Modifies <see cref="SessionExportInstruction.ReconstructionType"/> /// </summary> /// <param name="instruction"> /// The instruction to be modified /// </param> /// <returns> /// <paramref name="instruction"/> /// </returns> public static SessionExportInstruction WithReconstruction(this SessionExportInstruction instruction) { instruction.ReconstructionType = FieldStateConfiguration.ReconstructionTypes.Average; return(instruction); }