示例#1
0
 public void StartDebug(CalculationNode n, int val)
 {
     if (debug)
     {
         startCapture = filter(n.ComboKey, value);
         value        = val;
         debugState   = new List <(int noCoins, int noCombinations)>();
     }
 }
示例#2
0
 public DebugState(CalculationNode n, int val, IList <(int noCoins, int noCombinations)> debug)
示例#3
0
 public void Debug(CalculationNode n, int noCoins, int noCombinations)
 {
     debugger.Debug(n, noCoins, noCombinations);
 }
示例#4
0
 public void EndDebug(CalculationNode n)
 {
     debugger.EndDebug(n);
 }
示例#5
0
 public void StartDebug(CalculationNode n, int value)
 {
     debugger.StartDebug(n, value);
 }
示例#6
0
 public String ComboKey(CalculationNode n)
 {
     return(n.GetCoin().GenerateMyUnits().Aggregate("", (x, y) => x += y));
 }
示例#7
0
 public bool IsParent(CalculationNode candidate)
 {
     return(coin.GenerateMyUnits().SequenceEqual(candidate.TailUnits()));
 }
示例#8
0
 public CalculationNode AddChild(CalculationNode n)
 {
     children.Add(n);
     n.SetParent(this);
     return(this);
 }
示例#9
0
 public void SetParent(CalculationNode parent)
 {
     this.parent = parent;
 }