Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
ReactionParameters.cs
Go to the documentation of this file.
1 namespace droid.Runtime.Messaging.Messages {
4  public enum ExecutionPhase {
7  Before_,
8 
11  Middle_,
12 
15  After_
16  }
17 
20  public class ReactionParameters {
21  public ReactionParameters(bool terminable = false,
22  bool step = false,
23  bool reset = false,
24  bool configure = false,
25  bool describe = false,
26  bool episode_count = false) {
27  this.IsExternal = false;
28  this.Terminable = terminable;
29  this.Reset = reset;
30  this.Step = step;
31  this.Configure = configure;
32  this.Describe = describe;
33  this.EpisodeCount = episode_count;
34  }
35 
38  public bool EpisodeCount { get; }
39 
42  public ExecutionPhase Phase { get; set; } = ExecutionPhase.Middle_;
43 
46  public bool IsExternal { get; set; }
47 
50  public bool Terminable { get; }
51 
54  public bool Describe { get; }
55 
58  public bool Reset { get; }
59 
62  public bool Step { get; }
63 
66  public bool Configure { get; }
67 
71  public override string ToString() {
72  return "<ReactionParameters>\n "
73  + $"Terminable:{this.Terminable},\n"
74  + $"Step:{this.Step},\n"
75  + $"Reset:{this.Reset},\n"
76  + $"Configure:{this.Configure},\n"
77  + $"Describe:{this.Describe}\n"
78  + $"EpisodeCount:{this.EpisodeCount}"
79  + "\n</ReactionParameters>\n";
80  }
81  }
82 }
ReactionParameters(bool terminable=false, bool step=false, bool reset=false, bool configure=false, bool describe=false, bool episode_count=false)