public SolutionInformation(TypeOfSolution typeOfSolution) { destription = ""; pointsDetected = new List <Candidate>(); pointsChanged = new List <Candidate>(); this.typeOfSolution = typeOfSolution; }
public SolutionInformation() { pointsDetected = new List <Candidate>(); pointsChanged = new List <Candidate>(); destription = ""; typeOfSolution = TypeOfSolution.Unknown; }
public SolutionInformation(String destription, TypeOfSolution typeOfSolution) { pointsDetected = new List <Candidate>(); pointsChanged = new List <Candidate>(); this.destription = destription; this.typeOfSolution = typeOfSolution; }
/* * public void Add(SolutionInformation oldSolutionInformation) * { * InfoStruct tmp; * for (int i=0; i < oldSolutionInformation.Count(); i++) * { * tmp.destription = oldSolutionInformation.Get_Destription(i); * tmp.y = oldSolutionInformation.Get_Y(i); * tmp.x = oldSolutionInformation.Get_X(i); * tmp.value = oldSolutionInformation.Get_Value(i); * dataSolutionInformation.Add(tmp); * } * } */ public void Clear() { destription = ""; pointsChanged.Clear(); pointsDetected.Clear(); typeOfSolution = TypeOfSolution.Unknown; }
public SolutionInformation(String destription, List <Candidate> pointsChanged, List <Candidate> pointsDetected, TypeOfSolution typeOfSolution) { this.typeOfSolution = typeOfSolution; this.destription = destription; this.pointsDetected = new List <Candidate>(); foreach (var item in pointsDetected) { this.pointsDetected.Add(item); } pointsChanged = new List <Candidate>(); foreach (var item in pointsChanged) { this.pointsChanged.Add(item); } }