Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/Policies/EmptyPolicyActionInfo.cs @ 11732

Last change on this file since 11732 was 11732, checked in by gkronber, 9 years ago

#2283: refactoring and bug fixes

File size: 584 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 {
9  public class EmptyPolicyActionInfo : IPolicyActionInfo {
10    public bool Disabled { get; private set; }
11    public void UpdateReward(double reward) {
12      Debug.Assert(!Disabled);
13    }
14    public void Disable() { this.Disabled = true; }
15    public void Reset() { this.Disabled = false; }
16    public void PrintStats() { Console.WriteLine("disabled {0}", Disabled); }
17  }
18}
Note: See TracBrowser for help on using the repository browser.