42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
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 CAddHistoryOutput : PreprocessCommand
|
|
{
|
|
// Variables
|
|
private string _stepName;
|
|
private HistoryOutput _historyOutput;
|
|
|
|
|
|
// Constructor
|
|
public CAddHistoryOutput(string stepName, HistoryOutput historyOutput)
|
|
:base("Add history output")
|
|
{
|
|
_stepName = stepName;
|
|
_historyOutput = historyOutput.DeepClone();
|
|
}
|
|
|
|
|
|
// Methods
|
|
public override bool Execute(Controller receiver)
|
|
{
|
|
receiver.AddHistoryOutput(_stepName, _historyOutput.DeepClone());
|
|
return true;
|
|
}
|
|
|
|
public override string GetCommandString()
|
|
{
|
|
return base.GetCommandString() + _stepName + ": " + _historyOutput.ToString();
|
|
}
|
|
}
|
|
}
|