- Timestamp:
- 07/14/15 20:42:55 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/ViewModel
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/ViewModel/EvaluationViewModel.cs
r12503 r12762 1 using HeuristicLab.Algorithms.Bandits.BanditPolicies; 1 using System.Collections.ObjectModel; 2 using HeuristicLab.Algorithms.Bandits.BanditPolicies; 2 3 using HeuristicLab.Algorithms.GeneticProgramming; 3 4 using HeuristicLab.Algorithms.GrammaticalOptimization; … … 108 109 } 109 110 110 private longevaluations;111 112 public longEvaluations111 private int evaluations; 112 113 public int Evaluations 113 114 { 114 115 get { return this.evaluations; } … … 120 121 } 121 122 123 private int nrRuns; 124 125 public int NrRuns 126 { 127 get { return this.nrRuns; } 128 set { this.nrRuns = value; this.OnPropertyChanged("NrRuns"); } 129 } 130 131 private int threads; 132 133 public int Threads 134 { 135 get { return this.threads; } 136 set { this.threads = value; this.OnPropertyChanged("Threads"); } 137 } 138 122 139 private int maxLen; 123 140 … … 176 193 } 177 194 195 private string currentRunString; 196 197 public string CurrentRunString 198 { 199 get { return this.currentRunString; } 200 set 201 { 202 currentRunString = value; 203 this.OnPropertyChanged("CurrentRunString"); 204 } 205 } 206 178 207 private double evaluationsPerSec; 179 208 … … 188 217 } 189 218 190 private longbestSolutionFoundAt;191 192 public longBestSolutionFoundAt219 private int bestSolutionFoundAt; 220 221 public int BestSolutionFoundAt 193 222 { 194 223 get { return this.bestSolutionFoundAt; } … … 197 226 bestSolutionFoundAt = value; 198 227 this.OnPropertyChanged("BestSolutionFoundAt"); 228 } 229 } 230 231 private string bestSolution; 232 233 public string BestSolution 234 { 235 get { return this.bestSolution; } 236 set 237 { 238 bestSolution = value; 239 this.OnPropertyChanged("BestSolution"); 240 } 241 } 242 243 private ObservableCollection<Run> runs = new ObservableCollection<Run>(); 244 245 public ObservableCollection<Run> Runs 246 { 247 get { return this.runs; } 248 set 249 { 250 runs = value; 251 this.OnPropertyChanged("Runs"); 252 } 253 } 254 255 private Run currentRun; 256 257 public Run CurrentRun 258 { 259 get { return this.currentRun; } 260 set 261 { 262 currentRun = value; 263 if (currentRun != null) 264 { 265 Evaluations = currentRun.Evaluations; 266 BestKnownQuality = currentRun.BestKnownQuality; 267 CurrentBestQuality = currentRun.BestSolutionQuality; 268 EvaluationsPerSec = currentRun.EvaluationsPerSecond; 269 } 270 this.OnPropertyChanged("CurrentRun"); 199 271 } 200 272 }
Note: See TracChangeset
for help on using the changeset viewer.