Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
EnvironmentState.cs
Go to the documentation of this file.
1 using System;
3 
4 namespace droid.Runtime.Messaging.Messages {
5  [Serializable]
6  public class EnvironmentState {
7  public EnvironmentState(string environment_name,
8  float total_energy_spent_since_reset,
9  int frame_number,
10  float time,
11  float signal,
12  bool terminated,
13  ref float[] observables,
14  string termination_reason = "",
15  EnvironmentDescription description = null,
16  string debug_message = "") {
17  this.Observables = observables;
18  this.DebugMessage = debug_message;
19  this.TerminationReason = termination_reason;
20  this.EnvironmentName = environment_name;
21  this.TotalEnergySpentSinceReset = total_energy_spent_since_reset;
22  this.Signal = signal;
23  this.FrameNumber = frame_number;
24  this.Time = time;
25  this.Terminated = terminated;
26  this.Description = description;
27  }
28 
29  public float[] Observables { get; }
30 
31  public String TerminationReason { get; }
32 
33  public string EnvironmentName { get; }
34 
35  public float TotalEnergySpentSinceReset { get; }
36 
39  public int FrameNumber { get; }
40 
43  public float Time { get; }
44 
47  public bool Terminated { get; }
48 
51  public string DebugMessage { get; }
52 
55  public IObserver[] Observers { get; set; }
56 
59  public EnvironmentDescription Description { get; }
60 
63  public float Signal { get; }
64 
67  public Unobservables Unobservables { get; set; }
68  }
69 }
EnvironmentState(string environment_name, float total_energy_spent_since_reset, int frame_number, float time, float signal, bool terminated, ref float[] observables, string termination_reason="", EnvironmentDescription description=null, string debug_message="")