using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CPSO; using CaeModel; using CaeGlobals; namespace CPSO.Commands { [Serializable] class CPropagateHistoryOutput : PreprocessCommand { // Variables private string _stepName; private string _historyOutputName; // Constructor public CPropagateHistoryOutput(string stepName, string historyOutputName) : base("Propagate history output") { _stepName = stepName; _historyOutputName = historyOutputName; } // Methods public override bool Execute(Controller receiver) { receiver.PropagateHistoryOutput(_stepName, _historyOutputName); return true; } public override string GetCommandString() { return base.GetCommandString() + _stepName + ": " + _historyOutputName; } } }