Registering the Targets to Have in the Report
- Reading input arguments for the increment value and the number of iteration
- Registering the variables to increment
- Registering the targets to have in the report
- Implementing the incrementation of the variables
- Implementing the reception of the new measures
- Implementing the check to finish the iteration loop
- Outputting a report file
Now, as the variables, you need to register the targets:
Note:
weight
is not in the sample, but this is the same value that appears in the definition panel.private IDictionary<string, string> _targetNames = new Dictionary<string, string>();
private IDictionary<string, double> _targetValues = new Dictionary<string, double>();
//.... it is recommended for cleaner reading to leave the declaration of fields at the top of the file
/// <summary>
/// Called to register a new target as output (optional)
/// </summary>
public void AddTarget(string parameterId, string parameterUserName, double startingValue, double targetValue, double weight)
{
_targetNames.Add(parameterId, parameterUserName);
_targetValues.Add(parameterId, startingValue);