source: branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/BanditPolicies/EmptyPolicyActionInfo.cs @ 11742

Last change on this file since 11742 was 11742, checked in by gkronber, 6 years ago

#2283 refactoring

File size: 656 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Diagnostics;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace HeuristicLab.Algorithms.Bandits.BanditPolicies {
9  public class EmptyPolicyActionInfo : IBanditPolicyActionInfo {
10    public double Value { get { return 0.0; } }
11
12    public bool Disabled { get; private set; }
13    public void UpdateReward(double reward) {
14      Debug.Assert(!Disabled);
15    }
16    public void Disable() { this.Disabled = true; }
17    public void Reset() { this.Disabled = false; }
18    public void PrintStats() { Console.WriteLine("disabled {0}", Disabled); }
19  }
20}
Note: See TracBrowser for help on using the repository browser.