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; }
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; }