private void CheckGrandChildIsProbe(INodeComponent grandChild, ProbeValue result) { if (_probesCircuitMapping.ContainsKey(grandChild)) { // Show next (is probe) ConsoleWriterSingleton.Instance.ShowNextProbe(_probesCircuitMapping[grandChild]._name); // Set result of probe _probesCircuitMapping[grandChild]._value = result; // Add probe to final probes mapping _finalProbes.Add(grandChild, _probesCircuitMapping[grandChild]); // Show probe (intermediate) result ConsoleWriterSingleton.Instance.ShowProbeResult(_probesCircuitMapping[grandChild]._name, _probesCircuitMapping[grandChild].ToInt()); // Add probe as circuit result AddResult(_probesCircuitMapping[grandChild]); } }
public Probe(string name, ProbeValue value) { _name = name; _value = value; }