예제 #1
0
 public Mark Proccess(Mark input)
 {
     var result = new Mark(input.Path) {Pheromone = {Value = input.Pheromone.Value - _decrimentPheromone.Value}};
     if (result.Pheromone.Value < 0)
     {
         result.Pheromone.Value = 0;
     }
     return result;
 }
예제 #2
0
 public Mark Proccess(Mark input)
 {
     var pheramone = new Pheromone();
     pheramone.Value = input.Pheromone.Value;
     input.Pheromone.Value += _pheromoneIncriment.Value;
     var mark = new Mark(input.Path);
     mark.Pheromone = pheramone;
     return mark;
 }