Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the SimulatorSessionSummary class.
 /// </summary>
 /// <param name="sessionStatus">Possible values include:
 /// 'Deregistered', 'Attachable', 'Attached', 'Detaching',
 /// 'Rejected'</param>
 /// <param name="simulatorName">From the registration's
 /// SimulatorInterface</param>
 public SimulatorSessionSummary(string sessionId = default(string), SimulatorSessionTypesStatus?sessionStatus = default(SimulatorSessionTypesStatus?), string simulatorName = default(string), SimulatorContext simulatorContext = default(SimulatorContext))
 {
     SessionId        = sessionId;
     SessionStatus    = sessionStatus;
     SimulatorName    = simulatorName;
     SimulatorContext = simulatorContext;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the SimulatorSessionResponse class.
 /// </summary>
 /// <param name="sessionId">Unique sessionId for this simulator
 /// session.</param>
 /// <param name="registrationTime">Time when this session was
 /// registered with Bonsai platform.</param>
 /// <param name="lastSeenTime">A recent time that this simulator
 /// communicated with the Bonsai platform.
 /// This value is updated at a regular interval, so it may not be the
 /// most recent communication time.</param>
 /// <param name="lastIteratedTime">A recent time that this simulator
 /// received an EpisodeStep from the Scholar.
 /// This value is updated at a regular interval, so it may not be the
 /// most recent communication time.</param>
 /// <param name="sessionStatus">Possible values include:
 /// 'Deregistered', 'Attachable', 'Attached', 'Detaching',
 /// 'Rejected'</param>
 /// <param name="iterationRate">Current IterationRate, 1 state-action
 /// loop is roughly maps to 1 iteration.</param>
 /// <param name="details">Additional Details for this session provided
 /// by Bonsai platform.</param>
 public SimulatorSessionResponse(string sessionId, System.DateTime registrationTime, System.DateTime lastSeenTime, System.DateTime lastIteratedTime, SimulatorSessionTypesStatus?sessionStatus = default(SimulatorSessionTypesStatus?), SimulatorSessionProgress sessionProgress = default(SimulatorSessionProgress), SimulatorInterface interfaceProperty = default(SimulatorInterface), SimulatorContext simulatorContext = default(SimulatorContext), double?iterationRate = default(double?), string details = default(string))
 {
     SessionId         = sessionId;
     SessionStatus     = sessionStatus;
     SessionProgress   = sessionProgress;
     InterfaceProperty = interfaceProperty;
     SimulatorContext  = simulatorContext;
     RegistrationTime  = registrationTime;
     LastSeenTime      = lastSeenTime;
     LastIteratedTime  = lastIteratedTime;
     IterationRate     = iterationRate;
     Details           = details;
     CustomInit();
 }